mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

- Found with `grep -rL "# typed: strict" Library/Homebrew | xargs grep -l "undef "`. - This stops people from trying to bump them and getting an error that they can't fix because [it's a Sorbet limitation](https://sorbet.org/docs/error-reference#3008), wasting contributor time.
27 lines
605 B
Ruby
27 lines
605 B
Ruby
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
|
# frozen_string_literal: true
|
|
|
|
module Homebrew
|
|
module DevCmd
|
|
class Bottle < AbstractCommand
|
|
undef tar_args
|
|
|
|
sig { returns(T::Array[String]) }
|
|
def tar_args
|
|
if MacOS.version >= :catalina
|
|
["--no-mac-metadata", "--no-acls", "--no-xattrs"].freeze
|
|
else
|
|
[].freeze
|
|
end
|
|
end
|
|
|
|
undef gnu_tar
|
|
|
|
sig { params(gnu_tar_formula: Formula).returns(String) }
|
|
def gnu_tar(gnu_tar_formula)
|
|
"#{gnu_tar_formula.opt_bin}/gtar"
|
|
end
|
|
end
|
|
end
|
|
end
|