Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

just install errors #1488

Closed
kapilt opened this issue Jan 10, 2023 · 4 comments · Fixed by #1499
Closed

just install errors #1488

kapilt opened this issue Jan 10, 2023 · 4 comments · Fixed by #1499

Comments

@kapilt
Copy link

kapilt commented Jan 10, 2023

so using the install shell script ala

curl --proto '=https' --tlsv1.3 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin

gets an error when the script runs specifically this block

if [ -z ${tag-} ]; then
  tag=$(curl --proto =https --tlsv1.3 -sSf https://api.github.com/repos/casey/just/releases/latest |
    grep tag_name |
    cut -d'"' -f4
  )
fi

will periodically but regularly result in a 403, which is causing some ci failures for us.

+ '[' -z ']'
[110](https://github.com/org/repo/actions/runs/3884593200/jobs/6627379737#step:4:115)
++ curl --proto =https --tlsv1.3 -sSf https://api.github.com/repos/casey/just/releases/latest
[111](https://github.com/org/repo/actions/runs/3884593200/jobs/6627379737#step:4:116)
++ grep tag_name
[112](https://github.com/org/repo/actions/runs/3884593200/jobs/6627379737#step:4:117)
++ cut '-d"' -f4
[113](https://github.com/org/repo/actions/runs/3884593200/jobs/6627379737#step:4:118)
curl: (22) The requested URL returned error: 403
[114](https://github.com/org/repo/actions/runs/3884593200/jobs/6627379737#step:4:119)
+ tag=
[115](https://github.com/org/repo/actions/runs/3884593200/jobs/6627379737#step:4:120)
Error: Process completed with exit code 1.
@casey
Copy link
Owner

casey commented Jan 11, 2023

Are you running this on GitHub Actions? Actions rate-limits requests, so errors like this are unavoidable. Can you pass a specific tag, e.g. 1.11.0? That would avoid this call, but I think downloading the binary itself is still rate limited.

@kapilt
Copy link
Author

kapilt commented Jan 11, 2023

yeah using a specific tag works great, and yes this was in GitHub actions re ci.

@kapilt
Copy link
Author

kapilt commented Jan 11, 2023

maybe worth just adding to the docs/readme, but else this is closable.

@casey
Copy link
Owner

casey commented Jan 12, 2023

Nice. Opened #1499 to document this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants