-
Notifications
You must be signed in to change notification settings - Fork 37
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
Version selectors 1.x
/1.0.x
result in 400/404
response errors on install
#37
Comments
# Why This seems to be an issue introduced on Bun's backend, see oven-sh/setup-bun#37 for more info. # How - Workaround broken `1.x` selectors by using `latest` # Test Plan See CI passing # Checklist <!-- Please check the appropriate items below if they apply to your diff. This is required for changes to Expo modules. --> - [x] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md). - [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md) - [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin).
1.x
/1.0.x
causes 400 bad request on install1.x
/1.0.x
result in 400 bad responses on install
1.x
/1.0.x
result in 400 bad responses on install1.x
/1.0.x
result in 400
response errors on install
If this shouldn't have worked from the start, consider adding it 😄 The benefit of |
This is an issue with bun's api, sadly, I can't do anything with it. Electorid must solve it. |
I'd figure as much 😄 Thanks for pulling in the right person to solve it. |
We actually think this could be a bug in Bun. These errors are not from Github, we're investigating. |
Use of 'v1.x' breaks bun in CI. For now just use 'v1' oven-sh/setup-bun#37
# Why This seems to be an issue introduced on Bun's backend, see oven-sh/setup-bun#37 for more info. # How - Workaround broken `1.x` selectors by using `latest` # Test Plan See CI passing # Checklist <!-- Please check the appropriate items below if they apply to your diff. This is required for changes to Expo modules. --> - [x] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md). - [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md) - [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin).
Looks like this is already fixed. |
It isn't. It's giving a different error now. When I try 1.x, I get this 404 error:
I guess we should re-open this issue. And maybe link it to an issue on bun side? |
I tried it and it works. Maybe you can try again? :D |
Something is wrong with bun's download api again. https://github.com/oven-sh/setup-bun/actions/runs/9020175817 |
1.x
/1.0.x
result in 400
response errors on install1.x
/1.0.x
result in 400/404
response errors on install
The issue seems triggered each time a bun new version is in the release pipeline: new version seems to be announced to the download system before the pipeline has finished and binaries are available. And fallback to previous matching latest version does not seem to work. |
The error pattern seems more related to a call to an API that is rate limited if the version contains some kind of wildcard. It seems to involve a call to a rate limited API to get a list of the available bun versions which is failing. |
I'm considering implementing wildcard resolution into the action itself instead of using API for it. It would resolve all the issues we're currently facing. |
With a static file containing all the shipped bun versions like https://nodejs.org/download/release/index.json, it will allow tools like setup-bun to get it, cache it and refresh it only if needed. Adding its generation to the bun release process should not be too hard. Adding a way to get its content hash will help tools at knowing if a refresh is needed. |
Just ran into this issue on a private repository while using the As far as I'm aware, this shouldn't be a hard thing to fix, so let's hope for the best I guess. |
Pull request #93 should resolve all issues related to this. Anybody can try the development version of setup-bun by using |
We use bun in various parts of the expo/expo repository, e.g. here. Like the node setup action, we use a version selector with a
.x
, e.g.,node-version: 18.x
.This seemed to work until some days ago when our CI started failing with the following message:
A quick test showed that using the exact version number does seem to work, but
1.x
or1.0.x
won't anymore. Is this something that never should have worked, or a bug? 😄1.0.x
1.x
1.0.11
latest
See
1.0.11
responseSee
latest
responseThe text was updated successfully, but these errors were encountered: