language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
Homebrew
brew
4e07d7b9f4f8aee223725258b946fa383f65047c.json
Set HOMEBREW_GITHUB_API_TOKEN from GITHUB_TOKEN. If `HOMEBREW_GITHUB_API_TOKEN` is not set and `GITHUB_TOKEN` is: let's use it. `GITHUB_TOKEN` is a somewhat standard env var to set for GitHub authentication tokens (e.g. used by `hub`).
docs/Manpage.md
@@ -1282,6 +1282,8 @@ Note that environment variables must have a value set to be detected. For exampl *Note:* Homebrew doesn't require permissions for any of the scopes. + *Default:* `$GITHUB_TOKEN`. + * `HOMEBREW_GITHUB_API_USERNAME`: GitHub username for authentication with the GitHub API, used by...
true
Other
Homebrew
brew
4e07d7b9f4f8aee223725258b946fa383f65047c.json
Set HOMEBREW_GITHUB_API_TOKEN from GITHUB_TOKEN. If `HOMEBREW_GITHUB_API_TOKEN` is not set and `GITHUB_TOKEN` is: let's use it. `GITHUB_TOKEN` is a somewhat standard env var to set for GitHub authentication tokens (e.g. used by `hub`).
manpages/brew.1
@@ -1637,6 +1637,9 @@ A personal access token for the GitHub API, used by Homebrew for features such a .IP \fINote:\fR Homebrew doesn\'t require permissions for any of the scopes\. . +.IP +\fIDefault:\fR \fB$GITHUB_TOKEN\fR\. +. .TP \fBHOMEBREW_GITHUB_API_USERNAME\fR GitHub username for authentication with the Gi...
true
Other
Homebrew
brew
6cfd8065fc3ba9855f898bd84509bbce000da930.json
Remove old pkgconfig files. Homebrew no longer runs on these macOS versions.
Library/Homebrew/os/mac/pkgconfig/10.4
@@ -1 +0,0 @@ -10.5 \ No newline at end of file
true
Other
Homebrew
brew
6cfd8065fc3ba9855f898bd84509bbce000da930.json
Remove old pkgconfig files. Homebrew no longer runs on these macOS versions.
Library/Homebrew/os/mac/pkgconfig/10.5/libcrypto.pc
@@ -1,11 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include - -Name: OpenSSL-libcrypto -Description: OpenSSL cryptography library -Version: 0.9.7l -Requires: -Libs: -L${libdir} -lcrypto -lz -Cflags: -I${includedir}
true
Other
Homebrew
brew
6cfd8065fc3ba9855f898bd84509bbce000da930.json
Remove old pkgconfig files. Homebrew no longer runs on these macOS versions.
Library/Homebrew/os/mac/pkgconfig/10.5/libcurl.pc
@@ -1,12 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include - -Name: libcurl -URL: http://curl.haxx.se/ -Description: Library to transfer files with ftp, http, etc. -Version: 7.16.4 -Libs: -L${libdir} -lcurl -Libs.private: -lssl -lcrypto -Wl,-weak-lldap -Wl,-weak-lgssa...
true
Other
Homebrew
brew
6cfd8065fc3ba9855f898bd84509bbce000da930.json
Remove old pkgconfig files. Homebrew no longer runs on these macOS versions.
Library/Homebrew/os/mac/pkgconfig/10.5/uuid.pc
@@ -1,13 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -sharedlibdir=${libdir} -includedir=${prefix}/include - -Name: uuid -Description: Universally unique id library -Version: 1.0 - -Requires: -Libs: -Cflags: -I${includedir}/uuid
true
Other
Homebrew
brew
6cfd8065fc3ba9855f898bd84509bbce000da930.json
Remove old pkgconfig files. Homebrew no longer runs on these macOS versions.
Library/Homebrew/os/mac/pkgconfig/10.6/sqlite3.pc
@@ -1,11 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include - -Name: SQLite -Description: SQL database engine -Version: 3.6.12 -Libs: -L${libdir} -lsqlite3 -Libs.private: -Cflags: -I${includedir}
true
Other
Homebrew
brew
6cfd8065fc3ba9855f898bd84509bbce000da930.json
Remove old pkgconfig files. Homebrew no longer runs on these macOS versions.
Library/Homebrew/os/mac/pkgconfig/10.6/uuid.pc
@@ -1,13 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -sharedlibdir=${libdir} -includedir=${prefix}/include - -Name: uuid -Description: Universally unique id library -Version: 1.0 - -Requires: -Libs: -Cflags: -I${includedir}/uuid
true
Other
Homebrew
brew
6cfd8065fc3ba9855f898bd84509bbce000da930.json
Remove old pkgconfig files. Homebrew no longer runs on these macOS versions.
Library/Homebrew/os/mac/pkgconfig/10.6/zlib.pc
@@ -1,13 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -sharedlibdir=${libdir} -includedir=${prefix}/include - -Name: zlib -Description: zlib compression library -Version: 1.2.3 - -Requires: -Libs: -L${libdir} -L${sharedlibdir} -lz -Cflags: -I${includedir}
true
Other
Homebrew
brew
6cfd8065fc3ba9855f898bd84509bbce000da930.json
Remove old pkgconfig files. Homebrew no longer runs on these macOS versions.
Library/Homebrew/os/mac/pkgconfig/10.7/sqlite3.pc
@@ -1,11 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include - -Name: SQLite -Description: SQL database engine -Version: 3.7.7 -Libs: -L${libdir} -lsqlite3 -Libs.private: -Cflags: -I${includedir}
true
Other
Homebrew
brew
6cfd8065fc3ba9855f898bd84509bbce000da930.json
Remove old pkgconfig files. Homebrew no longer runs on these macOS versions.
Library/Homebrew/os/mac/pkgconfig/10.7/uuid.pc
@@ -1,13 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -sharedlibdir=${libdir} -includedir=${prefix}/include - -Name: uuid -Description: Universally unique id library -Version: 1.0 - -Requires: -Libs: -Cflags: -I${includedir}/uuid
true
Other
Homebrew
brew
6cfd8065fc3ba9855f898bd84509bbce000da930.json
Remove old pkgconfig files. Homebrew no longer runs on these macOS versions.
Library/Homebrew/os/mac/pkgconfig/10.7/zlib.pc
@@ -1,13 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -sharedlibdir=${libdir} -includedir=${prefix}/include - -Name: zlib -Description: zlib compression library -Version: 1.2.5 - -Requires: -Libs: -L${libdir} -L${sharedlibdir} -lz -Cflags: -I${includedir}
true
Other
Homebrew
brew
6cfd8065fc3ba9855f898bd84509bbce000da930.json
Remove old pkgconfig files. Homebrew no longer runs on these macOS versions.
Library/Homebrew/os/mac/pkgconfig/10.8/libcurl.pc
@@ -1,39 +0,0 @@ -#*************************************************************************** -# _ _ ____ _ -# Project ___| | | | _ \| | -# / __| | | | |_) | | -# | (__| |_| | _ <| |___ -# ...
true
Other
Homebrew
brew
6cfd8065fc3ba9855f898bd84509bbce000da930.json
Remove old pkgconfig files. Homebrew no longer runs on these macOS versions.
Library/Homebrew/os/mac/pkgconfig/10.8/libexslt.pc
@@ -1,12 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include - - -Name: libexslt -Version: 0.8.15 -Description: EXSLT Extension library -Requires: libxml-2.0 -Libs: -L${libdir} -lexslt -lxslt -lxml2 -lz -lpthread -licucore -lm -Cflags: -I${includedir}
true
Other
Homebrew
brew
6cfd8065fc3ba9855f898bd84509bbce000da930.json
Remove old pkgconfig files. Homebrew no longer runs on these macOS versions.
Library/Homebrew/os/mac/pkgconfig/10.8/libxml-2.0.pc
@@ -1,13 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include -modules=1 - -Name: libXML -Version: 2.7.8 -Description: libXML library version2. -Requires: -Libs: -L${libdir} -lxml2 -Libs.private: -lpthread -lz -lm -Cflags: -I${includedir}/libxml2
true
Other
Homebrew
brew
6cfd8065fc3ba9855f898bd84509bbce000da930.json
Remove old pkgconfig files. Homebrew no longer runs on these macOS versions.
Library/Homebrew/os/mac/pkgconfig/10.8/libxslt.pc
@@ -1,12 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include - - -Name: libxslt -Version: 1.1.26 -Description: XSLT library version 2. -Requires: libxml-2.0 -Libs: -L${libdir} -lxslt -lxml2 -lz -lpthread -licucore -lm -Cflags: -I${includedir}
true
Other
Homebrew
brew
6cfd8065fc3ba9855f898bd84509bbce000da930.json
Remove old pkgconfig files. Homebrew no longer runs on these macOS versions.
Library/Homebrew/os/mac/pkgconfig/10.8/sqlite3.pc
@@ -1,11 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include - -Name: SQLite -Description: SQL database engine -Version: 3.7.12 -Libs: -L${libdir} -lsqlite3 -Libs.private: -Cflags: -I${includedir}
true
Other
Homebrew
brew
6cfd8065fc3ba9855f898bd84509bbce000da930.json
Remove old pkgconfig files. Homebrew no longer runs on these macOS versions.
Library/Homebrew/os/mac/pkgconfig/10.8/uuid.pc
@@ -1,13 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -sharedlibdir=${libdir} -includedir=${prefix}/include - -Name: uuid -Description: Universally unique id library -Version: 1.0 - -Requires: -Libs: -Cflags: -I${includedir}/uuid
true
Other
Homebrew
brew
6cfd8065fc3ba9855f898bd84509bbce000da930.json
Remove old pkgconfig files. Homebrew no longer runs on these macOS versions.
Library/Homebrew/os/mac/pkgconfig/10.8/zlib.pc
@@ -1,13 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -sharedlibdir=${libdir} -includedir=${prefix}/include - -Name: zlib -Description: zlib compression library -Version: 1.2.5 - -Requires: -Libs: -L${libdir} -L${sharedlibdir} -lz -Cflags: -I${includedir}
true
Other
Homebrew
brew
fb0052068f3f948e0103066bb6a80099c13cc600.json
env_config: unify environment variables. cli/parser but for environment variables. This makes it easier to set, check, document and set defaults for environment variables in a single location that can be used for query and documentation generation.
Library/Homebrew/env_config.rb
@@ -0,0 +1,308 @@ +# frozen_string_literal: true + +module Homebrew + module EnvConfig + module_function + + ENVS = { + HOMEBREW_ARCH: { + description: "Linux only: Homebrew will pass the set value to type name to the compiler's `-march` option.", + default: "native", ...
false
Other
Homebrew
brew
37dcbbaf65e0faf918069f1689ba332e58f2e6ac.json
download_strategy: unlink the lock file after unlocking it
Library/Homebrew/download_strategy.rb
@@ -326,6 +326,7 @@ def fetch end ensure download_lock&.unlock + download_lock&.path&.unlink end def clear_cache
false
Other
Homebrew
brew
692b3e5a7bfb5ff8fef3c6d952962ab8bb7bad8e.json
shims/mac/super/pkg-config: fix macOS <=10.13 compatibility Fixes #7290.
Library/Homebrew/shims/mac/super/pkg-config
@@ -1,5 +1,11 @@ #!/bin/sh -exec "$HOMEBREW_OPT/pkg-config/bin/pkg-config" \ +pkg_config="$HOMEBREW_OPT/pkg-config/bin/pkg-config" + +if [ -z "$HOMEBREW_SDKROOT" ]; then + exec "$pkg_config" "$@" +fi + +exec "$pkg_config" \ "--define-variable=homebrew_sdkroot=$HOMEBREW_SDKROOT" \ "$@"
false
Other
Homebrew
brew
1a32ba3d2bdc43d38d7aaece9ea87947745a4d87.json
system_command_spec: Make part of bash error regex optional
Library/Homebrew/test/system_command_spec.rb
@@ -37,7 +37,7 @@ it "unsets them" do expect { command.run! - }.to raise_error(/C: parameter null or not set/) + }.to raise_error(/C: parameter (null or )?not set/) end end
false
Other
Homebrew
brew
fa3591681800f9da06cd2d0179a5ef9e63b10729.json
ENV/std: withdraw support for Homebrew supplied *.pc files
Library/Homebrew/extend/os/mac/extend/ENV/std.rb
@@ -3,11 +3,7 @@ module Stdenv # @private - undef homebrew_extra_pkg_config_paths, x11 - - def homebrew_extra_pkg_config_paths - ["#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.version}"] - end + undef x11 def x11 # There are some config scripts here that should go in the PATH
false
Other
Homebrew
brew
845c71270e2cf47bde3c1508654460b1e5c5958c.json
rubocop.yml: enable non-default checks. Closes https://github.com/Homebrew/brew/pull/7258
Library/.rubocop.yml
@@ -50,6 +50,12 @@ Lint/AmbiguousRegexpLiteral: Lint/ParenthesesAsGroupedExpression: Enabled: false +# not enabled by default but nice to have +Lint/RaiseException: + Enabled: true +Lint/StructNewOverride: + Enabled: true + # most metrics don't make sense to apply for formulae/taps Metrics/AbcSize: Enabled...
false
Other
Homebrew
brew
a298d7d8fea477e73b5ea507a4214345e1166890.json
formula_cellar_checks: check Python site packages
Library/Homebrew/formula_cellar_checks.rb
@@ -165,6 +165,40 @@ def check_elisp_root(share, name) EOS end + def check_python_packages(lib, deps) + return unless lib.directory? + + lib_subdirs = lib.children + .select(&:directory?) + .map(&:basename) + + pythons = lib_subdirs.map do |p| + match = p...
false
Other
Homebrew
brew
e1ce5c852dc68783ab4741173173824b1e79a266.json
github: return output if JSON parsing is not desired
Library/Homebrew/utils/github.rb
@@ -172,7 +172,7 @@ def api_credentials_error_message(response_headers, needed_scopes) end end - def open_api(url, data: nil, request_method: nil, scopes: [].freeze) + def open_api(url, data: nil, request_method: nil, scopes: [].freeze, parse_json: true) # This is a no-op if the user is opting out of u...
false
Other
Homebrew
brew
4265540cc41959c4bf5d68cd5e9f046b8aa79cc5.json
load_path: trim entries where possible to fix Ruby crashes
Library/Homebrew/load_path.rb
@@ -4,6 +4,9 @@ HOMEBREW_LIBRARY_PATH = Pathname(__dir__).realpath.freeze -$LOAD_PATH.push(HOMEBREW_LIBRARY_PATH.to_s) unless $LOAD_PATH.include?(HOMEBREW_LIBRARY_PATH.to_s) +$LOAD_PATH.push HOMEBREW_LIBRARY_PATH.to_s require "vendor/bundle/bundler/setup" + +$LOAD_PATH.select! { |d| Pathname(d).directory? } +$L...
true
Other
Homebrew
brew
4265540cc41959c4bf5d68cd5e9f046b8aa79cc5.json
load_path: trim entries where possible to fix Ruby crashes
Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb
@@ -9,11 +9,6 @@ RSpec.shared_context "integration test" do extend RSpec::Matchers::DSL - if OS.mac? && - !RUBY_BIN.to_s.match?(%r{^/(System/Library/Frameworks/Ruby\.framework/Versions/(Current|\d+\.\d+)/)usr/bin$}) - skip "integration test requires system Ruby" - end - matcher :be_a_success do m...
true
Other
Homebrew
brew
bfcba0f5f0a4c039939441c6f257b771f054c649.json
Library/Homebrew: add free_port test helper Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/dev-cmd/test.rb
@@ -36,6 +36,7 @@ def test test_args.parse require "formula_assertions" + require "formula_free_port" args.resolved_formulae.each do |f| # Cannot test uninstalled formulae
true
Other
Homebrew
brew
bfcba0f5f0a4c039939441c6f257b771f054c649.json
Library/Homebrew: add free_port test helper Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/formula_free_port.rb
@@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Homebrew + module FreePort + require "socket" + + def free_port + server = TCPServer.new 0 + _, port, = server.addr + server.close + + port + end + end +end
true
Other
Homebrew
brew
bfcba0f5f0a4c039939441c6f257b771f054c649.json
Library/Homebrew: add free_port test helper Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/test.rb
@@ -7,6 +7,7 @@ require "timeout" require "debrew" require "formula_assertions" +require "formula_free_port" require "fcntl" require "socket" require "cli/parser" @@ -26,6 +27,7 @@ formula = Homebrew.args.resolved_formulae.first formula.extend(Homebrew::Assertions) + formula.extend(Homebrew::FreePort) ...
true
Other
Homebrew
brew
bfcba0f5f0a4c039939441c6f257b771f054c649.json
Library/Homebrew: add free_port test helper Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/test/formula_free_port_spec.rb
@@ -0,0 +1,25 @@ +# frozen_string_literal: true + +require "socket" +require "formula_free_port" + +module Homebrew + describe FreePort do + include described_class + + describe "#free_port" do + # IANA suggests user port from 1024 to 49151 + # and dynamic port for 49152 to 65535 + # http://www.ia...
true
Other
Homebrew
brew
0d3a4d98c0ebb7e5a97cb8151f7c348e6955002a.json
utils/github: add test for fetch_artifact
Library/Homebrew/test/utils/github_spec.rb
@@ -41,4 +41,18 @@ expect(results.first["title"]).to eq("Shall we run `brew update` automatically?") end end + + describe "::fetch_artifact", :needs_network do + it "fails to find a nonexistant workflow" do + expect { + subject.fetch_artifact("Homebrew", "homebrew-core", 1, ".") + }....
false
Other
Homebrew
brew
5b1d0786a45e69b4af1d71d433cc11bb676fd6b6.json
utils/github: add fetch_artifact API
Library/Homebrew/utils/github.rb
@@ -1,7 +1,8 @@ # frozen_string_literal: true -require "uri" +require "download_strategy" require "tempfile" +require "uri" module GitHub module_function @@ -438,6 +439,70 @@ def dispatch_event(user, repo, event, **payload) scopes: CREATE_ISSUE_FORK_OR_PR_SCOPES) end + def fet...
false
Other
Homebrew
brew
c241dccbc8d4eca71a6130208ef09ec8e89a42c9.json
test/resource_spec: fix flaky test
Library/Homebrew/test/resource_spec.rb
@@ -157,7 +157,7 @@ end specify "#verify_download_integrity_mismatch" do - fn = double(file?: true) + fn = double(file?: true, basename: "foo") checksum = subject.sha256(TEST_SHA256) expect(fn).to receive(:verify_checksum).with(checksum)
false
Other
Homebrew
brew
3955e7e13b980ad4f8d38ffc3c0253d86204902e.json
language/test: add shebang tests
Library/Homebrew/test/language/perl/shebang_spec.rb
@@ -0,0 +1,52 @@ +# frozen_string_literal: true + +require "language/perl" +require "utils/shebang" + +describe Language::Perl::Shebang do + let(:file) { Tempfile.new("perl-shebang") } + let(:perl_f) do + formula "perl" do + url "https://brew.sh/perl-1.0.tgz" + end + end + let(:f) do + formula "foo" d...
true
Other
Homebrew
brew
3955e7e13b980ad4f8d38ffc3c0253d86204902e.json
language/test: add shebang tests
Library/Homebrew/test/language/python_spec.rb
@@ -2,6 +2,7 @@ require "language/python" require "resource" +require "utils/shebang" describe Language::Python, :needs_python do describe "#major_minor_version" do @@ -32,6 +33,48 @@ end end +describe Language::Python::Shebang do + let(:file) { Tempfile.new("python-shebang") } + let(:python_f) do + ...
true
Other
Homebrew
brew
931e379fec26977f7a0409016632f32a8692edec.json
remove extra space
Library/Homebrew/download_strategy.rb
@@ -421,7 +421,7 @@ def _curl_args args += ["--user", meta.fetch(:user)] if meta.key?(:user) - args += [meta[:header], meta[:headers]].compact.flatten.flat_map { |h| ["--header", h.strip] } + args += [meta[:header], meta[:headers]].compact.flatten.flat_map { |h| ["--header", h.strip] } args en...
false
Other
Homebrew
brew
f3307193e0ae3ac6dd2061020a93a9a5da04790b.json
.github/workflows/tests.yml: Deploy Docker image Deploy the latest Docker image on a push to master. Deploy a tagged Docker image upon publication of a release.
.github/workflows/tests.yml
@@ -3,6 +3,9 @@ on: push: branches: master pull_request: [] + release: + types: + - published jobs: tests: if: github.repository == 'Homebrew/brew' @@ -140,6 +143,22 @@ jobs: run: | if [ "$RUNNER_OS" = "Linux" ]; then docker-compose -f Dockerfile.yml run --rm -v $...
false
Other
Homebrew
brew
626f9406b1987932382814bc7d7cae3b41b771f4.json
remove flaky cask upgrade test
Library/Homebrew/test/cask/cmd/upgrade_spec.rb
@@ -71,31 +71,6 @@ expect(local_transmission_path).to be_a_directory expect(local_transmission.versions).to include("2.60") end - - it 'updates "auto_updates" and "latest" Casks when their tokens are provided in the command line' do - local_caffeine = Cask::CaskLoader.load("local-ca...
false
Other
Homebrew
brew
4bb66c12e8afa79d838fd9f0b4c86021050c33eb.json
utils/github: add repository_dispatch API
Library/Homebrew/utils/github.rb
@@ -431,6 +431,13 @@ def issue_comment_exists?(user, repo, pr, body) comments.any? { |comment| comment["body"].eql?(body) } end + def dispatch(user, repo, event, **payload) + url = "#{API_URL}/repos/#{user}/#{repo}/dispatches" + open_api(url, data: { event_type: event, client_payload: payload...
false
Other
Homebrew
brew
096a5bdfb431b366d9a67340366195e805efc748.json
FormulaInstaller: link tmp kegs during rescue In #6807, the FormulaInstaller began to rescue from FormulaInstallationAlreadyAttemptedError but there is the potential for tmp kegs to remain unlinked in the cellar. I've merged the rescue statements so they both re-link tmp kegs, but it doesn't raise for FormulaInstallat...
Library/Homebrew/formula_installer.rb
@@ -598,16 +598,16 @@ def install_dependency(dep, inherited_options) oh1 "Installing #{formula.full_name} dependency: #{Formatter.identifier(dep.name)}" fi.install fi.finish - rescue FormulaInstallationAlreadyAttemptedError - # We already attempted to install f as part of the dependency tree of - ...
false
Other
Homebrew
brew
2dffdf5ddf91d9a2d55b18a887c6bdcb56cec4ed.json
docs: fix broken link
docs/Brew-Test-Bot.md
@@ -8,7 +8,7 @@ by [our Kickstarter in 2013](https://www.kickstarter.com/projects/homebrew/brew- It comprises four Mac Minis and three Xserves running in two data centres which host [a Jenkins instance at https://jenkins.brew.sh](https://jenkins.brew.sh) and run the -[`brew-test-bot.rb`](https://github.com/Homebrew...
false
Other
Homebrew
brew
7a62973de296e3d11cdbf17acd3bc7b19ca0d5bc.json
add deprecate module
Library/Homebrew/cmd/install.rb
@@ -315,6 +315,7 @@ def install end def install_formula(f) + opoo "#{f.name} has been deprecated" if f.is_deprecated? f.print_tap_action build_options = f.build
true
Other
Homebrew
brew
7a62973de296e3d11cdbf17acd3bc7b19ca0d5bc.json
add deprecate module
Library/Homebrew/cmd/reinstall.rb
@@ -61,6 +61,7 @@ def reinstall onoe "#{f.full_name} is pinned. You must unpin it to reinstall." next end + opoo "#{f.name} has been deprecated" if f.is_deprecated? Migrator.migrate_if_needed(f) reinstall_formula(f) Cleanup.install_formula_clean!(f)
true
Other
Homebrew
brew
7a62973de296e3d11cdbf17acd3bc7b19ca0d5bc.json
add deprecate module
Library/Homebrew/cmd/upgrade.rb
@@ -150,6 +150,8 @@ def upgrade_formulae(formulae_to_install) def upgrade_formula(f) return if args.dry_run? + opoo "#{f.name} has been deprecated" if f.is_deprecated? + if f.opt_prefix.directory? keg = Keg.new(f.opt_prefix.resolved_path) keg_had_linked_opt = true
true
Other
Homebrew
brew
7a62973de296e3d11cdbf17acd3bc7b19ca0d5bc.json
add deprecate module
Library/Homebrew/formula.rb
@@ -51,6 +51,7 @@ class Formula include FileUtils include Utils::Inreplace include Utils::Shell + include Utils::Deprecate extend Enumerable extend Forwardable extend Cachable @@ -175,6 +176,16 @@ class Formula attr_accessor :follow_installed_alias alias follow_installed_alias? follow_installed...
true
Other
Homebrew
brew
7a62973de296e3d11cdbf17acd3bc7b19ca0d5bc.json
add deprecate module
Library/Homebrew/utils.rb
@@ -13,6 +13,7 @@ require "utils/popen" require "utils/svn" require "utils/tty" +require "utils/deprecate" require "tap_constants" require "time"
true
Other
Homebrew
brew
7a62973de296e3d11cdbf17acd3bc7b19ca0d5bc.json
add deprecate module
Library/Homebrew/utils/deprecate.rb
@@ -0,0 +1,35 @@ +# frozen_string_literal: true + +module Utils + module Deprecate + # This module is common for both formulae and casks. + # To-do : Add support for casks + add disable method + + def deprecate + self.is_deprecated = true + + # deprecate all formulae dependent on this deprecated for...
true
Other
Homebrew
brew
b37c3e9cb252a7f83db2b58e3cf2e020523d1d51.json
rubocops/patches: suggest url with full_index=1
Library/Homebrew/rubocops/patches.rb
@@ -57,7 +57,7 @@ def patch_problems(patch) if match_obj = regex_match_group(patch, gh_patch_diff_pattern) problem <<~EOS use GitHub pull request URLs: - https://github.com/#{match_obj[1]}/#{match_obj[2]}/pull/#{match_obj[3]}.patch + https://github.co...
true
Other
Homebrew
brew
b37c3e9cb252a7f83db2b58e3cf2e020523d1d51.json
rubocops/patches: suggest url with full_index=1
Library/Homebrew/test/rubocops/patches_spec.rb
@@ -94,7 +94,7 @@ def patches [{ message: <<~EOS, use GitHub pull request URLs: - https://github.com/foo/foo-bar/pull/100.patch + https://github.com/foo/foo-bar/pull/100.patch?full_index=1 ...
true
Other
Homebrew
brew
c48352aa6ca409bcf2d05f7a046c264565243068.json
cask/cmd/list: fix ambiguous params.
Library/Homebrew/cask/cmd/list.rb
@@ -47,7 +47,7 @@ def list_installed elsif versions? puts installed_casks.map(&self.class.method(:format_versioned)) elsif full_name? - puts installed_casks.map(&:full_name).sort &tap_and_name_comparison + puts installed_casks.map(&:full_name).sort(&tap_and_name_comparison...
false
Other
Homebrew
brew
57109a175a5ca268025e6d39d39867ea05c910bc.json
diagnostic: add doctor check for CPU arch on Linux Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/extend/os/linux/diagnostic.rb
@@ -2,6 +2,7 @@ require "tempfile" require "utils/shell" +require "hardware" require "os/linux/diagnostic" require "os/linux/glibc" require "os/linux/kernel" @@ -13,6 +14,7 @@ def supported_configuration_checks %w[ check_glibc_minimum_version check_kernel_minimum_version + ...
true
Other
Homebrew
brew
57109a175a5ca268025e6d39d39867ea05c910bc.json
diagnostic: add doctor check for CPU arch on Linux Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/test/os/linux/diagnostic_spec.rb
@@ -3,6 +3,13 @@ require "diagnostic" describe Homebrew::Diagnostic::Checks do + specify "#check_supported_architecture" do + allow(Hardware::CPU).to receive(:type).and_return(:arm64) + + expect(subject.check_supported_architecture) + .to match(/Your CPU architecture .+ is not supported/) + end + sp...
true
Other
Homebrew
brew
cd3ced48e97f8fdab67b0737ba5441d4057457e9.json
rubocop: set LineLength to 118. GitHub diff UI wraps beyond 118 characters. This also allows enabling `Style/IfUnlessModifier` (which autocorrects).
Library/.rubocop.yml
@@ -78,9 +78,9 @@ Metrics/ModuleLength: Metrics/PerceivedComplexity: Enabled: false -# GitHub diff UI wraps beyond 118 characters (so that's the goal) +# GitHub diff UI wraps beyond 118 characters Layout/LineLength: - Max: 167 + Max: 118 # ignore manpage comments and long single-line strings IgnoredPatte...
true
Other
Homebrew
brew
cd3ced48e97f8fdab67b0737ba5441d4057457e9.json
rubocop: set LineLength to 118. GitHub diff UI wraps beyond 118 characters. This also allows enabling `Style/IfUnlessModifier` (which autocorrects).
Library/.rubocop_shared.yml
@@ -58,9 +58,9 @@ Style/HashTransformKeys: Style/HashTransformValues: Enabled: true -# This shouldn't be enabled until LineLength is lower. +# Enabled now LineLength is lowish. Style/IfUnlessModifier: - Enabled: false + Enabled: true # Only use this for numbers >= `1_000_000`. Style/NumericLiterals:
true
Other
Homebrew
brew
cd3ced48e97f8fdab67b0737ba5441d4057457e9.json
rubocop: set LineLength to 118. GitHub diff UI wraps beyond 118 characters. This also allows enabling `Style/IfUnlessModifier` (which autocorrects).
Library/Homebrew/.rubocop.yml
@@ -61,12 +61,6 @@ Metrics/PerceivedComplexity: Enabled: true Max: 100 -# GitHub diff UI wraps beyond 118 characters -Layout/LineLength: - Max: 118 - # ignore manpage comments - IgnoredPatterns: ['#: '] - # we won't change backward compatible predicate names Naming/PredicateName: Exclude:
true
Other
Homebrew
brew
278bba05236c0a2ca62fa686ae99a42dc8b20fcb.json
Use concise method for both header and headers
Library/Homebrew/download_strategy.rb
@@ -423,7 +423,7 @@ def _curl_args args += ["--header", meta.fetch(:header)] if meta.key?(:header) - meta.fetch(:headers).each { |h| args += ["--header", h.strip] } if meta.key?(:headers) + args += [meta.fetch(:header), *meta.fetch(:headers)].compact.flat_map { |h| ["--header", h.strip] } args ...
false
Other
Homebrew
brew
020d6e28438109849511d00dfb20383c1a8f5619.json
upgrade: suggest full_name when appropriate. Otherwise `brew install foo/bar/baz` when an older version of `baz` is installed will tell you to run `brew upgrade baz` which won't work.
Library/Homebrew/cmd/install.rb
@@ -173,7 +173,7 @@ def install optlinked_version = Keg.for(f.opt_prefix).version onoe <<~EOS #{f.full_name} #{optlinked_version} is already installed - To upgrade to #{f.version}, run `brew upgrade #{f.name}` + To upgrade to #{f.version}, run `brew upgrade #{f.f...
true
Other
Homebrew
brew
020d6e28438109849511d00dfb20383c1a8f5619.json
upgrade: suggest full_name when appropriate. Otherwise `brew install foo/bar/baz` when an older version of `baz` is installed will tell you to run `brew upgrade baz` which won't work.
Library/Homebrew/formula_installer.rb
@@ -228,7 +228,7 @@ def install EOS if formula.outdated? && !formula.head? message += <<~EOS - To upgrade to #{formula.pkg_version}, run `brew upgrade #{formula.name}`. + To upgrade to #{formula.pkg_version}, run `brew upgrade #{formula.full_name}`. EOS elsif onl...
true
Other
Homebrew
brew
40432d86f94c52fb7ee5249fbce34c20e18b15ec.json
cmd/uninstall: handle unparsed arguments. If `Homebrew.args` hasn't yet been populated then `named` will return `nil`. Instead, ensure it is an array before we try to `join` it. This is pretty much only a test-time problem but has been causing flaky builds.
Library/Homebrew/cmd/uninstall.rb
@@ -130,7 +130,7 @@ def initialize(requireds, dependents) protected def sample_command - "brew uninstall --ignore-dependencies #{Homebrew.args.named.join(" ")}" + "brew uninstall --ignore-dependencies #{Array(Homebrew.args.named).join(" ")}" end def are_required_by_deps
false
Other
Homebrew
brew
2594e7093ea082daa1add40104e69616a7e1ef15.json
language/python: fix virtualenv symlinks for versioned Python
Library/Homebrew/language/python.rb
@@ -220,14 +220,21 @@ def create next unless f.symlink? next unless (rp = f.realpath.to_s).start_with? HOMEBREW_CELLAR - new_target = rp.sub %r{#{HOMEBREW_CELLAR}/python/[^/]+}, Formula["python"].opt_prefix + version = rp.match %r{^#{HOMEBREW_CELLAR}/python@(.*?)/} + ...
false
Other
Homebrew
brew
38da4dcac02d70f5518115bf8c2a9f3a5d4e4810.json
Add headers option to URLs in forumlas
Library/Homebrew/download_strategy.rb
@@ -423,6 +423,8 @@ def _curl_args args += ["--header", meta.fetch(:header)] if meta.key?(:header) + meta.fetch(:headers).each { |h| args += ["--header", h.strip] } if meta.key?(:headers) + args end
false
Other
Homebrew
brew
1d6159fe65fdb11f2c634824746906f12d184c0a.json
add https checking for links
docs/Rakefile
@@ -20,6 +20,7 @@ task test: :build do check_opengraph: true, check_html: true, check_img_http: true, + enforce_https: true, file_ignore: [ %r{Kickstarter-Supporters}, ],
false
Other
Homebrew
brew
2592b937706a4393ad2f275da32ae9dab48e594d.json
formula: ensure CMake uses the desired SDK
Library/Homebrew/formula.rb
@@ -1335,6 +1335,10 @@ def std_cmake_args # CMake cache entries for other weak symbols may be added here as needed. args << "-DHAVE_CLOCK_GETTIME:INTERNAL=0" if MacOS.version == "10.11" && MacOS::Xcode.version >= "8.0" + # Ensure CMake is using the same SDK we are using. + sdk = MacOS.sdk_path_if_need...
false
Other
Homebrew
brew
43d6caf0e3c093bf03d1ecf8516ee4201285a6e7.json
patch: add support for changing directory
Library/Homebrew/patch.rb
@@ -135,7 +135,7 @@ def owner=(owner) end def apply - dir = Pathname.pwd + base_dir = Pathname.pwd resource.unpack do patch_dir = Pathname.pwd if patch_files.empty? @@ -149,6 +149,8 @@ def apply patch_files << children.first.basename end + dir = base_dir + di...
true
Other
Homebrew
brew
43d6caf0e3c093bf03d1ecf8516ee4201285a6e7.json
patch: add support for changing directory
Library/Homebrew/resource.rb
@@ -198,6 +198,7 @@ class PatchResource < Resource def initialize(&block) @patch_files = [] + @directory = nil super "patch", &block end @@ -206,6 +207,12 @@ def apply(*paths) @patch_files.concat(paths) @patch_files.uniq! end + + def directory(val = nil) + ret...
true
Other
Homebrew
brew
a0df23ec8db39d24913322d274d7107dc56f8e01.json
Fix broken link on docs man page
docs/README.md
@@ -23,7 +23,7 @@ - [External Commands](External-Commands.md) - [Ruby Gems, Python Eggs and Perl Modules](Gems,-Eggs-and-Perl-Modules.md) - [Python](Homebrew-and-Python.md) -- [How To Build Software Outside Homebrew With Homebrew `keg_only` dependencies](How-to-build-software-outside-Homebrew-with-Homebrew-keg-only-...
false
Other
Homebrew
brew
1f29f7092979470b6cfb56160ef7cd8f530298d5.json
os/mac: prefer CLT SDK over Xcode
Library/Homebrew/os/mac.rb
@@ -85,10 +85,10 @@ def active_developer_dir # if available. Otherwise, the latest SDK is returned. def sdk(v = nil) - @locator ||= if Xcode.installed? - XcodeSDKLocator.new - else + @locator ||= if CLT.installed? && CLT.provides_sdk? CLTSDKLocator.new + else + Xco...
false
Other
Homebrew
brew
9bab0869676e5c7edfa904090df52ef736f2dfda.json
rewrite_python_shebang: move loop invariants out of loop
Library/Homebrew/language/python.rb
@@ -88,9 +88,9 @@ def self.setup_install_args(prefix) end def self.rewrite_python_shebang(python_path) + regex = %r{^#! ?/usr/bin/(env )?python([23](\.\d{1,2})?)$} + maximum_regex_length = 28 # the length of "#! /usr/bin/env pythonx.yyy$" Pathname(".").find do |f| - regex = %r{^#! ?/...
false
Other
Homebrew
brew
68047abc0e01faf146eccf2fc958d1835aaf3daf.json
audit: ignore group write bit
Library/Homebrew/dev-cmd/audit.rb
@@ -242,15 +242,26 @@ def audit_style end def audit_file - # Under normal circumstances (umask 0022), we expect a file mode of 644. If - # the user's umask is more restrictive, respect that by masking out the - # corresponding bits. (The also included 0100000 flag means regular file.) - ...
true
Other
Homebrew
brew
68047abc0e01faf146eccf2fc958d1835aaf3daf.json
audit: ignore group write bit
Library/Homebrew/test/dev-cmd/audit_spec.rb
@@ -106,11 +106,40 @@ class Foo < Formula RUBY path = fa.formula.path - path.chmod 0400 + path.chmod 0600 fa.audit_file expect(fa.problems) - .to eq(["Incorrect file permissions (400): chmod 644 #{path}"]) + .to eq([ + "Incorrect ...
true
Other
Homebrew
brew
c7c9f83ff6bb234302b93f2139381f38124b89e3.json
rubocop.yml: reduce Max LineLength. Fixed the formulae in homebrew/core. Slowly but surely...
Library/.rubocop.yml
@@ -80,7 +80,7 @@ Metrics/PerceivedComplexity: # GitHub diff UI wraps beyond 118 characters (so that's the goal) Layout/LineLength: - Max: 170 + Max: 167 # ignore manpage comments and long single-line strings IgnoredPatterns: ['#: ', ' url "', ' mirror "', ' plist_options :']
false
Other
Homebrew
brew
e3ac94fc5dee89a4037e2b857be2dbce67adeb57.json
dev-cmd: use more and cleanup new args APIs.
Library/Homebrew/dev-cmd/audit.rb
@@ -79,12 +79,12 @@ def audit ENV.activate_extensions! ENV.setup_build_environment - if Homebrew.args.named.blank? + if args.no_named? ff = Formula files = Tap.map(&:formula_dir) else - ff = Homebrew.args.resolved_formulae - files = Homebrew.args.resolved_formulae.map(&:pa...
true
Other
Homebrew
brew
e3ac94fc5dee89a4037e2b857be2dbce67adeb57.json
dev-cmd: use more and cleanup new args APIs.
Library/Homebrew/dev-cmd/bottle.rb
@@ -79,17 +79,17 @@ def bottle_args switch :verbose switch :debug conflicts "--no-rebuild", "--keep-old" + min_named 1 end end def bottle bottle_args.parse return merge if args.merge? - raise KegUnspecifiedError if args.remaining.empty? ensure_relocation_form...
true
Other
Homebrew
brew
e3ac94fc5dee89a4037e2b857be2dbce67adeb57.json
dev-cmd: use more and cleanup new args APIs.
Library/Homebrew/dev-cmd/bump-formula-pr.rb
@@ -116,7 +116,7 @@ def bump_formula_pr # Use the user's browser, too. ENV["BROWSER"] = ENV["HOMEBREW_BROWSER"] - formula = Homebrew.args.formulae.first + formula = args.formulae.first if formula tap_full_name, origin_branch, previous_branch = use_correct_linux_tap(formula) @@ -315,7 +31...
true
Other
Homebrew
brew
e3ac94fc5dee89a4037e2b857be2dbce67adeb57.json
dev-cmd: use more and cleanup new args APIs.
Library/Homebrew/dev-cmd/bump-revision.rb
@@ -33,7 +33,7 @@ def bump_revision # user path, too. ENV["PATH"] = ENV["HOMEBREW_PATH"] - formulae = Homebrew.args.formulae + formulae = args.formulae raise FormulaUnspecifiedError if formulae.empty? formula = formulae.first @@ -64,7 +64,7 @@ def bump_revision end if args.dry_...
true
Other
Homebrew
brew
e3ac94fc5dee89a4037e2b857be2dbce67adeb57.json
dev-cmd: use more and cleanup new args APIs.
Library/Homebrew/dev-cmd/create.rb
@@ -49,20 +49,18 @@ def create_args switch :verbose switch :debug conflicts "--autotools", "--cmake", "--go", "--meson", "--perl", "--python", "--rust" - max_named 1 + named 1 end end # Create a formula from a tarball URL def create create_args.parse - raise Usag...
true
Other
Homebrew
brew
e3ac94fc5dee89a4037e2b857be2dbce67adeb57.json
dev-cmd: use more and cleanup new args APIs.
Library/Homebrew/dev-cmd/edit.rb
@@ -32,10 +32,10 @@ def edit end # If no brews are listed, open the project root in an editor. - paths = [HOMEBREW_REPOSITORY] if ARGV.named.empty? + paths = [HOMEBREW_REPOSITORY] if args.no_named? - # Don't use ARGV.formulae as that will throw if the file doesn't parse - paths ||= ARGV.named....
true
Other
Homebrew
brew
e3ac94fc5dee89a4037e2b857be2dbce67adeb57.json
dev-cmd: use more and cleanup new args APIs.
Library/Homebrew/dev-cmd/extract.rb
@@ -91,26 +91,23 @@ def extract_args description: "Extract the specified <version> of <formula> instead of the most recent." switch :force switch :debug - max_named 2 + named 2 end end def extract extract_args.parse - # Expect exactly two named arguments: for...
true
Other
Homebrew
brew
e3ac94fc5dee89a4037e2b857be2dbce67adeb57.json
dev-cmd: use more and cleanup new args APIs.
Library/Homebrew/dev-cmd/formula.rb
@@ -15,14 +15,13 @@ def formula_args EOS switch :verbose switch :debug + min_named :formula end end def formula formula_args.parse - raise FormulaUnspecifiedError if Homebrew.args.named.blank? - - Homebrew.args.resolved_formulae.each { |f| puts f.path } + args.reso...
true
Other
Homebrew
brew
e3ac94fc5dee89a4037e2b857be2dbce67adeb57.json
dev-cmd: use more and cleanup new args APIs.
Library/Homebrew/dev-cmd/linkage.rb
@@ -33,10 +33,10 @@ def linkage linkage_args.parse CacheStoreDatabase.use(:linkage) do |db| - kegs = if Homebrew.args.kegs.empty? + kegs = if args.kegs.empty? Formula.installed.map(&:opt_or_installed_prefix_keg).reject(&:nil?) else - Homebrew.args.kegs + args.kegs ...
true
Other
Homebrew
brew
e3ac94fc5dee89a4037e2b857be2dbce67adeb57.json
dev-cmd: use more and cleanup new args APIs.
Library/Homebrew/dev-cmd/mirror.rb
@@ -15,19 +15,18 @@ def mirror_args switch :verbose switch :debug hide_from_man_page! + min_named :formula end end def mirror mirror_args.parse - raise FormulaUnspecifiedError if args.remaining.empty? - bintray_user = ENV["HOMEBREW_BINTRAY_USER"] bintray_key = ...
true
Other
Homebrew
brew
e3ac94fc5dee89a4037e2b857be2dbce67adeb57.json
dev-cmd: use more and cleanup new args APIs.
Library/Homebrew/dev-cmd/pull.rb
@@ -62,6 +62,7 @@ def pull_args description: "Pull the bottle block commit from the specified <user> on GitHub." switch :verbose switch :debug + min_named 1 end end @@ -70,10 +71,6 @@ def pull pull_args.parse - if ARGV.named.empty? - raise UsageError, "This co...
true
Other
Homebrew
brew
e3ac94fc5dee89a4037e2b857be2dbce67adeb57.json
dev-cmd: use more and cleanup new args APIs.
Library/Homebrew/dev-cmd/release-notes.rb
@@ -23,13 +23,13 @@ def release_notes_args def release_notes release_notes_args.parse - previous_tag = ARGV.named.first + previous_tag = args.named.first previous_tag ||= Utils.popen_read( "git", "-C", HOMEBREW_REPOSITORY, "tag", "--list", "--sort=-version:refname" ).lines.first.chomp ...
true
Other
Homebrew
brew
e3ac94fc5dee89a4037e2b857be2dbce67adeb57.json
dev-cmd: use more and cleanup new args APIs.
Library/Homebrew/dev-cmd/tap-new.rb
@@ -15,16 +15,14 @@ def tap_new_args EOS switch :verbose switch :debug - max_named 1 + named 1 end end def tap_new tap_new_args.parse - raise UsageError, "This command requires a tap argument" if ARGV.named.empty? - - tap = Tap.fetch(ARGV.named.first) + tap = ...
true
Other
Homebrew
brew
e3ac94fc5dee89a4037e2b857be2dbce67adeb57.json
dev-cmd: use more and cleanup new args APIs.
Library/Homebrew/dev-cmd/test.rb
@@ -28,17 +28,16 @@ def test_args switch :verbose switch :debug conflicts "--devel", "--HEAD" + min_named :formula end end def test test_args.parse - raise FormulaUnspecifiedError if ARGV.named.empty? - require "formula_assertions" - Homebrew.args.resolved_form...
true
Other
Homebrew
brew
a7fe0ed8472a67362793059cf633d3030ffa11d9.json
cmd: use more and cleanup new args APIs.
Library/Homebrew/cmd/--cache.rb
@@ -26,10 +26,10 @@ def __cache_args def __cache __cache_args.parse - if ARGV.named.empty? + if args.no_named? puts HOMEBREW_CACHE else - Homebrew.args.formulae.each do |f| + args.formulae.each do |f| if Fetch.fetch_bottle?(f) puts f.bottle.cached_download ...
true
Other
Homebrew
brew
a7fe0ed8472a67362793059cf633d3030ffa11d9.json
cmd: use more and cleanup new args APIs.
Library/Homebrew/cmd/--cellar.rb
@@ -22,10 +22,10 @@ def __cellar_args def __cellar __cellar_args.parse - if Homebrew.args.named.blank? + if args.no_named? puts HOMEBREW_CELLAR else - puts Homebrew.args.resolved_formulae.map(&:rack) + puts args.resolved_formulae.map(&:rack) end end end
true
Other
Homebrew
brew
a7fe0ed8472a67362793059cf633d3030ffa11d9.json
cmd: use more and cleanup new args APIs.
Library/Homebrew/cmd/--env.rb
@@ -30,9 +30,8 @@ def __env __env_args.parse ENV.activate_extensions! - ENV.deps = Homebrew.args.formulae if superenv? + ENV.deps = args.formulae if superenv? ENV.setup_build_environment - ENV.universal_binary if ARGV.build_universal? shell = if args.plain? nil
true
Other
Homebrew
brew
a7fe0ed8472a67362793059cf633d3030ffa11d9.json
cmd: use more and cleanup new args APIs.
Library/Homebrew/cmd/--prefix.rb
@@ -22,10 +22,10 @@ def __prefix_args def __prefix __prefix_args.parse - if Homebrew.args.named.blank? + if args.no_named? puts HOMEBREW_PREFIX else - puts Homebrew.args.resolved_formulae.map { |f| + puts args.resolved_formulae.map { |f| f.opt_prefix.exist? ? f.opt_prefix ...
true
Other
Homebrew
brew
a7fe0ed8472a67362793059cf633d3030ffa11d9.json
cmd: use more and cleanup new args APIs.
Library/Homebrew/cmd/--repository.rb
@@ -20,10 +20,10 @@ def __repository_args def __repository __repository_args.parse - if ARGV.named.empty? + if args.no_named? puts HOMEBREW_REPOSITORY else - puts ARGV.named.map { |tap| Tap.fetch(tap).path } + puts args.named.map { |tap| Tap.fetch(tap).path } end end end
true
Other
Homebrew
brew
a7fe0ed8472a67362793059cf633d3030ffa11d9.json
cmd: use more and cleanup new args APIs.
Library/Homebrew/cmd/analytics.rb
@@ -26,7 +26,7 @@ def analytics_args def analytics analytics_args.parse - case args.remaining.first + case args.named.first when nil, "state" if Utils::Analytics.disabled? puts "Analytics are disabled." @@ -41,7 +41,7 @@ def analytics when "regenerate-uuid" Utils::Analyt...
true
Other
Homebrew
brew
a7fe0ed8472a67362793059cf633d3030ffa11d9.json
cmd: use more and cleanup new args APIs.
Library/Homebrew/cmd/cat.rb
@@ -12,24 +12,19 @@ def cat_args Display the source of <formula>. EOS - max_named 1 + named :formula end end def cat cat_args.parse - # do not "fix" this to support multiple arguments, the output would be - # unparsable; if the user wants to cat multiple formula they ...
true
Other
Homebrew
brew
a7fe0ed8472a67362793059cf633d3030ffa11d9.json
cmd: use more and cleanup new args APIs.
Library/Homebrew/cmd/cleanup.rb
@@ -33,7 +33,7 @@ def cleanup_args def cleanup cleanup_args.parse - cleanup = Cleanup.new(*args.remaining, dry_run: args.dry_run?, scrub: args.s?, days: args.prune&.to_i) + cleanup = Cleanup.new(*args.named, dry_run: args.dry_run?, scrub: args.s?, days: args.prune&.to_i) if args.prune_prefix? ...
true
Other
Homebrew
brew
a7fe0ed8472a67362793059cf633d3030ffa11d9.json
cmd: use more and cleanup new args APIs.
Library/Homebrew/cmd/command.rb
@@ -15,15 +15,14 @@ def command_args EOS switch :verbose switch :debug + min_named 1 end end def command command_args.parse - raise UsageError, "This command requires a command argument" if args.remaining.empty? - - args.remaining.each do |cmd| + args.named.each do...
true
Other
Homebrew
brew
a7fe0ed8472a67362793059cf633d3030ffa11d9.json
cmd: use more and cleanup new args APIs.
Library/Homebrew/cmd/deps.rb
@@ -62,7 +62,7 @@ def deps Formulary.enable_factory_cache! recursive = !args.send("1?") - installed = args.installed? || ARGV.formulae.all?(&:opt_or_installed_prefix_keg) + installed = args.installed? || args.formulae.all?(&:opt_or_installed_prefix_keg) @use_runtime_dependencies = installed && ...
true
Other
Homebrew
brew
a7fe0ed8472a67362793059cf633d3030ffa11d9.json
cmd: use more and cleanup new args APIs.
Library/Homebrew/cmd/desc.rb
@@ -40,16 +40,16 @@ def desc search_type << :either if args.search search_type << :name if args.name search_type << :desc if args.description - odie "You must provide a search term." if search_type.present? && ARGV.named.empty? + odie "You must provide a search term." if search_type.present? &&...
true
Other
Homebrew
brew
a7fe0ed8472a67362793059cf633d3030ffa11d9.json
cmd: use more and cleanup new args APIs.
Library/Homebrew/cmd/doctor.rb
@@ -39,14 +39,14 @@ def doctor exit end - if ARGV.named.empty? + if args.no_named? slow_checks = %w[ check_for_broken_symlinks check_missing_deps ] methods = (checks.all.sort - slow_checks) + slow_checks else - methods = ARGV.named + methods = ar...
true