Skip to content

Commit

Permalink
chore: retry npm install on failure (#2320)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas authored Aug 12, 2024
1 parent ca0922f commit b59eba3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,10 @@ build-kt-runtime:
@cd build/template && zip -q --symlinks -r ../../{{RUNNER_TEMPLATE_ZIP}} .

# Install Node dependencies
# npm install fails intermittently due to network issues, so we retry a few times.
npm-install:
@mk frontend/node_modules : frontend/package.json -- "cd frontend && npm install"
@mk extensions/vscode/node_modules : extensions/vscode/package.json extensions/vscode/src -- "cd extensions/vscode && npm install"
@mk frontend/node_modules : frontend/package.json -- "cd frontend && for i in {1..3}; do npm install && break || sleep 5; done"
@mk extensions/vscode/node_modules : extensions/vscode/package.json extensions/vscode/src -- "cd extensions/vscode && for i in {1..3}; do npm install && break || sleep 5; done"

# Regenerate protos
build-protos: npm-install
Expand Down

0 comments on commit b59eba3

Please sign in to comment.