Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

cleanup: improve cleanup version detection. #19137

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Conversation

MikeMcQuaid
Copy link
Member

We're using formula.eligible_kegs_for_cleanup to figure out which formula should be kept or removed based on e.g. brew pin status but we didn't use this sufficiently in brew cleanup to avoid cleaning up all cached files related to a pinned keg.

Instead, let's use a (cached) call to formula.eligible_kegs_for_cleanup to ensure that we check all related resources, manifests, etc. for pinned bottles rather than just the latest version.

@MikeMcQuaid MikeMcQuaid force-pushed the cleanup_improve_pinned branch 2 times, most recently from 1abb526 to 5f72fdb Compare January 23, 2025 14:45
@MikeMcQuaid MikeMcQuaid enabled auto-merge January 23, 2025 14:48
We're using `formula.eligible_kegs_for_cleanup` to figure out which
formula should be kept or removed based on e.g. `brew pin` status but
we didn't use this sufficiently in `brew cleanup` to avoid cleaning up
all cached files related to a pinned keg.

Instead, let's use a (cached) call to
`formula.eligible_kegs_for_cleanup` to ensure that we check all
related resources, manifests, etc. for pinned bottles rather than just
the latest version.
@MikeMcQuaid MikeMcQuaid force-pushed the cleanup_improve_pinned branch from 5f72fdb to fa8ada3 Compare January 23, 2025 16:04
@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Jan 23, 2025
Merged via the queue into master with commit d0304b4 Jan 23, 2025
28 checks passed
@MikeMcQuaid MikeMcQuaid deleted the cleanup_improve_pinned branch January 23, 2025 16:48
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants