ask-cli: remove from universal binary allowlist (#83477)

master
Carlo Cabrera 2021-08-18 20:18:54 +08:00 committed by GitHub
parent 688246d15f
commit f99bc29f85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class AskCli < Formula
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
bin.write_exec_script libexec/"bin/ask"
term_size_vendor_dir = libexec/"lib/node_modules/#{name}/node_modules/term-size/vendor"
term_size_vendor_dir = libexec/"lib/node_modules"/name/"node_modules/term-size/vendor"
term_size_vendor_dir.rmtree # remove pre-built binaries
on_macos do
@ -34,6 +34,9 @@ class AskCli < Formula
# Replace the vendored pre-built term-size with one we build ourselves
ln_sf (Formula["macos-term-size"].opt_bin/"term-size").relative_path_from(macos_dir), macos_dir
end
# Replace universal binaries with native slices
deuniversalize_machos
end
test do

View File

@ -1,5 +1,4 @@
[
"ask-cli",
"babel",
"cdktf",
"code-server",