-
-
Notifications
You must be signed in to change notification settings - Fork 254
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
Download link is invalid for macos-latest (macos-13) with Ruby 2.5 #601
Comments
|
@hsbt I'm a little confused, because I just ran with |
@hsbt - oh you're right, the underlying runner is macos-14-arm64, however, the URl being generated is saying macos-13: https://github.com/ruby/ruby-builder/releases/download/toolcache/ruby-2.5.9-macos-13-arm64.tar.gz I do see there is a https://github.com/ruby/ruby-builder/releases/download/toolcache/ruby-2.5.9-macos-latest.tar.gz build available, but that's not the URL being generated by setup-ruby |
This is the logic used by setup-ruby: Lines 115 to 116 in 7dc18ff
This is the motivation behind it: #567 (comment) Your job is running on |
You need to use |
Thanks @dentarg - let me give that a try |
Thank you! That worked - I thought it was a bug that 14 was downloading 13, but I see now that pinning to macos-13 works. Thanks again! |
Yeah the URLs can be confusing, if would be nice to clarify them but that's a lot of work and would need duplicate files for a long time, so not realistic I'm afraid. The real confusion and problem IMO is GitHub changed macos-latest from an amd64 to a arm64 runner, that's really surprising, IMO the arch should be part of the image name (and probably it will need to be when there is linux-aarch64) |
For future readers, here is the change i made in my repo to get it working: ManageIQ/rbvmomi2@e7ee943 |
Looking at the error message we should improve that so it says 2.5 is not available on macos-arm, I'll reopen to track that |
Ensure the following before filing this issue
I verified it reproduces with the latest version with
- uses: ruby/setup-ruby@v1
(see Versioning policy)I tried to reproduce the issue locally by following the workflow steps (including all commands done by
ruby/setup-ruby
, except forDownloading Ruby
&Extracting Ruby
),and it did not reproduce locally (if it does reproduce locally, it's not a ruby/setup-ruby issue)
Are you running on a GitHub-hosted runner or a self-hosted runner?
GitHub-hosted runner
Link to the failed workflow job (must be a public workflow job, so the necessary information is available)
https://github.com/ManageIQ/rbvmomi2/actions/runs/9180932157/job/25246498930
Any other notes?
I'm not sure why macos-latest points to macos-13, but because of that it generates an invalid download link to https://github.com/ruby/ruby-builder/releases/download/toolcache/ruby-2.5.9-macos-13-arm64.tar.gz
The text was updated successfully, but these errors were encountered: