Merge pull request #15569 from Homebrew/force-ln

github_packages: call `ln` with `force`
This commit is contained in:
Carlo Cabrera 2023-06-20 00:15:42 +08:00 committed by GitHub
commit 9e747d8769
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -458,7 +458,7 @@ class GitHubPackages
def write_tar_gz(local_file, blobs)
tar_gz_sha256 = Digest::SHA256.file(local_file)
.hexdigest
FileUtils.ln local_file, blobs/tar_gz_sha256
FileUtils.ln local_file, blobs/tar_gz_sha256, force: true
tar_gz_sha256
end