Jenkinsfile: mod-tidy doesn't need the initial file
Change-Id: I7f35157b5f5306a84817019e3b9613e40ac45f3f
This commit is contained in:
parent
c32ca6e67f
commit
d7cd3a0ff8
@ -29,11 +29,6 @@ pipeline {
|
||||
|
||||
sh 'mkdir -p .build'
|
||||
|
||||
// make a backup of the mod file, because sometimes they get modified by tools
|
||||
// this allows to lint the unmodified files
|
||||
sh 'cp go.mod .build/go.mod.orig'
|
||||
sh 'cp testsuite/go.mod .build/testsuite.go.mod.orig'
|
||||
|
||||
// download dependencies
|
||||
sh 'go mod download'
|
||||
sh 'cd testsuite && go mod download'
|
||||
@ -134,10 +129,7 @@ pipeline {
|
||||
parallel {
|
||||
stage('Lint') {
|
||||
steps {
|
||||
sh 'check-mod-tidy -mod .build/go.mod.orig'
|
||||
dir("testsuite") {
|
||||
sh 'check-mod-tidy -mod ../.build/testsuite.go.mod.orig'
|
||||
}
|
||||
sh 'check-mod-tidy'
|
||||
sh 'check-copyright'
|
||||
sh 'check-imports -race ./...'
|
||||
sh 'check-peer-constraints -race'
|
||||
|
Loading…
Reference in New Issue
Block a user