Skip to content

Conversation

@deivid-rodriguez
Copy link
Contributor

@deivid-rodriguez deivid-rodriguez commented Jun 6, 2024

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

When people are running bundler through binstubs (that require bundler/setup instead of loading the CLI), and they are also installing gems to a local path, Bundler will fail to auto-switch to the locked version.

This may cause old Bundler versions to run new lockfiles, causing issues like #7715.

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

My fix is to make sure auto-switch also happens when requiring bundler/setup, and not only when loading the CLI.

Fixes #7715.

Make sure the following tasks are checked

@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/auto-switch-from-binstubs branch 2 times, most recently from 7861ba8 to da93615 Compare June 6, 2024 20:26
@deivid-rodriguez deivid-rodriguez marked this pull request as ready for review June 6, 2024 20:26
@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/auto-switch-from-binstubs branch from da93615 to 076aba8 Compare June 11, 2024 12:19
@deivid-rodriguez deivid-rodriguez merged commit 975ee9d into master Jun 11, 2024
@deivid-rodriguez deivid-rodriguez deleted the deivid-rodriguez/auto-switch-from-binstubs branch June 11, 2024 13:30
deivid-rodriguez added a commit that referenced this pull request Jun 12, 2024
…rom-binstubs

Auto switch to locked bundler version even when using binstubs

(cherry picked from commit 975ee9d)
deivid-rodriguez added a commit that referenced this pull request Jun 12, 2024
…rom-binstubs

Auto switch to locked bundler version even when using binstubs

(cherry picked from commit 975ee9d)
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.

Can't bundle sidekiq-ent with latest Bundler

2 participants