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

Ensure it is safe to remove the prefix path for TruffleRuby or error #1784

Merged
merged 1 commit into from
Jul 26, 2021

Conversation

eregon
Copy link
Member

@eregon eregon commented Jul 26, 2021

The error message looks like:

$ bin/ruby-build truffleruby-dev /usr/local
Downloading truffleruby-head-ubuntu-18.04.tar.gz...
-> https://github.com/ruby/truffleruby-dev-builder/releases/latest/download/truffleruby-head-ubuntu-18.04.tar.gz
Installing truffleruby-head...

ERROR: cannot install TruffleRuby to /usr/local, which does not look like a valid TruffleRuby prefix
TruffleRuby only supports being installed to a not existing directory or replacing an existing TruffleRuby installation
See https://github.com/oracle/truffleruby/issues/1389 for details

BUILD FAILED (OS VERSION using ruby-build 20210720-2-g6fa319f)

Inspect or clean up the working tree at /tmp/ruby-build.20210726155937.184076.UFViZv
Results logged to /tmp/ruby-build.20210726155937.184076.log

* Only do clean_prefix_path for TruffleRuby and rename for clarity,
  since the logic is now TruffleRuby-specific.
@eregon eregon force-pushed the check-prefix-in-clean_prefix_path branch from 6fa319f to 0db162e Compare July 26, 2021 14:15
@eregon eregon merged commit ac72249 into rbenv:master Jul 26, 2021
@eregon eregon deleted the check-prefix-in-clean_prefix_path branch July 26, 2021 15:44
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.

1 participant