mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-23 23:42:24 +00:00
Improve build-time checks (automation/test-lock-deduplicated.sh)
Change-type: patch
This commit is contained in:
parent
3d1f16c0ab
commit
6e0638f3be
@ -10,7 +10,10 @@ npm i
|
|||||||
if ! diff -q npm-shrinkwrap.json npm-shrinkwrap.json.old > /dev/null; then
|
if ! diff -q npm-shrinkwrap.json npm-shrinkwrap.json.old > /dev/null; then
|
||||||
rm npm-shrinkwrap.json.old
|
rm npm-shrinkwrap.json.old
|
||||||
echo "** npm-shrinkwrap.json was not deduplicated or not fully committed - FAIL **";
|
echo "** npm-shrinkwrap.json was not deduplicated or not fully committed - FAIL **";
|
||||||
echo "** Please run 'npm ci', followed by 'npm dedupe' **";
|
echo "** This can usually be fixed with: **";
|
||||||
|
echo "** git checkout master -- npm-shrinkwrap.json **";
|
||||||
|
echo "** rm -rf node_modules **";
|
||||||
|
echo "** npm install && npm dedupe && npm install **";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user