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

Remove bottle cache hard linking #985

Merged
merged 1 commit into from
Nov 22, 2023
Merged

Conversation

Bo98
Copy link
Member

@Bo98 Bo98 commented Nov 22, 2023

This is way too fragile and has broken multiple times before (it's why we have /github/home manually set as the working directory in a few places), including from changes like Homebrew/brew#16245. It relies far too much on brew internals and we forgot to even update when switching to GitHub Packages until two years later. I'm not entirely sure how anyone even noticed in the end. It also has never supported manifest linking.

I'm not sure if it's even necessary anymore. The formulae intentionally stay installed so when would we be fetching it again? I'd like to try without this and see what breaks. If nothing: great. If there is something: I'd like to see if there's a better way to fix it as it might mean something is getting fetched unnecessarily.

The cleanup side of it was very outdated as well and wasn't working.

@Bo98 Bo98 merged commit 6d3f6ad into Homebrew:master Nov 22, 2023
4 checks passed
@Bo98 Bo98 deleted the no-more-hardlinks branch November 22, 2023 01:24
@carlocab
Copy link
Member

Thanks Bo! I've always wondered what this bit of code was really for.

@MikeMcQuaid
Copy link
Member

Fine with me. This optimisation was when our workers weren't ephemeral, we kept the cache between runs and the disk usage was excessive. Thanks!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants