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:
Egon Elbre 2022-09-28 13:48:38 +03:00
parent f58129786b
commit 2b2b6d2288
2 changed files with 1 additions and 7 deletions

View File

@ -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') {

View File

@ -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