Skip to content

Commit eaad661

Browse files
authored
Print message when npm/yarn install fails during auto-indexing (#165)
Previously, auto-indexing jobs silently ignored npm/yarn install failures making it difficult to understand why the failures were ignored.
1 parent 4c8ca65 commit eaad661

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dev/lenient-npm.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env bash
22
set -eux
33

4+
45
if [ $# -gt 0 ] && [ "$1" == "install" ]; then
5-
/usr/local/bin/actual-npm "$@" || true
6+
/usr/local/bin/actual-npm "$@" || echo "scip-typescript: ignoring npm install failure, will try to auto-index the project with partial dependency information"
67
else
78
/usr/local/bin/actual-npm "$@"
89
fi

dev/lenient-yarn.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -eux
33

44
if [ $# -gt 1 ] && [ "$1" == "install" ]; then
5-
/usr/local/bin/actual-yarn "$@" || true
5+
/usr/local/bin/actual-yarn "$@" || echo "scip-typescript: ignoring yarn install failure, will try to auto-index the project with partial dependency information"
66
else
77
/usr/local/bin/actual-yarn "$@"
88
fi

0 commit comments

Comments
 (0)