Logo
Explore Help
Sign In
mirrors/brew
1
0
Fork 0
You've already forked brew
mirror of https://github.com/Homebrew/brew.git synced 2025-07-14 16:09:03 +08:00
Code Issues Packages Projects Releases Wiki Activity
brew/Library/Homebrew/extend/os/mac/dev-cmd/bottle.rb

19 lines
397 B
Ruby
Raw Normal View History

dev-cmd/bottle: Refactor `setup_tar_and_args!` to extend/os
2023-04-10 16:18:56 -04:00
# typed: true
# frozen_string_literal: true
module Homebrew
sig { returns(T::Array[String]) }
def self.tar_args
bottle: some tar flags is not supported on Mojave
2023-05-04 04:01:51 +08:00
if MacOS.version >= :catalina
["--no-mac-metadata", "--no-acls", "--no-xattrs"].freeze
else
[].freeze
end
dev-cmd/bottle: Refactor `setup_tar_and_args!` to extend/os
2023-04-10 16:18:56 -04:00
end
bottle: reproducibility fixes. I noticed from https://github.com/Homebrew/homebrew-core/actions/runs/5751070010 that we're no longer creating reproducible bottles between macOS and Linux. All macOS checksums have changed but Linux ones have not. The main difference between the two platforms is the `gtar` version used so let's always just use the formula on both platforms. While we're here, clear up the ordering and comments a little on the reproducible `tar` arguments so that it's easier to compare with the reproducible builds archives documentation.
2023-08-04 10:02:44 +01:00
sig { params(gnu_tar_formula: Formula).returns(String) }
def self.gnu_tar(gnu_tar_formula)
"#{gnu_tar_formula.opt_bin}/gtar"
end
dev-cmd/bottle: Refactor `setup_tar_and_args!` to extend/os
2023-04-10 16:18:56 -04:00
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 75ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API