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
github_packages: create hard link instead of copying #15553
Conversation
Some bottles are quite large, and the copies can make us run out of space rather quickly. Let's try to avoid that by using hard links instead of copies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine as long as it's tested/verified to produce the same end result (because this changes what we're actually uploading).
Is there a nice way to check for this? Sounds like it could be a conditional if it's not too complex. But it sounds like both might(?) be relative to the working directory which should mean it is always the same file system, and thus not a problem. |
Could you elaborate on what you mean by this? Because one of my reasons for this change is that doing this doesn't change what we're uploading. That said, I did try to look at what Details
We can also check the output of
However, the
This should mean that nothing important has changed other than the size of the working directory. But let me know if I should be looking out for anything else.
I haven't looked, but I was thinking the same thing too.
Yes, you're right, it does look like everything happens in the current working directory so the hard links should be fine. |
As you've checked: that's more than enough for me, thanks! |
Thanks again @carlocab! |
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?Some bottles are quite large, and the copies can make us run out of
space rather quickly. Let's try to avoid that by using hard links
instead of copies.
One case worth thinking about that I don't handle here: what if the source and destination live in different file systems?