ci: try fix go build scanning node_modules directory
Add a go.mod to node_modules folder, that should prevent go build ./... from scanning it, however, it's slightly hacky. Change-Id: I073150704bd90afd8ccf38a969e0a1c725d25137
This commit is contained in:
parent
e43af5eb3d
commit
f807518477
@ -23,6 +23,10 @@ pipeline {
|
||||
sh 'cp go.mod .build/go.mod.orig'
|
||||
// download dependencies
|
||||
sh 'go mod download'
|
||||
|
||||
// add a stub go.mod file to node projects to prevent go build ./... from scanning them
|
||||
sh 'mkdir -p web/satellite/node_modules web/storagenode/node_modules web/multinode/node_modules'
|
||||
sh 'touch web/satellite/node_modules/go.mod web/storagenode/node_modules/go.mod web/multinode/node_modules/go.mod'
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
|
Loading…
Reference in New Issue
Block a user