From 4c40d452df9eae0a611f6a63084a7147261e364b Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Sat, 17 Jun 2023 01:59:23 +0800 Subject: [PATCH] github_packages: create hard link instead of copying 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. --- Library/Homebrew/github_packages.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/github_packages.rb b/Library/Homebrew/github_packages.rb index 32d9ba272b..8c111ab57f 100644 --- a/Library/Homebrew/github_packages.rb +++ b/Library/Homebrew/github_packages.rb @@ -458,7 +458,7 @@ class GitHubPackages 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