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

Skip setting BUNDLER_SETUP on Ruby 2.6 #6252

Merged
merged 1 commit into from
Jan 10, 2023

Conversation

deivid-rodriguez
Copy link
Member

What was the end-user or developer problem that led to this PR?

Setting BUNDLER_SETUP on bundle exec so that RubyGems can setup the bundle early in the subprocess breaks loading DidYouMean on Ruby 2.6, since it was a bundled (not default) gem there, and thus gets "erased" by bundler/setup.

What is your fix for the problem, implemented in this PR?

Skip this feature on Ruby 2.6.

Closes #6251.

Make sure the following tasks are checked

@deivid-rodriguez deivid-rodriguez force-pushed the skip-setting-bundler-setup-on-ruby-2.6 branch from 6a41632 to 768c2a3 Compare January 8, 2023 08:09
@deivid-rodriguez deivid-rodriguez marked this pull request as ready for review January 8, 2023 08:10
@simi
Copy link
Member

simi commented Jan 8, 2023

🤔 Was #6025 just forgotten? I think we all agreed that was mistake to merge.

@deivid-rodriguez
Copy link
Member Author

@mame and @hsbt were fine with merging and shipping it. Nobody answered my request for a revert, and I couldn't find a strong reason to block it unilaterally other than "it feels wrong", so I did not proceed with the revert myself. So, to answer your question, no, I personally did not forget.

At this point I'm not sure we should revert the feature. People may be already using it, since we have released it. That's why I went with reverting it for Ruby 2.6 to fix this particular issue as the least controversial thing to do.

@deivid-rodriguez
Copy link
Member Author

I will merge this, since whatever we discuss around this issue should not block fixing #6251.

@deivid-rodriguez deivid-rodriguez force-pushed the skip-setting-bundler-setup-on-ruby-2.6 branch from 768c2a3 to 2abae4c Compare January 8, 2023 19:30
@hsbt
Copy link
Member

hsbt commented Jan 10, 2023

Thanks. I try to replace it with other approach. But I'm not sure when it's done. I'm +1 to skip it on Ruby 2.6.

@deivid-rodriguez deivid-rodriguez merged commit 17b4977 into master Jan 10, 2023
@deivid-rodriguez deivid-rodriguez deleted the skip-setting-bundler-setup-on-ruby-2.6 branch January 10, 2023 11:38
deivid-rodriguez added a commit that referenced this pull request Jan 13, 2023
…ruby-2.6

Skip setting `BUNDLER_SETUP` on Ruby 2.6

(cherry picked from commit 17b4977)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uninitialized constant DidYouMean::VERSION for Ruby 2.6
3 participants