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 incorrect ruby platform removal from lockfile when adding Gemfile dependencies #6540

Merged
merged 1 commit into from
Mar 24, 2023

Conversation

deivid-rodriguez
Copy link
Member

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

When adding a new Gemfile dependencies, we're incorrectly replacing the RUBY platform with the locked platform in the lockfile.

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

Skip the removal of the RUBY platform when dependencies have changed.

Fixes #6536.

Make sure the following tasks are checked

When dependencies have changed, we'll be re-resolving, and we can't
really know whether the resolution will be valid or invalid for the Ruby
platform, so skip the removal in that case.

The fix worked, but made some other specs fail, and surfaced that the
`@dependencies_changed` attribute was actually being incorrect set when
explicitly unlocking. Fixed that with an early return.
@simi simi added this pull request to the merge queue Mar 24, 2023
Merged via the queue into master with commit db67560 Mar 24, 2023
@simi simi deleted the fix-incorrect-ruby-platform-removal branch March 24, 2023 19:50
deivid-rodriguez pushed a commit that referenced this pull request Mar 24, 2023
…moval

Fix incorrect ruby platform removal from lockfile when adding Gemfile dependencies

(cherry picked from commit db67560)
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 removing ruby platform (redux)
2 participants