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
Bypass $LOAD_PATH feature for bundled gems #6811
Conversation
…ndler with old rubygems
…ubygemsIntegration
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
I understand wanting to make this transition smooth, thanks for working on this.
In my opinion, this is (part of) the correct solution. Users using
I really like this since I don't like penalizing every Bundler user with having a longer This should be a transitional measure, but the desired long term result should be that bundled gems are treated as usual, and are specified explicitly via Gemfile or gemspec. However, warning this is tricky, since we don't want to bother end users for issues in their dependencies, which they can't solve directly. So, I don't have a good solution for warning this. Another less effective, but easier alternative, would be to let people opt-in to a |
@deivid-rodriguez Thank you for your feedback. I and @mame, @nobu discussed this. Our plan B is:
Also thanks this idea. I'm considering another idea with this. |
Thanks @hsbt.
My point is that if user is not using So maybe I would instead let people opt-in to not adding bundled gems to |
What was the end-user or developer problem that led to this PR?
This is PoC and WIP status for https://bugs.ruby-lang.org/issues/19351 and ruby/ruby#7436
I would like to promote current default gems to bundled gems in
ruby/ruby
repository. After that, the users need to add bundled gems likecsv
,nkf
and others intoGemfile
on their application.The Ruby core team want to reduce additional work with bundled gems from users.
What is your fix for the problem, implemented in this PR?
I introduce bypass feature under the Bundler environment. The users can load bundled gems like
csv
withoutgem 'csv'
on Gemfile. Additionally, I will warn notice message when user loadedcsv
library without Gemfile.Make sure the following tasks are checked