Skip to content

Commit

Permalink
github_packages: create hard link instead of copying
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
carlocab committed Jun 16, 2023
1 parent 0606b63 commit 4c40d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/github_packages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def write_image_layout(root)
def write_tar_gz(local_file, blobs)
tar_gz_sha256 = Digest::SHA256.file(local_file)
.hexdigest
FileUtils.cp local_file, blobs/tar_gz_sha256
FileUtils.ln local_file, blobs/tar_gz_sha256
tar_gz_sha256
end

Expand Down

0 comments on commit 4c40d45

Please sign in to comment.