satellite/admin/ui: use a valid go.mod stub
Some tools check all the go.mod files and fail when it's incorrect. Change-Id: I1be5bd1b502e15c90b2f69caedbf5545d366a87d
This commit is contained in:
parent
f58129786b
commit
2b2b6d2288
@ -35,12 +35,6 @@ pipeline {
|
||||
|
||||
// pre-check that we cannot do at a later stage reliably
|
||||
sh 'check-large-files'
|
||||
|
||||
// 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 'echo "module stub" > web/satellite/node_modules/go.mod'
|
||||
sh 'echo "module stub" > web/storagenode/node_modules/go.mod'
|
||||
sh 'echo "module stub" > web/multinode/node_modules/go.mod'
|
||||
}
|
||||
}
|
||||
stage('Gerrit status') {
|
||||
|
@ -5,7 +5,7 @@ set -exuo pipefail
|
||||
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||
|
||||
npm install --prefer-offline --no-audit --logleve verbose
|
||||
touch ./node_modules/go.mod # prevent Go from scanning this dir
|
||||
echo "module stub" > ./node_modules/go.mod # prevent Go from scanning this dir
|
||||
npm run build
|
||||
|
||||
npm audit || true
|
||||
|
Loading…
Reference in New Issue
Block a user