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

Switch to EA builds from graalvm/graal-languages-ea-builds for truffleruby+graalvm-dev #2356

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

eregon
Copy link
Member

@eregon eregon commented Mar 18, 2024

Comment on lines +21 to +24
pushd "$BUILD_PATH" >/dev/null
http get $url url.txt
url=$(<url.txt)
popd
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pushd is needed because aria2c -o /absolute/path doesn't work, it actually writes in /cwd//absolute/path which is the same as /cwd/absolute/path.
It would be tempting to just use curl to avoid the extra file, but that doesn't work on systems without curl.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the ruby-build script only ever calls http with a path-less filename so it just downloads to the CWD and eventually removes the file.
I worked around this once by just using a tempfile: Shopify/ruby-definitions#36

@eregon eregon merged commit f08493a into rbenv:master Mar 18, 2024
4 checks passed
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 this pull request may close these issues.

2 participants