Skip to content

Cleanup unnecessary gems when removing lockfile platforms#6234

Merged
deivid-rodriguez merged 1 commit intomasterfrom
cleanup-unnecessary-gems-when-removing-platforms
Jan 5, 2023
Merged

Cleanup unnecessary gems when removing lockfile platforms#6234
deivid-rodriguez merged 1 commit intomasterfrom
cleanup-unnecessary-gems-when-removing-platforms

Conversation

@deivid-rodriguez
Copy link
Copy Markdown
Contributor

@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