-
Notifications
You must be signed in to change notification settings - Fork 792
Stop deleting the prefix path on install of TruffleRuby #1783
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
Conversation
I think I would rather abort in Essentially TruffleRuby does not support being installed in I think installing software in /usr/local (directly, not in subdirectory) is a strange practice, it's impossible to uninstall, it's impossible to clean up or reinstall, etc. That's based on my experience, but maybe others have different views on this? |
Another view of this, if the software is packaged as a prebuilt archive like TruffleRuby and JRuby, how does it feel if you would have to manually extract it to |
Weird, after patching
Yes. In our case we use Docker layers and rebuild from scratch. Re-install or uninstall is not a concern, and installing in
Not a concern either for out use case, it's almost a feature as we ensure dependencies are only handled by bundler. |
Isn't that how most package managers work?
What would be very messy IMHO would be to have my entire |
To clarify this statement after reading truffleruby/truffleruby#1389, our system build docker images dynamically. So we have a bunch of code that expect "some ruby" to be installed in $ ruby-build "${USER_PROVIDED_RUBY_VERSION}" /usr/local/ |
There are a couple important differences for package managers:
Is the requirement just to have |
I know, but this But if you are adamant this |
I think it should stay at least for a-Ruby-prefix cases. For not-a-Ruby-prefix cases, I agree the I'll make an alternative PR. |
👍 |
=> #1784 |
This is essentially a revert of cda9b11
I understand the intent of helping people using
ruby-build
for their dev environment, where multiple rubies coexists in multiple sub directories, but:ruby-build
to generate production Docker images, so I directly install ruby with/usr/local
as a prefix, and this delete important, unrelated files.So I believe it does more harm than good.
cc @eregon
cc @tomstuart @chrisseaton