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

Cleanup unnecessary gems when removing lockfile platforms #6234

Merged

Conversation

deivid-rodriguez
Copy link
Member

@deivid-rodriguez deivid-rodriguez commented Jan 4, 2023

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

When removing lockfile platforms, unnecessary lockfile gems are not cleaned up, and then they are confusingly lost in subsequent commands.

This used to work fine, but when we introduced #5695 for speed, this feature was lost.

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

Restore the feature by remembering when platforms have been removed, so that we don't reintroduce any performance penalty in the general case.

Fixes #6231.

Make sure the following tasks are checked

@deivid-rodriguez deivid-rodriguez force-pushed the cleanup-unnecessary-gems-when-removing-platforms branch from 45eee4a to 20e4e0c Compare January 5, 2023 06:24
@deivid-rodriguez deivid-rodriguez force-pushed the cleanup-unnecessary-gems-when-removing-platforms branch from 20e4e0c to 1b7bdaa Compare January 5, 2023 09:26
@deivid-rodriguez deivid-rodriguez merged commit 6ba790c into master Jan 5, 2023
@deivid-rodriguez deivid-rodriguez deleted the cleanup-unnecessary-gems-when-removing-platforms branch January 5, 2023 11:11
deivid-rodriguez added a commit that referenced this pull request Jan 6, 2023
…removing-platforms

Cleanup unnecessary gems when removing lockfile platforms

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

The "remove-platform" command does not remove platform gems
1 participant