Skip to content

Commit

Permalink
fix(script): fail if corepack doesn't have version in cache
Browse files Browse the repository at this point in the history
auto download package manager only if allowed
  • Loading branch information
mhofman committed Aug 31, 2024
1 parent 20cde6b commit 42e2b00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/agd-builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ else
fi

if $need_nodejs; then
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
export COREPACK_ENABLE_NETWORK=$($SKIP_DOWNLOAD && echo 0 || echo 1)

# We need to get node at the script top level because it's used by the daemon
# as well.
case $(node --version 2> /dev/null) in
Expand Down

0 comments on commit 42e2b00

Please sign in to comment.