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

Fix bundle lock --update --bundler #6213

Merged
merged 5 commits into from
Jun 16, 2023

Conversation

deivid-rodriguez
Copy link
Member

@deivid-rodriguez deivid-rodriguez commented Dec 29, 2022

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

bundle lock --update --bundler is not working as expected, the lockfile is not updated.

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

Make the proper changes to allow resolving the version of Bundler itself (and not always resolving to the running version).

Fixes #6195.

Make sure the following tasks are checked

@deivid-rodriguez deivid-rodriguez force-pushed the fix-bundle-lock-update-bundler branch 2 times, most recently from 46ec77e to 5826021 Compare January 11, 2023 20:49
@deivid-rodriguez deivid-rodriguez force-pushed the fix-bundle-lock-update-bundler branch 5 times, most recently from e4eb614 to d3c11a1 Compare June 14, 2023 17:32
@deivid-rodriguez deivid-rodriguez marked this pull request as ready for review June 14, 2023 17:34
We currently force the running version. But we will be allowing Bundler
to be considered as just another gem later, so that `bundle lock
--update --bundler` can actually work.
It's unclear why Ruby version is locked, whey they run `bundle update
--bundler`, and they don't explicitly check that the proper versions get
installed.

In addition to that, I think the frozen case is just working
accidentally because upgrading Bundler in frozen mode should fail unless
Bunder is already up to date.

Make the specs more explicit.
@deivid-rodriguez deivid-rodriguez merged commit dca5343 into master Jun 16, 2023
92 checks passed
@deivid-rodriguez deivid-rodriguez deleted the fix-bundle-lock-update-bundler branch June 16, 2023 14:20
deivid-rodriguez added a commit that referenced this pull request Jun 27, 2023
Fix `bundle lock --update --bundler`

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

bundle lock --update --bundler does not work as expected
1 participant