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
6e2f194e0933c82246eb84aa0fd7283832bc435e.json
rubocops/shell_commands: add cop for shell metacharacters in `exec`
Library/Homebrew/rubocops/shell_commands.rb
@@ -7,6 +7,42 @@ module RuboCop module Cop module Style + # https://github.com/ruby/ruby/blob/v2_6_3/process.c#L2430-L2460 + SHELL_BUILTINS = %w[ + ! + . + : + break + case + continue + do + done + elif + else + esac + ...
true
Other
Homebrew
brew
6e2f194e0933c82246eb84aa0fd7283832bc435e.json
rubocops/shell_commands: add cop for shell metacharacters in `exec`
Library/Homebrew/test/rubocops/shell_commands_spec.rb
@@ -3,210 +3,239 @@ require "rubocops/shell_commands" -describe RuboCop::Cop::Style::ShellCommands do - subject(:cop) { described_class.new } - - context "when auditing shell commands" do - it "reports and corrects an offense when `system` arguments should be separated" do - expect_offense(<<~RUBY) - ...
true
Other
Homebrew
brew
ae49b0660052e88e53ebffc6e33dd48052d7cc2f.json
keg_relocate: replace Perl shebangs
Library/Homebrew/extend/os/linux/keg_relocate.rb
@@ -11,9 +11,11 @@ def relocate_dynamic_linkage(relocation) # Patching patchelf using itself fails with "Text file busy" or SIGBUS. return if name == "patchelf" + old_prefix, new_prefix = relocation.replacement_pair_for(:prefix) + elf_files.each do |file| file.ensure_writable do - chan...
true
Other
Homebrew
brew
ae49b0660052e88e53ebffc6e33dd48052d7cc2f.json
keg_relocate: replace Perl shebangs
Library/Homebrew/extend/os/mac/keg_relocate.rb
@@ -19,29 +19,32 @@ def file_linked_libraries(file, string) undef relocate_dynamic_linkage def relocate_dynamic_linkage(relocation) + old_prefix, new_prefix = relocation.replacement_pair_for(:prefix) + old_cellar, new_cellar = relocation.replacement_pair_for(:cellar) + mach_o_files.each do |file| ...
true
Other
Homebrew
brew
ae49b0660052e88e53ebffc6e33dd48052d7cc2f.json
keg_relocate: replace Perl shebangs
Library/Homebrew/keg_relocate.rb
@@ -6,12 +6,44 @@ class Keg CELLAR_PLACEHOLDER = "@@HOMEBREW_CELLAR@@" REPOSITORY_PLACEHOLDER = "@@HOMEBREW_REPOSITORY@@" LIBRARY_PLACEHOLDER = "@@HOMEBREW_LIBRARY@@" + PERL_PLACEHOLDER = "@@HOMEBREW_PERL@@" - Relocation = Struct.new(:old_prefix, :old_cellar, :old_repository, :old_library, - ...
true
Other
Homebrew
brew
91ab5fe0cec459978d9809b22e86095797df833d.json
extend/os/mac/development_tools: add preferred_perl to built_on
Library/Homebrew/extend/os/mac/development_tools.rb
@@ -64,8 +64,9 @@ def custom_installation_instructions def build_system_info build_info = { - "xcode" => MacOS::Xcode.version.to_s.presence, - "clt" => MacOS::CLT.version.to_s.presence, + "xcode" => MacOS::Xcode.version.to_s.presence, + "clt" => MacOS::CLT...
false
Other
Homebrew
brew
a5cb621fb86cdb87761a8113ffb17d72a0f6d3ae.json
tab: add declared_directly field for runtime deps
Library/Homebrew/formula_installer.rb
@@ -805,7 +805,7 @@ def finish tab = Tab.for_keg(keg) Tab.clear_cache f_runtime_deps = formula.runtime_dependencies(read_from_tab: false) - tab.runtime_dependencies = Tab.runtime_deps_hash(f_runtime_deps) + tab.runtime_dependencies = Tab.runtime_deps_hash(formula, f_runtime_deps) tab.write ...
true
Other
Homebrew
brew
a5cb621fb86cdb87761a8113ffb17d72a0f6d3ae.json
tab: add declared_directly field for runtime deps
Library/Homebrew/tab.rb
@@ -36,7 +36,7 @@ def self.create(formula, compiler, stdlib) "compiler" => compiler, "stdlib" => stdlib, "aliases" => formula.aliases, - "runtime_dependencies" => Tab.runtime_deps_hash(runtime_deps), + "runtime_dependencies" => Tab.run...
true
Other
Homebrew
brew
a5cb621fb86cdb87761a8113ffb17d72a0f6d3ae.json
tab: add declared_directly field for runtime deps
Library/Homebrew/test/tab_spec.rb
@@ -137,13 +137,14 @@ specify "::runtime_deps_hash" do runtime_deps = [Dependency.new("foo")] - stub_formula_loader formula("foo") { url "foo-1.0" } - runtime_deps_hash = described_class.runtime_deps_hash(runtime_deps) + foo = formula("foo") { url "foo-1.0" } + stub_formula_loader foo + runtime...
true
Other
Homebrew
brew
346621dd5b7ef93fb658f89b9427841cb17a2824.json
service: delegate more path methods
Library/Homebrew/service.rb
@@ -111,7 +111,7 @@ def environment_variables(variables = {}) end end - delegate [:bin, :var, :etc, :opt_bin, :opt_sbin, :opt_prefix] => :@formula + delegate [:bin, :etc, :libexec, :opt_bin, :opt_libexec, :opt_pkgshare, :opt_prefix, :opt_sbin, :var] => :@formula sig { returns(String) } d...
false
Other
Homebrew
brew
e893f16727d167390dacd9b2ed5eb6d5df103d70.json
extend/ENV/super: allow bottles with custom architectures Currently, Homebrew recognises only the architectures listed in `hardware.rb`. [1] Attempting to pass an unrecognised architecture to `--bottle-arch` while building a bottle returns an error. Let's change that by passing unrecognised bottle arches to the compi...
Library/Homebrew/extend/ENV/super.rb
@@ -261,6 +261,9 @@ def determine_make_jobs sig { returns(String) } def determine_optflags Hardware::CPU.optimization_flags.fetch(effective_arch) + rescue KeyError + odebug "Building a bottle for custom architecture (#{effective_arch})..." + Hardware::CPU.arch_flag(effective_arch) end sig { re...
true
Other
Homebrew
brew
e893f16727d167390dacd9b2ed5eb6d5df103d70.json
extend/ENV/super: allow bottles with custom architectures Currently, Homebrew recognises only the architectures listed in `hardware.rb`. [1] Attempting to pass an unrecognised architecture to `--bottle-arch` while building a bottle returns an error. Let's change that by passing unrecognised bottle arches to the compi...
Library/Homebrew/formula_installer.rb
@@ -395,10 +395,6 @@ def install return if only_deps? - if build_bottle? && (arch = @bottle_arch) && Hardware::CPU.optimization_flags.exclude?(arch.to_sym) - raise CannotInstallFormulaError, "Unrecognized architecture for --bottle-arch: #{arch}" - end - formula.deprecated_flags.each do |depreca...
true
Other
Homebrew
brew
0b5f440cfc479aea4e26600f7d83f3db26606c63.json
Remove reference to full_clone in CoreTap
Library/Homebrew/tap.rb
@@ -737,8 +737,6 @@ def self.ensure_installed! # CoreTap never allows shallow clones (on request from GitHub). def install(quiet: false, clone_target: nil, force_auto_update: nil) - raise "Shallow clones are not supported for homebrew-core!" unless full_clone - remote = Homebrew::EnvConfig.core_git_remo...
false
Other
Homebrew
brew
29d50f57b3d1799991d3d79a6f8932acf43c7878.json
Add tap --shallow deprecation TODO Co-authored-by: Rylan Polster <rslpolster@gmail.com>
Library/Homebrew/cmd/tap.rb
@@ -64,6 +64,7 @@ def tap if args.shallow? opoo "`brew tap --shallow` is now a no-op!" + # TODO: (3.2) Uncomment the following line and remove the `opoo` above # odeprecated "`brew tap --shallow`" end
false
Other
Homebrew
brew
b5569ffd331c6ea95f492f0ac7f42a1dbf11ae29.json
Remove full_clone from CoreTap
Library/Homebrew/tap.rb
@@ -736,14 +736,14 @@ def self.ensure_installed! end # CoreTap never allows shallow clones (on request from GitHub). - def install(full_clone: true, quiet: false, clone_target: nil, force_auto_update: nil) + def install(quiet: false, clone_target: nil, force_auto_update: nil) raise "Shallow clones are no...
false
Other
Homebrew
brew
8f7621edb85ba73a7532b39869425a188bb6c77b.json
Remove trailing whitespace
Library/Homebrew/cmd/tap.rb
@@ -60,7 +60,7 @@ def tap opoo "`brew tap --full` is now a no-op!" # odeprecated "`brew tap --full`" end - + if args.shallow? opoo "`brew tap --shallow` is now a no-op!" # odeprecated "`brew tap --shallow`"
false
Other
Homebrew
brew
5b6b400c5837b3bc1777ed6ea6740496d6317f2e.json
Remove deprecation comment Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/cmd/tap.rb
@@ -30,7 +30,6 @@ def tap_args switch "--full", description: "Convert a shallow clone to a full clone without untapping. Taps are only cloned as "\ "shallow clones if `--shallow` was originally passed." - # odeprecated "brew tap --shallow" switch "--shallow"...
false
Other
Homebrew
brew
18bb644ce72cc70ef0c2d9f1d354269a8982ad2d.json
Remove deprecation comment Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/cmd/tap.rb
@@ -27,7 +27,6 @@ def tap_args assumptions, so taps can be cloned from places other than GitHub and using protocols other than HTTPS, e.g. SSH, git, HTTP, FTP(S), rsync. EOS - # odeprecated "brew tap --full" switch "--full", description: "Convert a shallow clone to a ...
false
Other
Homebrew
brew
1e0551fca49b919077c47adbbac5f7a09cb57a49.json
Add no-op message Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/cmd/tap.rb
@@ -58,6 +58,16 @@ def tap elsif args.no_named? puts Tap.names else + if args.full? + opoo "`brew tap --full` is now a no-op!" + # odeprecated "`brew tap --full`" + end + + if args.shallow? + opoo "`brew tap --shallow` is now a no-op!" + # odeprecated "`...
false
Other
Homebrew
brew
6156fadd65af088c74c184763d8d7fafabbcb839.json
extend/os/mac/keg_relocate: relocate rpaths on macOS
Library/Homebrew/extend/os/mac/keg_relocate.rb
@@ -35,6 +35,18 @@ def relocate_dynamic_linkage(relocation) change_install_name(old_name, new_name, file) if new_name end + + if ENV["HOMEBREW_RELOCATE_RPATHS"] + each_rpath_for(file) do |old_name| + if old_name.start_with? relocation.old_cellar + new_name =...
false
Other
Homebrew
brew
a8cbc14ca34c55a9dfc3de865bb0cb420deb3adb.json
os/mac/keg: add change_rpath method
Library/Homebrew/os/mac/keg.rb
@@ -34,6 +34,22 @@ def change_install_name(old, new, file) raise end + def change_rpath(old, new, file) + return if old == new + + @require_relocation = true + odebug "Changing rpath in #{file}\n from #{old}\n to #{new}" + MachO::Tools.change_rpath(file, old, new, strict: false) + apply_ad...
false
Other
Homebrew
brew
52f905fa2a471ef37661fd40e246c84891ec6574.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/gems/rubocop@1.14.0.rbi
@@ -825,8 +825,8 @@ RuboCop::Cop::Bundler::DuplicatedGem::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Bundler::GemComment < ::RuboCop::Cop::Base include(::RuboCop::Cop::DefNode) + include(::RuboCop::Cop::GemDeclaration) - def gem_declaration?(param0 = T.unsafe(nil)); end def on_send(node); end ...
false
Other
Homebrew
brew
1462f4760976742746ccc93c9ef23ff960ce7d9a.json
cask/cmd/uninstall_spec: delete more flaky tests. https://github.com/Homebrew/brew/pull/11337/checks?check_run_id=2528253674
Library/Homebrew/test/cask/cmd/uninstall_spec.rb
@@ -53,22 +53,6 @@ expect(transmission.config.appdir.join("Caffeine.app")).not_to exist end - it "calls `uninstall` before removing artifacts" do - cask = Cask::CaskLoader.load(cask_path("with-uninstall-script-app")) - - Cask::Installer.new(cask).install - - expect(cask).to be_installed - expect(...
false
Other
Homebrew
brew
6f6cbc592ac32a760aeb02772420732b9238db59.json
Remove reference to full_clone in CoreTap
Library/Homebrew/tap.rb
@@ -737,8 +737,6 @@ def self.ensure_installed! # CoreTap never allows shallow clones (on request from GitHub). def install(quiet: false, clone_target: nil, force_auto_update: nil) - raise "Shallow clones are not supported for homebrew-core!" unless full_clone - remote = Homebrew::EnvConfig.core_git_remo...
false
Other
Homebrew
brew
e391381acc23b0cce7024a31255c7e9932b47db2.json
Add tap --shallow deprecation TODO Co-authored-by: Rylan Polster <rslpolster@gmail.com>
Library/Homebrew/cmd/tap.rb
@@ -64,6 +64,7 @@ def tap if args.shallow? opoo "`brew tap --shallow` is now a no-op!" + # TODO: (3.2) Uncomment the following line and remove the `opoo` above # odeprecated "`brew tap --shallow`" end
false
Other
Homebrew
brew
6aa1695df1421d26ae8c536ddac00feb762a6a5b.json
Remove full_clone from CoreTap
Library/Homebrew/tap.rb
@@ -736,14 +736,14 @@ def self.ensure_installed! end # CoreTap never allows shallow clones (on request from GitHub). - def install(full_clone: true, quiet: false, clone_target: nil, force_auto_update: nil) + def install(quiet: false, clone_target: nil, force_auto_update: nil) raise "Shallow clones are no...
false
Other
Homebrew
brew
69054b06b583da2bd13fc4b784c6802ee92d25be.json
Remove trailing whitespace
Library/Homebrew/cmd/tap.rb
@@ -60,7 +60,7 @@ def tap opoo "`brew tap --full` is now a no-op!" # odeprecated "`brew tap --full`" end - + if args.shallow? opoo "`brew tap --shallow` is now a no-op!" # odeprecated "`brew tap --shallow`"
false
Other
Homebrew
brew
ea8a66f38570ce81f433f44ddc0c25c2abe5fb8f.json
Remove deprecation comment Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/cmd/tap.rb
@@ -30,7 +30,6 @@ def tap_args switch "--full", description: "Convert a shallow clone to a full clone without untapping. Taps are only cloned as "\ "shallow clones if `--shallow` was originally passed." - # odeprecated "brew tap --shallow" switch "--shallow"...
false
Other
Homebrew
brew
c7f8ce83d44f6f4b0133c35a1b7a64a91e133900.json
Remove deprecation comment Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/cmd/tap.rb
@@ -27,7 +27,6 @@ def tap_args assumptions, so taps can be cloned from places other than GitHub and using protocols other than HTTPS, e.g. SSH, git, HTTP, FTP(S), rsync. EOS - # odeprecated "brew tap --full" switch "--full", description: "Convert a shallow clone to a ...
false
Other
Homebrew
brew
033c11ff18f26f5c0083e1a747947ab39147c57a.json
Add no-op message Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/cmd/tap.rb
@@ -58,6 +58,16 @@ def tap elsif args.no_named? puts Tap.names else + if args.full? + opoo "`brew tap --full` is now a no-op!" + # odeprecated "`brew tap --full`" + end + + if args.shallow? + opoo "`brew tap --shallow` is now a no-op!" + # odeprecated "`...
false
Other
Homebrew
brew
b5a7337b059c33d0c3a4bd70788095fcb401add8.json
Add deprecation paths for tap --full/--shallow
Library/Homebrew/cmd/tap.rb
@@ -27,6 +27,13 @@ def tap_args assumptions, so taps can be cloned from places other than GitHub and using protocols other than HTTPS, e.g. SSH, git, HTTP, FTP(S), rsync. EOS + # odeprecated "brew tap --full" + switch "--full", + description: "Convert a shallow clone to a...
false
Other
Homebrew
brew
d6811c517b8c17854692109c79e0c3dc617db1a8.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/gems/rubocop@1.14.0.rbi
@@ -825,8 +825,8 @@ RuboCop::Cop::Bundler::DuplicatedGem::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Bundler::GemComment < ::RuboCop::Cop::Base include(::RuboCop::Cop::DefNode) + include(::RuboCop::Cop::GemDeclaration) - def gem_declaration?(param0 = T.unsafe(nil)); end def on_send(node); end ...
false
Other
Homebrew
brew
8f1cd1288d1bfdd1a48470a8671f7ca940d40426.json
extend/os/mac/keg_relocate: relocate rpaths on macOS
Library/Homebrew/extend/os/mac/keg_relocate.rb
@@ -35,6 +35,18 @@ def relocate_dynamic_linkage(relocation) change_install_name(old_name, new_name, file) if new_name end + + if ENV["HOMEBREW_RELOCATE_RPATHS"] + each_rpath_for(file) do |old_name| + if old_name.start_with? relocation.old_cellar + new_name =...
false
Other
Homebrew
brew
d15cb8a83d017aceaafd9265e6725d916cc4d43b.json
utils/ruby.sh: fix Ruby path searching
Library/Homebrew/utils/ruby.sh
@@ -15,14 +15,15 @@ test_ruby() { # HOMEBREW_MACOS is set by brew.sh # HOMEBREW_PATH is set by global.rb -# shellcheck disable=SC2154 +# SC2230 falsely flags `which -a` +# shellcheck disable=SC2154,SC2230 find_ruby() { if [[ -n "${HOMEBREW_MACOS}" ]] then echo "/System/Library/Frameworks/Ruby.framework/...
false
Other
Homebrew
brew
4d5971518de4a6cc8307d5c31567bca35072b5b6.json
os/mac/keg: add change_rpath method
Library/Homebrew/os/mac/keg.rb
@@ -34,6 +34,22 @@ def change_install_name(old, new, file) raise end + def change_rpath(old, new, file) + return if old == new + + @require_relocation = true + odebug "Changing rpath in #{file}\n from #{old}\n to #{new}" + MachO::Tools.change_rpath(file, old, new, strict: false) + apply_ad...
false
Other
Homebrew
brew
acebeab9cb2f44658384f56ffea9c9dc6d945e90.json
bottle: improve style of rebuild fallback Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/dev-cmd/bottle.rb
@@ -339,10 +339,8 @@ def bottle_formula(f, args:) else 0 end - end + end || 0 end - # FormulaVersions#formula_at_revision returns nil for new formulae - rebuild ||= 0 filename = Bottle::Filename.create(f, bottle_tag.to_sym, rebuild) local_filename = filename...
false
Other
Homebrew
brew
c3a9acbdded62175f975b73b0e2fcba3a5b8a688.json
Update RBI files for rubocop-performance.
Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.11.2.rbi
@@ -441,6 +441,7 @@ class RuboCop::Cop::Performance::MapCompact < ::RuboCop::Cop::Base private def compact_method_range(compact_node); end + def invoke_method_after_map_compact_on_same_line?(compact_node, chained_method); end end RuboCop::Cop::Performance::MapCompact::MSG = T.let(T.unsafe(nil), String)
false
Other
Homebrew
brew
b3603b5de8033e926f71cedf2f7f3fd95ec58a2d.json
docs/Common-Issues: remove Oxford comma. Not sure why CI didn't catch this the first time.
docs/Common-Issues.md
@@ -116,4 +116,4 @@ brew upgrade ### Other local issues -If your Homebrew installation gets messed up (and fixing the issues found by `brew doctor` doesn't solve the problem), reinstalling Homebrew may help to reset to a normal state. To easily reinstall Homebrew, use [Homebrew Bundle](https://github.com/Homebrew/...
false
Other
Homebrew
brew
efa278763e14229ea59f602aeb5cb9d9b4dc0561.json
Update RBI files for rubocop-rails.
Library/Homebrew/sorbet/rbi/gems/i18n@1.8.10.rbi
@@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `i18n` gem. -# Please instead update this file by running `tapioca sync`. +# Please instead update this file by running `bin/tapioca sync`. # typed: true
true
Other
Homebrew
brew
efa278763e14229ea59f602aeb5cb9d9b4dc0561.json
Update RBI files for rubocop-rails.
Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.10.0.rbi
@@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rubocop-rails` gem. -# Please instead update this file by running `tapioca sync`. +# Please instead update this file by running `bin/tapioca sync`. # typed: true @@ -13,11 +13,13 @@ end module RuboCop::Cop::Activ...
true
Other
Homebrew
brew
d78dc014d14bf2619d3ae3e985373aff393e67e0.json
github_packages: add missing root mkpath
Library/Homebrew/github_packages.rb
@@ -260,6 +260,7 @@ def upload_bottle(user, token, skopeo, formula_full_name, bottle_hash, keep_old: root = Pathname("#{formula_name}--#{version_rebuild}") FileUtils.rm_rf root + root.mkpath if keep_old download(user, token, skopeo, image_uri, root, dry_run: dry_run)
false
Other
Homebrew
brew
4c67a8ce27394d05f7436907d7f0afb8f1845189.json
caveats: simplify non-plist return Co-authored-by: Rylan Polster <rslpolster@gmail.com>
Library/Homebrew/extend/os/mac/caveats.rb
@@ -6,10 +6,7 @@ class Caveats def plist_caveats s = [] - if !f.plist && !f.service? && !keg&.plist_installed? - caveat = "#{s.join("\n")}\n" if s.present? - return caveat - end + return if !f.plist && !f.service? && !keg&.plist_installed? plist_domain = f.plist_path.basename(".plist...
false
Other
Homebrew
brew
25d754b8b0f41508d2ebe59f2005f1bbec9a7768.json
Update RBI files for rubocop-ast.
Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.5.0.rbi
@@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rubocop-ast` gem. -# Please instead update this file by running `tapioca sync`. +# Please instead update this file by running `bin/tapioca sync`. # typed: true @@ -1367,8 +1367,6 @@ RuboCop::AST::NodePattern::Sets...
false
Other
Homebrew
brew
4e831d518dd1ea39c50e317a1cf0c08d7fcb07c3.json
Update RBI files for rubocop-performance.
Library/Homebrew/sorbet/rbi/gems/parser@3.0.1.1.rbi
@@ -1236,6 +1236,7 @@ class Parser::Source::Comment class << self def associate(ast, comments); end + def associate_by_identity(ast, comments); end def associate_locations(ast, comments); end end end @@ -1244,6 +1245,7 @@ class Parser::Source::Comment::Associator def initialize(ast, comments); ...
true
Other
Homebrew
brew
4e831d518dd1ea39c50e317a1cf0c08d7fcb07c3.json
Update RBI files for rubocop-performance.
Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.11.1.rbi
@@ -437,6 +437,10 @@ class RuboCop::Cop::Performance::MapCompact < ::RuboCop::Cop::Base def map_compact(param0 = T.unsafe(nil)); end def on_send(node); end + + private + + def compact_method_range(compact_node); end end RuboCop::Cop::Performance::MapCompact::MSG = T.let(T.unsafe(nil), String)
true
Other
Homebrew
brew
681f5a5914b3d0c4fb05ae63628e8d372959e18c.json
docs/Formula-Cookbook: Fix outdated HEAD hash syntax - Using the previous syntax, `brew audit --strict` fails because this uses the old Ruby hash syntax.
docs/Formula-Cookbook.md
@@ -577,10 +577,9 @@ To use a specific commit, tag, or branch from a repository, specify [`head`](htt ```ruby class Foo < Formula - head "https://github.com/some/package.git", :revision => "090930930295adslfknsdfsdaffnasd13" - # or :branch => "develop" (the default is "maste...
false
Other
Homebrew
brew
59879b5d1473f64709d4bc102fc1c80a78c30194.json
sorbet: Update RBI files. Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -9684,6 +9684,8 @@ module IRB def self.load_modules(); end + def self.parse_opts(argv: T.unsafe(nil)); end + def self.rc_file(ext=T.unsafe(nil)); end def self.rc_file_generators(); end
false
Other
Homebrew
brew
658352ac1f515ecc3b581e801fe150658dc3df21.json
Remove hardcoded reference to Java 11 Java 11 is no longer the current stable build, so a dependency on “11” should not be treated as a dependency on the latest Java.
Library/Homebrew/cask/dsl/caveats.rb
@@ -114,7 +114,7 @@ def eval_caveats(&block) #{@cask} requires Java. You can install the latest version with: brew install --cask adoptopenjdk EOS - elsif java_version.include?("11") || java_version.include?("+") + elsif java_version.include?("+") <<~EOS ...
false
Other
Homebrew
brew
76607bbb6fae52fcd32cda339c22121c3e0a23ec.json
Simplify conditional as suggested Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/dev-cmd/bottle.rb
@@ -16,7 +16,7 @@ bottle do <% if [HOMEBREW_BOTTLE_DEFAULT_DOMAIN.to_s, "#{HOMEBREW_BOTTLE_DEFAULT_DOMAIN}/bottles"].exclude?(root_url) %> - root_url "<%= root_url %>"<% unless download_strategy.blank? %>, + root_url "<%= root_url %>"<% if download_strategy.present? %>, using: <%= downl...
false
Other
Homebrew
brew
f9589429d63f52445d136eb4480260271e6d6fd0.json
dev-cmd/bottle: handle empty collector tags. Fixes https://github.com/Homebrew/homebrew-core/runs/2467738434?check_suite_focus=true#step:6:458
Library/Homebrew/dev-cmd/bottle.rb
@@ -654,9 +654,15 @@ def merge(args:) bottle.rebuild != old_bottle_spec.rebuild && bottle.root_url == old_bottle_spec.root_url bottle.collector.keys.all? do |tag| - next false if bottle.collector[tag][:cellar] != old_bottle_spec.collector[ta...
false
Other
Homebrew
brew
6d308a6ea4a6b018ef13fe20e829f4d819d4dce9.json
Update RBI files for rubocop-rspec.
Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.3.0.rbi
@@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rubocop-rspec` gem. -# Please instead update this file by running `tapioca sync`. +# Please instead update this file by running `bin/tapioca sync`. # typed: true @@ -236,6 +236,7 @@ class RuboCop::Cop::RSpec::Cont...
false
Other
Homebrew
brew
16d5472e4b0af20826e49ea8cf74dff5544f849e.json
dev-cmd/bottle: improve filename handling. Rely more heavily on the `Bottle::Filename` class rather than hacking around things manually. Without this the rebuilding bottles workflow is broken for `all:` bottles.
Library/Homebrew/.rubocop.yml
@@ -33,7 +33,7 @@ Metrics/PerceivedComplexity: Metrics/MethodLength: Max: 260 Metrics/ModuleLength: - Max: 600 + Max: 610 Exclude: - "test/**/*"
true
Other
Homebrew
brew
16d5472e4b0af20826e49ea8cf74dff5544f849e.json
dev-cmd/bottle: improve filename handling. Rely more heavily on the `Bottle::Filename` class rather than hacking around things manually. Without this the rebuilding bottles workflow is broken for `all:` bottles.
Library/Homebrew/dev-cmd/bottle.rb
@@ -558,11 +558,11 @@ def bottle_formula(f, args:) "prefix" => bottle.prefix, "cellar" => bottle_cellar.to_s, "rebuild" => bottle.rebuild, - "date" => Pathname(local_filename).mtime.strftime("%F"), + "date" => Pathname(filename.to_s).mtime.strftime("%F"), ...
true
Other
Homebrew
brew
20eeb5aca03915bc071a9f42b0bb3fc188fc1818.json
dev-cmd/bottle: add missing verbose puts. These were added but didn't actually output anything...
Library/Homebrew/dev-cmd/bottle.rb
@@ -662,15 +662,15 @@ def merge(args:) all_bottle_hash = { formula_name => all_bottle_formula_hash } - "Copying #{local_filename} to #{all_local_filename}" if args.verbose? + puts "Copying #{local_filename} to #{all_local_filename}" if args.verbose? FileUtils....
false
Other
Homebrew
brew
20d05297c3089fb6c214a94e26814417b533d0f0.json
Remove extra space from manpage
docs/Manpage.md
@@ -1545,7 +1545,7 @@ to send a notification when the autoupdate process has finished successfully. <br>Output this tool's current version. * `--upgrade`: - Automatically upgrade your installed formulae. If the Caskroom exists locally Casks will be upgraded as well. Must be passed with `start`. + Automatically u...
false
Other
Homebrew
brew
7ee76b85d5372f4c85e9947495ae4eeaa91436a5.json
unpack_strategy/zip: ensure consistent timezone management
Library/Homebrew/extend/os/mac/unpack_strategy/zip.rb
@@ -15,47 +15,49 @@ module MacOSZipExtension sig { override.params(unpack_dir: Pathname, basename: Pathname, verbose: T::Boolean).returns(T.untyped) } def extract_to_dir(unpack_dir, basename:, verbose:) - if merge_xattrs && contains_extended_attributes?(path) - # We use ditto directly, b...
true
Other
Homebrew
brew
7ee76b85d5372f4c85e9947495ae4eeaa91436a5.json
unpack_strategy/zip: ensure consistent timezone management
Library/Homebrew/unpack_strategy/zip.rb
@@ -27,15 +27,17 @@ def self.can_extract?(path) .returns(SystemCommand::Result) } def extract_to_dir(unpack_dir, basename:, verbose:) - quiet_flags = verbose ? [] : ["-qq"] - result = system_command! "unzip", - args: [*quiet_flags, "-o", path, "-d...
true
Other
Homebrew
brew
df04c2f9faf4cc7b989094cdbe4e4347fee4dd10.json
docs: clarify upstream versions requirement
docs/Versions.md
@@ -8,7 +8,7 @@ Versioned formulae we include in [homebrew/core](https://github.com/homebrew/hom * Versioned software should build on all Homebrew's supported versions of macOS. * Versioned formulae should differ in major/minor (not patch) versions from the current stable release. This is because patch versions indic...
false
Other
Homebrew
brew
1978f4be653c2621658e1da16a2a0478cb159738.json
Unbottled: fix use of invalid argument
Library/Homebrew/dev-cmd/unbottled.rb
@@ -216,7 +216,7 @@ def output_unbottled(formulae, deps_hash, noun, hash, any_named_args) end deps = Array(deps_hash[f.name]).reject do |dep| - dep.bottle_specification.tag?(@bottle_tag, exact: true) || dep.bottle_unneeded? + dep.bottle_specification.tag?(@bottle_tag, no_older_versions: tr...
false
Other
Homebrew
brew
390d1085553b2b7d909f7cfbbfb28a5950832fff.json
docs: add Cask Cookbook
docs/Cask-Cookbook.md
@@ -0,0 +1,1458 @@ +# Cask Cookbook + +Each Cask is a Ruby block, beginning with a special header line. The Cask definition itself is always enclosed in a `do … end` block. Example: + +```ruby +cask "alfred" do + version "2.7.1_387" + sha256 "a3738d0513d736918a6d71535ef3d85dd184af267c05698e49ac4c6b48f38e17" + + url ...
true
Other
Homebrew
brew
390d1085553b2b7d909f7cfbbfb28a5950832fff.json
docs: add Cask Cookbook
docs/README.md
@@ -37,6 +37,7 @@ - [How To Open A Pull Request (and get it merged)](How-To-Open-a-Homebrew-Pull-Request.md) - [Formula Cookbook](Formula-Cookbook.md) +- [Cask Cookbook](Cask-Cookbook.md) - [Acceptable Formulae](Acceptable-Formulae.md) - [Acceptable Casks](Acceptable-Casks.md) - [License Guidelines](License-Guid...
true
Other
Homebrew
brew
1c7fe799680b82350759559bab3a1e8735811ee9.json
dev-cmd/pr-upload: fix bad args reference. Currently breaking CI.
Library/Homebrew/dev-cmd/pr-upload.rb
@@ -94,7 +94,7 @@ def bottles_hash_from_json_files(root_url) if root_url bottles_hash.each_value do |bottle_hash| - bottle_hash["bottle"]["root_url"] = args.root_url + bottle_hash["bottle"]["root_url"] = root_url end end
false
Other
Homebrew
brew
f04b2ef789998a323715bc0890cfbcbb3e19344e.json
Update RBI files for tapioca.
Library/Homebrew/sorbet/rbi/gems/commander@4.5.2.rbi
@@ -1,7 +0,0 @@ -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `commander` gem. -# Please instead update this file by running `tapioca generate --exclude json`. - -# typed: true - -
true
Other
Homebrew
brew
f04b2ef789998a323715bc0890cfbcbb3e19344e.json
Update RBI files for tapioca.
Library/Homebrew/sorbet/rbi/gems/commander@4.6.0.rbi
@@ -0,0 +1,8 @@ +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `commander` gem. +# Please instead update this file by running `bin/tapioca sync`. + +# typed: true + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca/blob/master/README.md#manual-gem-requires
true
Other
Homebrew
brew
f04b2ef789998a323715bc0890cfbcbb3e19344e.json
Update RBI files for tapioca.
Library/Homebrew/sorbet/rbi/gems/pry@0.14.1.rbi
@@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `pry` gem. -# Please instead update this file by running `tapioca sync`. +# Please instead update this file by running `bin/tapioca sync`. # typed: true
true
Other
Homebrew
brew
f04b2ef789998a323715bc0890cfbcbb3e19344e.json
Update RBI files for tapioca.
Library/Homebrew/sorbet/rbi/gems/tapioca@0.4.21.rbi
@@ -521,8 +521,8 @@ class Tapioca::Generator < ::Thor::Shell::Color def move(old_filename, new_filename); end sig { void } def perform_additions; end - sig { params(dir: Pathname, constant_lookup: T::Hash[String, String]).void } - def perform_dsl_verification(dir, constant_lookup); end + sig { params(dir: P...
true
Other
Homebrew
brew
57c4ef7d537a26a58dad06634b4bed32ca58f3d9.json
Update RBI files for rubocop-performance.
Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.11.0.rbi
@@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rubocop-performance` gem. -# Please instead update this file by running `tapioca sync`. +# Please instead update this file by running `bin/tapioca sync`. # typed: true @@ -430,6 +430,19 @@ RuboCop::Cop::Performanc...
false
Other
Homebrew
brew
d5a09933805594f86d3a89e6a66fa8883541ebc1.json
Update RBI files for bootsnap.
Library/Homebrew/sorbet/rbi/gems/bootsnap@1.7.4.rbi
@@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `bootsnap` gem. -# Please instead update this file by running `tapioca sync`. +# Please instead update this file by running `bin/tapioca sync`. # typed: true
false
Other
Homebrew
brew
7af68d0f8ed1db23e229933d4cdcdfe1e52c9262.json
Fix shellcheck failures A new version of `shellcheck` (I think?) brought us so new warnings and errors. To fix: - pass `--source-path` so we don't need to stop `shellcheck` trying to read sourced files every time - disable some more warnings/errors we don't care about fixing
Library/Homebrew/brew.sh
@@ -51,10 +51,9 @@ HOMEBREW_CACHE="${HOMEBREW_CACHE:-${HOMEBREW_DEFAULT_CACHE}}" HOMEBREW_LOGS="${HOMEBREW_LOGS:-${HOMEBREW_DEFAULT_LOGS}}" HOMEBREW_TEMP="${HOMEBREW_TEMP:-${HOMEBREW_DEFAULT_TEMP}}" -# Don't need shellcheck to follow these `source`. # These referenced variables are set by bin/brew # Don't need to...
true
Other
Homebrew
brew
7af68d0f8ed1db23e229933d4cdcdfe1e52c9262.json
Fix shellcheck failures A new version of `shellcheck` (I think?) brought us so new warnings and errors. To fix: - pass `--source-path` so we don't need to stop `shellcheck` trying to read sourced files every time - disable some more warnings/errors we don't care about fixing
Library/Homebrew/cmd/casks.sh
@@ -3,8 +3,6 @@ #: List all locally installable casks including short names. #: -# Don't need shellcheck to follow the `source`. -# shellcheck disable=SC1090 source "$HOMEBREW_LIBRARY/Homebrew/items.sh" homebrew-casks() {
true
Other
Homebrew
brew
7af68d0f8ed1db23e229933d4cdcdfe1e52c9262.json
Fix shellcheck failures A new version of `shellcheck` (I think?) brought us so new warnings and errors. To fix: - pass `--source-path` so we don't need to stop `shellcheck` trying to read sourced files every time - disable some more warnings/errors we don't care about fixing
Library/Homebrew/cmd/formulae.sh
@@ -3,8 +3,6 @@ #: List all locally installable formulae including short names. #: -# Don't need shellcheck to follow the `source`. -# shellcheck disable=SC1090 source "$HOMEBREW_LIBRARY/Homebrew/items.sh" homebrew-formulae() {
true
Other
Homebrew
brew
7af68d0f8ed1db23e229933d4cdcdfe1e52c9262.json
Fix shellcheck failures A new version of `shellcheck` (I think?) brought us so new warnings and errors. To fix: - pass `--source-path` so we don't need to stop `shellcheck` trying to read sourced files every time - disable some more warnings/errors we don't care about fixing
Library/Homebrew/cmd/update.sh
@@ -9,8 +9,6 @@ #: -d, --debug Display a trace of all shell commands as they are executed. #: -h, --help Show this message. -# Don't need shellcheck to follow this `source`. -# shellcheck disable=SC1090 source "$HOMEBREW_LIBRARY/Homebrew/utils/lock.sh" # Repl...
true
Other
Homebrew
brew
7af68d0f8ed1db23e229933d4cdcdfe1e52c9262.json
Fix shellcheck failures A new version of `shellcheck` (I think?) brought us so new warnings and errors. To fix: - pass `--source-path` so we don't need to stop `shellcheck` trying to read sourced files every time - disable some more warnings/errors we don't care about fixing
Library/Homebrew/cmd/vendor-install.sh
@@ -3,8 +3,6 @@ #: #: Install Homebrew's portable Ruby. -# Don't need shellcheck to follow this `source`. -# shellcheck disable=SC1090 source "$HOMEBREW_LIBRARY/Homebrew/utils/lock.sh" VENDOR_DIR="$HOMEBREW_LIBRARY/Homebrew/vendor" @@ -119,6 +117,8 @@ fetch() { else if [[ -f "$temporary_path" ]] t...
true
Other
Homebrew
brew
7af68d0f8ed1db23e229933d4cdcdfe1e52c9262.json
Fix shellcheck failures A new version of `shellcheck` (I think?) brought us so new warnings and errors. To fix: - pass `--source-path` so we don't need to stop `shellcheck` trying to read sourced files every time - disable some more warnings/errors we don't care about fixing
Library/Homebrew/dev-cmd/rubocop.sh
@@ -8,8 +8,6 @@ # HOMEBREW_BREW_FILE is set by extend/ENV/super.rb # shellcheck disable=SC2154 homebrew-rubocop() { - # Don't need shellcheck to follow this `source`. - # shellcheck disable=SC1090 source "${HOMEBREW_LIBRARY}/Homebrew/utils/ruby.sh" setup-ruby-path
true
Other
Homebrew
brew
7af68d0f8ed1db23e229933d4cdcdfe1e52c9262.json
Fix shellcheck failures A new version of `shellcheck` (I think?) brought us so new warnings and errors. To fix: - pass `--source-path` so we don't need to stop `shellcheck` trying to read sourced files every time - disable some more warnings/errors we don't care about fixing
Library/Homebrew/shims/mac/super/ruby
@@ -2,10 +2,9 @@ # System Ruby's mkmf on Mojave (10.14) and later require SDKROOT set to work correctly. -# Don't need shellcheck to follow the `source`. # HOMEBREW_LIBRARY is set by bin/brew # HOMEBREW_SDKROOT is set by extend/ENV/super.rb -# shellcheck disable=SC1090,SC2154 +# shellcheck disable=SC2154 source...
true
Other
Homebrew
brew
7af68d0f8ed1db23e229933d4cdcdfe1e52c9262.json
Fix shellcheck failures A new version of `shellcheck` (I think?) brought us so new warnings and errors. To fix: - pass `--source-path` so we don't need to stop `shellcheck` trying to read sourced files every time - disable some more warnings/errors we don't care about fixing
Library/Homebrew/shims/scm/git
@@ -15,8 +15,6 @@ then exit 1 fi -# Don't need shellcheck to follow the `source`. -# shellcheck disable=SC1090 source "${HOMEBREW_LIBRARY}/Homebrew/shims/utils.sh" # shellcheck disable=SC2249
true
Other
Homebrew
brew
7af68d0f8ed1db23e229933d4cdcdfe1e52c9262.json
Fix shellcheck failures A new version of `shellcheck` (I think?) brought us so new warnings and errors. To fix: - pass `--source-path` so we don't need to stop `shellcheck` trying to read sourced files every time - disable some more warnings/errors we don't care about fixing
Library/Homebrew/style.rb
@@ -186,7 +186,7 @@ def run_shellcheck(files, output_type) end # TODO: Add `--enable=all` to check for more problems. - args = ["--shell=bash", "--external-sources", "--", *files] + args = ["--shell=bash", "--external-sources", "--source-path=#{HOMEBREW_LIBRARY}", "--", *files] case o...
true
Other
Homebrew
brew
7af68d0f8ed1db23e229933d4cdcdfe1e52c9262.json
Fix shellcheck failures A new version of `shellcheck` (I think?) brought us so new warnings and errors. To fix: - pass `--source-path` so we don't need to stop `shellcheck` trying to read sourced files every time - disable some more warnings/errors we don't care about fixing
bin/brew
@@ -121,7 +121,5 @@ then else echo "Warning: HOMEBREW_NO_ENV_FILTERING is undocumented, deprecated and will be removed in a future Homebrew release (because it breaks many things)!" >&2 - # Don't need shellcheck to follow this `source`. - # shellcheck disable=SC1090 source "${HOMEBREW_LIBRARY}/Homebrew/brew....
true
Other
Homebrew
brew
965dbaa1720bbfe2451022ebf082611d584a1382.json
dev-cmd/bottle: fix libarchive installed check. Used now-removed old method name.
Library/Homebrew/dev-cmd/bottle.rb
@@ -271,7 +271,7 @@ def setup_tar_owner_group_args! return [].freeze end - unless libarchive.installed? + unless libarchive.any_version_installed? ohai "Installing `libarchive` for bottling..." safe_system HOMEBREW_BREW_FILE, "install", "--formula", libarchive.full_name end
false
Other
Homebrew
brew
443bae5522fc6d81ecc362e4f7ea79eb53f6733a.json
pod2man: use newer pod2man. This shim was originally added in 5c973bad7422cf7f335e952a91ddfa2273aa2e4f to workaround a missing `/usr/bin/pod2man`. It's now unfortunately resulting in using an older `pod2man` on newer macOS versions. Instead, let's use `/usr/bin/pod2man` if it's available and, if not, work backwards t...
Library/Homebrew/shims/mac/super/pod2man
@@ -2,7 +2,10 @@ # HOMEBREW_PREFIX is set by bin/brew # shellcheck disable=SC2154 -POD2MAN="$(type -P pod2man5.18 || +POD2MAN="$(type -P /usr/bin/pod2man || + type -P pod2man5.30 || + type -P pod2man5.28 || + type -P pod2man5.18 || type -P pod2man5.16 || type -P...
false
Other
Homebrew
brew
4a3fc2a8fc562418212b8ffea273ff9a3806c38e.json
dev-cmd/bottle: set uid/gid, use libarchive on macOS. Take 2 on #11165 but use newish `libarchive` consistently on macOS.
Library/Homebrew/dev-cmd/bottle.rb
@@ -254,6 +254,35 @@ def sudo_purge system "/usr/bin/sudo", "--non-interactive", "/usr/sbin/purge" end + def setup_tar_owner_group_args! + # Unset the owner/group for reproducible bottles. + # Use gnu-tar on Linux + return ["--owner", "0", "--group", "0"].freeze if OS.linux? + + bsdtar_args = ["-...
false
Other
Homebrew
brew
060ee065743967f563bf51be57d30886fa881383.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/gems/parser@3.0.1.0.rbi
@@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `parser` gem. -# Please instead update this file by running `tapioca sync`. +# Please instead update this file by running `bin/tapioca sync`. # typed: true @@ -1194,6 +1194,7 @@ class Parser::Source::Buffer def ...
true
Other
Homebrew
brew
060ee065743967f563bf51be57d30886fa881383.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/gems/rexml@3.2.5.rbi
@@ -1,39 +1,9 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rexml` gem. -# Please instead update this file by running `tapioca generate --exclude json`. +# Please instead update this file by running `bin/tapioca sync`. # typed: true -class Array - include(::Enumerable) -...
true
Other
Homebrew
brew
060ee065743967f563bf51be57d30886fa881383.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/gems/rubocop@1.13.0.rbi
@@ -350,6 +350,7 @@ RuboCop::ConfigLoader::RUBOCOP_HOME = T.let(T.unsafe(nil), String) RuboCop::ConfigLoader::XDG_CONFIG = T.let(T.unsafe(nil), String) class RuboCop::ConfigLoaderResolver + def fix_include_paths(base_config_path, hash, path, key, value); end def merge(base_hash, derived_hash, **opts); end de...
true
Other
Homebrew
brew
060ee065743967f563bf51be57d30886fa881383.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -9694,6 +9694,7 @@ module IRB end class Integer + include ::JSON::Ext::Generator::GeneratorMethods::Integer include ::MessagePack::CoreExt def to_bn(); end end
true
Other
Homebrew
brew
39c34b99539caaab0f2e707634f8d627e2910cbc.json
Remove issue_body key from issue forms
.github/ISSUE_TEMPLATE/bug.yml
@@ -1,7 +1,6 @@ name: New issue for Reproducible Bug description: "If you're sure it's reproducible and not just your machine: submit an issue so we can investigate." labels: bug -issue_body: false body: - type: markdown attributes:
false
Other
Homebrew
brew
34919c45f257dff0943b32b88d4c6c9477e9ef9c.json
add comments about ENV
Library/Homebrew/shims/linux/super/make
@@ -1,5 +1,7 @@ #!/bin/bash +# HOMEBREW_CCCFG is set by extend/ENV/super.rb +# HOMEBREW_LIBRARY is set by bin/brew # shellcheck disable=SC2154,SC2250 pathremove() { local IFS=':' NEWPATH="" DIR="" PATHVARIABLE=${2:-PATH}
true
Other
Homebrew
brew
34919c45f257dff0943b32b88d4c6c9477e9ef9c.json
add comments about ENV
Library/Homebrew/shims/mac/super/apr-1-config
@@ -1,5 +1,6 @@ #!/bin/bash +# HOMEBREW_CCCFG and HOMEBREW_SDKROOT are set by extend/ENV/super.rb # shellcheck disable=SC2154 if [[ "${HOMEBREW_CCCFG}" = *a* ]] then
true
Other
Homebrew
brew
34919c45f257dff0943b32b88d4c6c9477e9ef9c.json
add comments about ENV
Library/Homebrew/shims/mac/super/make
@@ -1,6 +1,7 @@ #!/bin/bash # shellcheck disable=SC2154 +# HOMEBREW_CCCFG is set by extend/ENV/super.rb if [[ -n "${HOMEBREW_MAKE}" && "${HOMEBREW_MAKE}" != "make" ]] then export MAKE="${HOMEBREW_MAKE}"
true
Other
Homebrew
brew
34919c45f257dff0943b32b88d4c6c9477e9ef9c.json
add comments about ENV
Library/Homebrew/shims/mac/super/pkg-config
@@ -1,5 +1,6 @@ #!/bin/sh +# HOMEBREW_OPT and HOMEBREW_SDKROOT are set by extend/ENV/super.rb # shellcheck disable=SC2154 pkg_config="${HOMEBREW_OPT}/pkg-config/bin/pkg-config"
true
Other
Homebrew
brew
34919c45f257dff0943b32b88d4c6c9477e9ef9c.json
add comments about ENV
Library/Homebrew/shims/mac/super/ruby
@@ -3,6 +3,8 @@ # System Ruby's mkmf on Mojave (10.14) and later require SDKROOT set to work correctly. # Don't need shellcheck to follow the `source`. +# HOMEBREW_LIBRARY is set by bin/brew +# HOMEBREW_SDKROOT is set by extend/ENV/super.rb # shellcheck disable=SC1090,SC2154 source "${HOMEBREW_LIBRARY}/Homebrew/s...
true
Other
Homebrew
brew
34919c45f257dff0943b32b88d4c6c9477e9ef9c.json
add comments about ENV
Library/Homebrew/shims/mac/super/xcrun
@@ -5,6 +5,7 @@ # it and attempts to avoid these issues. # These could be used in conjunction with `--sdk` which ignores SDKROOT. +# HOMEBREW_DEVELOPER_DIR, HOMEBREW_SDKROOT and HOMEBREW_PREFER_CLT_PROXIES are set by extend/ENV/super.rb # shellcheck disable=SC2154 if [[ "$*" =~ (^| )-?-show-sdk-(path|version|buil...
true
Other
Homebrew
brew
34919c45f257dff0943b32b88d4c6c9477e9ef9c.json
add comments about ENV
Library/Homebrew/shims/scm/git
@@ -3,6 +3,11 @@ # This script because we support $HOMEBREW_GIT, $HOMEBREW_SVN, etc., Xcode-only and # no Xcode/CLT configurations. Order is careful to be what the user would want. +# HOMEBREW_LIBRARY is set by bin/brew +# SHIM_FILE is set by shims/utils.sh +# HOMEBREW_GIT is set by brew.sh +# HOMEBREW_SVN is from ...
true
Other
Homebrew
brew
9a697736400f42ded179f1eb23972e049e1020e7.json
workflows/tests: simulate macOS for `brew style homebrew-core`
.github/workflows/tests.yml
@@ -106,6 +106,8 @@ jobs: - name: Run brew style on homebrew-core run: brew style --display-cop-names homebrew/core + env: + HOMEBREW_SIMULATE_MACOS_ON_LINUX: 1 - name: Run brew audit --skip-style on homebrew-core run: brew audit --skip-style --tap=homebrew/core
false
Other
Homebrew
brew
117902803f2ec08a644e83613392f2e518c37717.json
add detail comments and delete cask
Library/Homebrew/brew.sh
@@ -3,6 +3,7 @@ ##### able to `source` in shell configuration quick. ##### +# Doesn't need a default case because we don't support other OSs # shellcheck disable=SC2249 HOMEBREW_PROCESSOR="$(uname -m)" HOMEBREW_SYSTEM="$(uname -s)" @@ -14,6 +15,7 @@ esac # If we're running under macOS Rosetta 2, and it was requ...
false
Other
Homebrew
brew
1c2d76c4e4903322197c3cf854188e31d5a41838.json
rubocops/patches: remove autocorrection of some URLs
Library/Homebrew/rubocops/patches.rb
@@ -53,24 +53,16 @@ def patch_problems(patch_url_node) end if regex_match_group(patch_url_node, %r{https://github.com/[^/]*/[^/]*/commit/[a-fA-F0-9]*\.diff}) - problem "GitHub patches should end with .patch, not .diff: #{patch_url}" do |corrector| - correct = patch_url_no...
false
Other
Homebrew
brew
a328acc9a109dea01210b0556790728be2023f16.json
rubocops/patches: Fix quoting of the patch `url` when autocorrecting - The autocorrections here before were leading to changes like: ``` ➜ brew style --fix brewsci/science/beetl Formula/beetl.rb:15:11: C: [Corrected] GitHub patches should use the full_index parameter: https://github.com/BEETL/BEETL/commit/ba47b6f9.pa...
Library/Homebrew/rubocops/patches.rb
@@ -69,7 +69,7 @@ def patch_problems(patch_url_node) gh_patch_param_pattern = %r{https?://github\.com/.+/.+/(?:commit|pull)/[a-fA-F0-9]*.(?:patch|diff)} if regex_match_group(patch_url_node, gh_patch_param_pattern) && !patch_url.match?(/\?full_index=\w+$/) problem "GitHub patches shoul...
false
Other
Homebrew
brew
4a0b860973a8f7224429943050864ebd61b53331.json
dev-cmd/bottle: improve reproducibility, comment. Setting a consistent owner/group results in more consistent bottles.
Library/Homebrew/dev-cmd/bottle.rb
@@ -377,6 +377,7 @@ def bottle_formula(f, args:) end keg.find do |file| + # Set the times for reproducible bottles. if file.symlink? File.lutime(tab.source_modified_time, tab.source_modified_time, file) else @@ -386,8 +387,11 @@ def bottle_formula(f, args:...
false
Other
Homebrew
brew
a28dda50629de70454d0ad91f966101310ff7074.json
bottle: remove GitHub Packages bulk upload logic.
Library/Homebrew/dev-cmd/bottle.rb
@@ -331,18 +331,6 @@ def bottle_formula(f, args:) tab_json = Utils.safe_popen_read("tar", "xfO", f.local_bottle_path, tab_path) tab = Tab.from_file_content(tab_json, tab_path) - # TODO: most of this logic can be removed when we're done with bulk GitHub Packages bottle uploading - tap_git_revis...
false
Other
Homebrew
brew
7c9053753fb9631ec5ff94b76db8626e6a6bdd39.json
brew.sh: add workaround for old auto-updates
Library/Homebrew/brew.sh
@@ -442,6 +442,17 @@ Your Git executable: $(unset git && type -p $HOMEBREW_GIT)" unset HOMEBREW_MACOS_SYSTEM_RUBY_NEW_ENOUGH fi +# A bug in the auto-update process prior to 3.1.2 means $HOMEBREW_BOTTLE_DOMAIN +# could be passed down with the default domain. +# This is problematic as this is will be the old bottle...
false