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 platform specific gems being removed from the lockfile #4580

Merged
merged 1 commit into from
May 8, 2021

Conversation

deivid-rodriguez
Copy link
Member

@deivid-rodriguez deivid-rodriguez commented May 6, 2021

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

Sometimes bundler is removing some gems from the lockfile that it shouldn't be removing.

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

My fix is to revert 1f7797a in favour of another approach to fix the same issue.

Originally the approach being removed here was implemented so that we could get rid of this platform filtering pass, which would have the effect of fixing a performance regression: #4275.

However, removing this platform filtering pass is not really necessary to improve the performance. All that it needs to be done is to move the platform filtering pass to be inside the resolver so that it's only run when we actually resolve, not for every usage of a bundle.

By restoring it at the right place, this issue should be gone without reintroducing any past issues.

Fixes #4516.

Make sure the following tasks are checked

@deivid-rodriguez deivid-rodriguez marked this pull request as ready for review May 6, 2021 13:55
@deivid-rodriguez deivid-rodriguez merged commit f1379c8 into master May 8, 2021
@deivid-rodriguez deivid-rodriguez deleted the fix_resolver_removing_deps_from_lockfile branch May 8, 2021 09:58
deivid-rodriguez added a commit that referenced this pull request May 25, 2021
…m_lockfile

Fix platform specific gems being removed from the lockfile

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

Platform specific gems in gemfile.lock being removed in 2.2 now
2 participants