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
41b0bf7bbb84495c82987f2fba7cf029d8abef11.json
Add `developer` command
manpages/brew.1
@@ -229,6 +229,17 @@ Search just names for \fItext\fR\. If \fItext\fR is flanked by slashes, it is in \fB\-d\fR, \fB\-\-description\fR Search just descriptions for \fItext\fR\. If \fItext\fR is flanked by slashes, it is interpreted as a regular expression\. . +.SS "\fBdeveloper\fR [\fIsubcommand\fR]" +Control Homebr...
true
Other
Homebrew
brew
91fffeeff6a5b1d9fd042716035a14698bc674be.json
info: show latest version
Library/Homebrew/cmd/info.rb
@@ -244,7 +244,13 @@ def info_formula(f, args:) specs = [] if (stable = f.stable) - s = "stable #{stable.version}" + latest_version = if ENV["HOMEBREW_JSON_CORE"].present? + BottleAPI.latest_pkg_version(f.name).version || stable.version + else + stable.version + end + + ...
false
Other
Homebrew
brew
dff24049deb36beaa09fbaf8b4d29263076f7b17.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
@@ -3217,6 +3217,11 @@ module Bootsnap def self.setup(cache_dir:, development_mode: T.unsafe(nil), load_path_cache: T.unsafe(nil), autoload_paths_cache: T.unsafe(nil), disable_trace: T.unsafe(nil), compile_cache_iseq: T.unsafe(nil), compile_cache_yaml: T.unsafe(nil)); end end +module BottleAPI + extend ::T::Priv...
false
Other
Homebrew
brew
e5e2674c15853c39ee994272b766b510a03f3f94.json
Update RBI files for rubocop-rails.
Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.11.3.rbi
@@ -17,6 +17,7 @@ module RuboCop::Cop::ActiveRecordHelper def foreign_key_of(belongs_to); end def in_where?(node); end def inherit_active_record_base?(node); end + def polymorphic?(belongs_to); end def resolve_relation_into_column(name:, class_node:, table:); end def schema; end def table_name(class_...
false
Other
Homebrew
brew
2599cccc81782e45517dae03ba093f2d74f22f7f.json
Add comment for in-source style exception
Library/Homebrew/extend/ENV/super.rb
@@ -338,6 +338,7 @@ def refurbish_args end # rubocop: disable Naming/MethodName + # Fixes style error `Naming/MethodName: Use snake_case for method names.` sig { params(block: T.nilable(T.proc.void)).void } def O0(&block) if block
false
Other
Homebrew
brew
640663eba781074bfaf5da484d7d69bd9d64c086.json
Update RBI files for parser.
Library/Homebrew/sorbet/rbi/gems/parser@3.0.2.0.rbi
@@ -4,17 +4,58 @@ # typed: true +class AST::Node + def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end + + def +(array); end + def <<(element); end + def ==(other); end + def append(element); end + def children; end + def clone; end + def concat(array); end + def deconstruct; e...
false
Other
Homebrew
brew
aed7e4389c8160670fb59b8668fc2ed9516e7cd6.json
Fix function name typo at the correct place. As nandahkrishna writes in https://github.com/Homebrew/brew/pull/11678#issuecomment-876356490, completions/fish/brew.fish is generated automatically. This commit makes the change in the proper template instead.
Library/Homebrew/completions/fish.erb
@@ -162,7 +162,7 @@ function __fish_brew_suggest_commands -d "Lists all commands names, including al end end -function __fish_brew_suggest_diagnostic_check -d "List available diagnostic checks" +function __fish_brew_suggest_diagnostic_checks -d "List available diagnostic checks" brew doctor --list-checks ...
true
Other
Homebrew
brew
aed7e4389c8160670fb59b8668fc2ed9516e7cd6.json
Fix function name typo at the correct place. As nandahkrishna writes in https://github.com/Homebrew/brew/pull/11678#issuecomment-876356490, completions/fish/brew.fish is generated automatically. This commit makes the change in the proper template instead.
completions/fish/brew.fish
@@ -149,7 +149,7 @@ function __fish_brew_suggest_commands -d "Lists all commands names, including al end end -function __fish_brew_suggest_diagnostic_checks -d "List available diagnostic checks" +function __fish_brew_suggest_diagnostic_check -d "List available diagnostic checks" brew doctor --list-checks ...
true
Other
Homebrew
brew
423e8e104fda8805fe79fc2cad042b9192f5fa3e.json
Fix typo in brew doctor completion function name Wherever in the file the function __fish_brew_suggest_diagnostic_checks is called, the name has a trailing 's' (plural 'checks'), whereas the function definition uses 'check' in singular. Changing the function name to match the callsites.
completions/fish/brew.fish
@@ -149,7 +149,7 @@ function __fish_brew_suggest_commands -d "Lists all commands names, including al end end -function __fish_brew_suggest_diagnostic_check -d "List available diagnostic checks" +function __fish_brew_suggest_diagnostic_checks -d "List available diagnostic checks" brew doctor --list-checks ...
false
Other
Homebrew
brew
e6607665140ec8262c071ca65d076a8d837856dd.json
brew: add `DBUS_SESSION_BUS_ADDRESS` copy
bin/brew
@@ -64,7 +64,7 @@ HOMEBREW_LIBRARY="${HOMEBREW_REPOSITORY}/Library" # Copy and export all HOMEBREW_* variables previously mentioned in # manpage or used elsewhere by Homebrew. -for VAR in BROWSER DISPLAY EDITOR NO_COLOR PATH TMUX +for VAR in BROWSER DISPLAY EDITOR NO_COLOR PATH TMUX DBUS_SESSION_BUS_ADDRESS do ...
false
Other
Homebrew
brew
87e776fed616723e86d5a127aac6079e856e7150.json
Update configuration in `Library/.rubocop.yml`
Library/.rubocop.yml
@@ -84,6 +84,25 @@ Naming/HeredocDelimiterNaming: ForbiddenDelimiters: - END, EOD, EOF +Naming/InclusiveLanguage: + CheckStrings: true + FlaggedTerms: + # TODO: If possible, make this stricter. + slave: + AllowedRegex: + - "gitslave" # Used in formula `gitslave` + - "log_slave" #...
false
Other
Homebrew
brew
77d972c67c6dafbb89d46cdb073a9ef4f2d376e3.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/gems/rubocop@1.18.3.rbi
@@ -1075,16 +1075,19 @@ class RuboCop::Cop::Bundler::GemVersion < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::GemDeclaration + def includes_commit_reference?(param0 = T.unsafe(nil)); end def includes_version_specification?(param0 = T.unsafe(nil)); end de...
true
Other
Homebrew
brew
77d972c67c6dafbb89d46cdb073a9ef4f2d376e3.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -26891,6 +26891,7 @@ end module RuboCop::AST::NodePattern::Sets SET_BEGINNING_OF_DAY_BEGINNING_OF_WEEK_BEGINNING_OF_MONTH_ETC = ::T.let(nil, ::T.untyped) + SET_BRANCH_REF_TAG = ::T.let(nil, ::T.untyped) SET_BUILD_RECOMMENDED_TEST_OPTIONAL = ::T.let(nil, ::T.untyped) SET_DEPENDS_ON_USES_FROM_MACOS = ::T....
true
Other
Homebrew
brew
16e56907b5cf93bd66f87608089944905c506cf5.json
formula_cellar_checks: fix cpuid instruction check on Mojave The output format of `objdump` on Mojave is different from newer versions of macOS, so I've adjusted the relevant audit to account for this difference.
Library/Homebrew/formula_cellar_checks.rb
@@ -345,10 +345,15 @@ def relative_glob(dir, pattern) def cpuid_instruction?(file, objdump = "objdump") @instruction_column_index ||= {} - @instruction_column_index[objdump] ||= if Utils.popen_read(objdump, "--version").include? "LLVM" - 1 # `llvm-objdump` or macOS `objdump` - else - 2 # GNU b...
false
Other
Homebrew
brew
a7da26a291c1f567720ba316c073a39e2ab4986b.json
Update RBI files for rubocop-performance.
Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.11.4.rbi
@@ -4,18 +4,13 @@ # typed: true -module RuboCop -end - -module RuboCop::Cop -end - -module RuboCop::Cop::Performance -end +module RuboCop; end +module RuboCop::Cop; end +module RuboCop::Cop::Performance; end class RuboCop::Cop::Performance::AncestorsInclude < ::RuboCop::Cop::Base - include(::RuboCop::Cop::Rang...
false
Other
Homebrew
brew
2b5342f12dd2cd7120ea3e69236085ee495fae78.json
Update RBI files for parlour.
Library/Homebrew/sorbet/rbi/gems/parlour@6.0.1.rbi
@@ -1,12 +1,44 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `parlour` gem. -# Please instead update this file by running `tapioca sync`. +# Please instead update this file by running `bin/tapioca sync`. # typed: true -module Parlour +class AST::Node + def initialize(type...
true
Other
Homebrew
brew
2b5342f12dd2cd7120ea3e69236085ee495fae78.json
Update RBI files for parlour.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -13162,10 +13162,6 @@ class Parlour::TypedObject extend ::T::Private::Methods::SingletonMethodHooks end -module Parlour::Types - TypeLike = ::T.let(nil, ::T.untyped) -end - class Parlour::Types::Proc::Parameter extend ::T::Sig extend ::T::Private::Methods::MethodHooks
true
Other
Homebrew
brew
3776ba9756de63fad533167baa2db77088ba1817.json
formula: add a `time` method for use as the build time A number of formulae use a variant of `Time.now` to generate the build time of the formula. Let's define a method to make sure that: 1. it uses `SOURCE_DATE_EPOCH` whenever available; and, 2. it uses `utc`. Both should help with build reproducibility. See Homeb...
Library/Homebrew/formula.rb
@@ -1551,6 +1551,18 @@ def rpath "@loader_path/../lib" end + # Creates a new `Time` object for use in the formula as the build time. + # + # @see https://www.rubydoc.info/stdlib/time/Time Time + sig { returns(Time) } + def time + if ENV["SOURCE_DATE_EPOCH"].present? + Time.at(ENV["SOURCE_DATE_EPO...
false
Other
Homebrew
brew
322d5c67ec636dd44ce17f835dd6ec5cd36a9625.json
Add parentheses to if statement
Library/Homebrew/cask/cask.rb
@@ -122,7 +122,7 @@ def outdated_versions(greedy: false, greedy_latest: false, greedy_auto_updates: # special case: tap version is not available return [] if version.nil? - if greedy || greedy_latest && greedy_auto_updates || greedy_auto_updates && auto_updates + if greedy || (greedy_latest &&...
false
Other
Homebrew
brew
30118918f66f4ed18a6ce34430dd397322f0c60a.json
Update RBI files for mime-types-data.
Library/Homebrew/sorbet/rbi/gems/mime-types-data@3.2021.0704.rbi
@@ -4,12 +4,11 @@ # typed: true -module MIME -end +module MIME; end class MIME::Types - include(::Enumerable) - extend(::Enumerable) + include ::Enumerable + extend ::Enumerable def initialize; end @@ -68,11 +67,7 @@ class MIME::Types::Cache < ::Struct end end -module MIME::Types::Data -end - +...
false
Other
Homebrew
brew
cb1ef7062c1a9181761dcaf7a24d00a00dfeb8ee.json
Update RBI files for addressable.
Library/Homebrew/sorbet/rbi/gems/addressable@2.8.0.rbi
@@ -4,8 +4,7 @@ # typed: true -module Addressable -end +module Addressable; end module Addressable::IDNA class << self @@ -26,6 +25,7 @@ module Addressable::IDNA def punycode_delimiter?(codepoint); end def punycode_encode(unicode); end def punycode_encode_digit(d); end + def ucs4_to_utf8(ch...
true
Other
Homebrew
brew
cb1ef7062c1a9181761dcaf7a24d00a00dfeb8ee.json
Update RBI files for addressable.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -2740,8 +2740,6 @@ class Addressable::Template def extract(uri, processor=T.unsafe(nil)); end - def generate(params=T.unsafe(nil), recall=T.unsafe(nil), options=T.unsafe(nil)); end - def initialize(pattern); end def keys(); end @@ -12578,13 +12576,9 @@ Net::HTTPServerErrorCode = Net::HTTPServerError ...
true
Other
Homebrew
brew
5ed4430daf8108462126cbcdf3088f2ec887a74e.json
Apply suggestions from code review Co-authored-by: Rylan Polster <rslpolster@gmail.com>
Library/Homebrew/formula_cellar_checks.rb
@@ -307,10 +307,9 @@ def check_cpuid_instruction(formula) end keg = Keg.new(formula.prefix) - has_cpuid_instruction = keg.binary_executable_or_library_files.any? do |file| + return if keg.binary_executable_or_library_files.any? do |file| cpuid_instruction?(file, objdump) end - return if...
false
Other
Homebrew
brew
63aa1920883841fb0d6eb0c5513de63406d91879.json
Incorporate suggestions from feedback 1. Never install `binutils`. Instead, report an audit failure. 2. Tighten instruction check with a stricter matching strategy.
Library/Homebrew/formula_cellar_checks.rb
@@ -298,19 +298,17 @@ def check_cpuid_instruction(formula) objdump ||= Formula["binutils"].opt_bin/"objdump" if Formula["binutils"].any_version_installed? objdump ||= which("objdump") objdump ||= which("objdump", ENV["HOMEBREW_PATH"]) - objdump ||= begin - # If the system provides no `objdump`, i...
false
Other
Homebrew
brew
22f986b89a95184126c0dca3de70fcbfc3af0f2f.json
Install formulae from JSON files
Library/Homebrew/cli/named_args.rb
@@ -49,12 +49,14 @@ def to_formulae ignore_unavailable: T.nilable(T::Boolean), method: T.nilable(Symbol), uniq: T::Boolean, + load_from_json: T::Boolean, ).returns(T::Array[T.any(Formula, Keg, Cask::Cask)]) } - def to_formulae_...
true
Other
Homebrew
brew
22f986b89a95184126c0dca3de70fcbfc3af0f2f.json
Install formulae from JSON files
Library/Homebrew/cmd/install.rb
@@ -154,8 +154,10 @@ def install EOS end + allow_loading_from_json = ENV["HOMEBREW_JSON_CORE"].present? && !CoreTap.instance.installed? + begin - formulae, casks = args.named.to_formulae_and_casks + formulae, casks = args.named.to_formulae_and_casks(load_from_json: allow_loading_from_jso...
true
Other
Homebrew
brew
22f986b89a95184126c0dca3de70fcbfc3af0f2f.json
Install formulae from JSON files
Library/Homebrew/cmd/outdated.rb
@@ -97,8 +97,10 @@ def print_outdated(formulae_or_casks, args:) elsif f.head? && outdated_kegs.any? { |k| k.version.to_s == f.pkg_version.to_s } # There is a newer HEAD but the version number has not changed. "latest HEAD" - else + elsif f.tap.present? ...
true
Other
Homebrew
brew
22f986b89a95184126c0dca3de70fcbfc3af0f2f.json
Install formulae from JSON files
Library/Homebrew/cmd/reinstall.rb
@@ -84,6 +84,19 @@ def reinstall_args def reinstall args = reinstall_args.parse + if ENV["HOMEBREW_JSON_CORE"].present? && !CoreTap.instance.installed? + args.named.each do |name| + formula = Formulary.factory(name) + next unless formula.any_version_installed? + next if formula.ta...
true
Other
Homebrew
brew
22f986b89a95184126c0dca3de70fcbfc3af0f2f.json
Install formulae from JSON files
Library/Homebrew/cmd/upgrade.rb
@@ -159,6 +159,20 @@ def upgrade_outdated_formulae(formulae, args:) puts pinned.map { |f| "#{f.full_specified_name} #{f.pkg_version}" } * ", " end + if ENV["HOMEBREW_JSON_CORE"].present? && !CoreTap.instance.installed? + formulae_to_install.map! do |formula| + next formula if formula.tap.pr...
true
Other
Homebrew
brew
22f986b89a95184126c0dca3de70fcbfc3af0f2f.json
Install formulae from JSON files
Library/Homebrew/formula.rb
@@ -1325,15 +1325,20 @@ def outdated_kegs(fetch_head: false) Formula.cache[:outdated_kegs][cache_key] ||= begin all_kegs = [] current_version = T.let(false, T::Boolean) + latest_version = if tap.present? + pkg_version + else + Utils::BottleAPI.latest_pkg_version name + en...
true
Other
Homebrew
brew
22f986b89a95184126c0dca3de70fcbfc3af0f2f.json
Install formulae from JSON files
Library/Homebrew/utils.rb
@@ -4,6 +4,7 @@ require "time" require "utils/analytics" +require "utils/bottle_api" require "utils/curl" require "utils/fork" require "utils/formatter"
true
Other
Homebrew
brew
22f986b89a95184126c0dca3de70fcbfc3af0f2f.json
Install formulae from JSON files
Library/Homebrew/utils/bottle_api.rb
@@ -0,0 +1,103 @@ +# typed: true +# frozen_string_literal: true + +require "github_packages" + +module Utils + # Helper functions for using the Bottle JSON API. + # + # @api private + module BottleAPI + extend T::Sig + + module_function + + FORMULAE_BREW_SH_BOTTLE_API_DOMAIN = if OS.mac? + "https://fo...
true
Other
Homebrew
brew
22f986b89a95184126c0dca3de70fcbfc3af0f2f.json
Install formulae from JSON files
Library/Homebrew/utils/bottle_api.rbi
@@ -0,0 +1,7 @@ +# typed: strict + +module Utils + module BottleAPI + include Kernel + end +end
true
Other
Homebrew
brew
22f986b89a95184126c0dca3de70fcbfc3af0f2f.json
Install formulae from JSON files
manpages/brew.1
@@ -1,7 +1,7 @@ .\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "BREW" "1" "June 2021" "Homebrew" "brew" +.TH "BREW" "1" "July 2021" "Homebrew" "brew" . .SH "NAME" \fBbrew\fR \- The Missing Package Manager for macOS (or Linux)
true
Other
Homebrew
brew
d50bd605b833d13339c6e5d6f76ed94ecb4f5078.json
components_order: allow ignore_missing_libraries in on_os
Library/Homebrew/rubocops/components_order.rb
@@ -110,7 +110,16 @@ def audit_formula(_node, _class_node, _parent_class_node, body_node) end def check_on_os_block_content(component_precedence_list, on_os_block) - on_os_allowed_methods = %w[depends_on patch resource deprecate! disable! conflicts_with keg_only] + on_os_allowed_me...
false
Other
Homebrew
brew
507fba73c493dc8d05fcd836e1a8f58471fe04d5.json
update command line outputs
Library/Homebrew/cask/cmd/upgrade.rb
@@ -48,8 +48,8 @@ def run *casks, force: args.force?, greedy: args.greedy?, - greedy_latest: args.greedy_latest, - greedy_auto_updates: args.greedy_auto_updates, + greedy_latest: args.greedy_latest?, + greedy_aut...
true
Other
Homebrew
brew
507fba73c493dc8d05fcd836e1a8f58471fe04d5.json
update command line outputs
Library/Homebrew/cmd/outdated.rb
@@ -36,13 +36,13 @@ def outdated_args "formula is outdated. Otherwise, the repository's HEAD will only be checked for "\ "updates when a new stable or development version has been released." switch "--greedy", - description: "Print outdated casks ...
true
Other
Homebrew
brew
366a901fc932ca87d6cdbf5f163a5817ab9e383f.json
Update RBI files for rubocop-rails.
Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.11.2.rbi
@@ -655,6 +655,7 @@ class RuboCop::Cop::Rails::FindBy < ::RuboCop::Cop::Base def autocorrect(corrector, node); end def ignore_where_first?; end + def offense_range(node); end def where_method?(receiver); end end
false
Other
Homebrew
brew
0404da7ba7d22379b236c503d6a87746a848776c.json
superenv: handle formulae with runtime CPU detection Some formulae are able to detect the features of the runtime CPU, and execute code accordingly. This typically entails 1) the detection of features of the build-time CPU in order to determine the targets that the compiler can generate code for, and 2) generating cod...
Library/Homebrew/extend/ENV/super.rb
@@ -91,10 +91,11 @@ def setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_a # g - Enable "-stdlib=libc++" for clang. # h - Enable "-stdlib=libstdc++" for clang. # K - Don't strip -arch <arch>, -m32, or -m64 + # d - Don't strip -march=<target>. Use only in formulae that + # ...
true
Other
Homebrew
brew
0404da7ba7d22379b236c503d6a87746a848776c.json
superenv: handle formulae with runtime CPU detection Some formulae are able to detect the features of the runtime CPU, and execute code accordingly. This typically entails 1) the detection of features of the build-time CPU in order to determine the targets that the compiler can generate code for, and 2) generating cod...
Library/Homebrew/shims/super/cc
@@ -173,10 +173,12 @@ class Cmd case arg when /^-g\d?$/, /^-gstabs\d+/, "-gstabs+", /^-ggdb\d?/, - /^-march=.+/, /^-mtune=.+/, /^-mcpu=.+/, - /^-O[0-9zs]?$/, "-fast", "-no-cpp-precomp", - "-pedantic", "-pedantic-errors", "-Wno-long-double", + /^-mtune=.+/, /^-mcpu=.+/, /^-O[0-9zs]?$/, + ...
true
Other
Homebrew
brew
f634c672de90006eec5ef751183bf497a4179695.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
@@ -11437,83 +11437,6 @@ class Migrator extend ::T::Private::Methods::SingletonMethodHooks end -class MiniPortile - def activate(); end - - def apply_patch(patch_file); end - - def compile(); end - - def configure(); end - - def configure_options(); end - - def configure_options=(configure_options); end - -...
false
Other
Homebrew
brew
128f63db53db07a59d7df19748fc95b34a86f83c.json
reinstall: add support for the --git option
Library/Homebrew/cmd/reinstall.rb
@@ -57,6 +57,9 @@ def reinstall_args env: :display_install_times, description: "Print install times for each formula at the end of the run.", }], + [:switch, "-g", "--git", { + description: "Create a Git repository, useful for creating patches to the software.", + ...
true
Other
Homebrew
brew
128f63db53db07a59d7df19748fc95b34a86f83c.json
reinstall: add support for the --git option
Library/Homebrew/reinstall.rb
@@ -19,7 +19,8 @@ def reinstall_formula( force: false, debug: false, quiet: false, - verbose: false + verbose: false, + git: false ) if formula.opt_prefix.directory? keg = Keg.new(formula.opt_prefix.resolved_path) @@ -44,6 +45,7 @@ def reinstall_formula( build_bottle: ...
true
Other
Homebrew
brew
2342dcd90c6329269baba21fe0b33e76415066c4.json
Add comment to Gemfile about disallowed gems
Library/Homebrew/Gemfile
@@ -2,6 +2,9 @@ source "https://rubygems.org" +# disallowed gems (should not be used) +# * nokogiri - use rexml instead for XML parsing + # installed gems (should all be require: false) gem "bootsnap", require: false gem "byebug", require: false
false
Other
Homebrew
brew
bb463376e8fce26283fd7299642cab7592b79e3c.json
Remove nokogiri from Gemfile
Library/Homebrew/Gemfile
@@ -6,7 +6,6 @@ source "https://rubygems.org" gem "bootsnap", require: false gem "byebug", require: false gem "minitest", require: false -gem "nokogiri", require: false gem "parallel_tests", require: false gem "ronn", require: false gem "rspec", require: false
true
Other
Homebrew
brew
bb463376e8fce26283fd7299642cab7592b79e3c.json
Remove nokogiri from Gemfile
Library/Homebrew/Gemfile.lock
@@ -187,7 +187,6 @@ DEPENDENCIES did_you_mean mechanize minitest - nokogiri parallel_tests patchelf plist
true
Other
Homebrew
brew
d490e2a9a794393d7c706f8273d3121cf1f402a6.json
Fix BuildPulse handling - be more verbose with output to be clear when we're using/submitting to BuildPulse - remove the duplicate BuildPulse submission step
.github/workflows/tests.yml
@@ -333,14 +333,3 @@ jobs: - run: brew test-bot --only-formulae --test-default-formula - uses: codecov/codecov-action@29386c70ef20e286228c72b668a06fd0e8399192 - - - name: Upload test results to BuildPulse for flaky test detection - # Only run this step for non-PR pushes or PRs where where we...
true
Other
Homebrew
brew
d490e2a9a794393d7c706f8273d3121cf1f402a6.json
Fix BuildPulse handling - be more verbose with output to be clear when we're using/submitting to BuildPulse - remove the duplicate BuildPulse submission step
Library/Homebrew/dev-cmd/tests.rb
@@ -50,14 +50,18 @@ def run_buildpulse unless Formula["buildpulse-test-reporter"].any_version_installed? ohai "Installing `buildpulse-test-reporter` for reporting test flakiness..." - safe_system HOMEBREW_BREW_FILE, "install", "buildpulse-test-reporter" + with_env(HOMEBREW_NO_AUTO_UPDATE: "1", H...
true
Other
Homebrew
brew
4433f4a985e92526bd77705039a3dcbb6d128956.json
Sparkle: Update minimumSystemVersion condition
Library/Homebrew/livecheck/strategy/sparkle.rb
@@ -115,7 +115,7 @@ def self.item_from_content(content) next if os && os != "osx" - if OS.mac? && (minimum_system_version = (item > "minimumSystemVersion").first&.text&.strip) + if (minimum_system_version = item.elements["minimumSystemVersion"]&.text&.gsub(/\A\D+|\D+\z/, "")) ...
false
Other
Homebrew
brew
823dc28c2164c6db8842ebdf0fce51443c83baec.json
livecheck/strategy/sparkle: check minimumSystemVersion for compatibility
Library/Homebrew/livecheck/strategy/sparkle.rb
@@ -115,6 +115,16 @@ def self.item_from_content(content) next if os && os != "osx" + if OS.mac? && (minimum_system_version = (item > "minimumSystemVersion").first&.text&.strip) + macos_minimum_system_version = begin + MacOS::Version.new(minimum_system_version).str...
false
Other
Homebrew
brew
cede4a4bd358948b8214e054084c84b849085d9e.json
Update RBI files for activesupport.
Library/Homebrew/sorbet/rbi/gems/activesupport@6.1.4.rbi
@@ -5,11 +5,15 @@ # typed: false module ActiveSupport - extend(::ActiveSupport::LazyLoadHooks) + extend ::ActiveSupport::LazyLoadHooks +end + +module ActiveSupport::BigDecimalWithDefaultFormat + def to_s(format = T.unsafe(nil)); end end module ActiveSupport::Inflector - extend(::ActiveSupport::Inflector) + ...
true
Other
Homebrew
brew
cede4a4bd358948b8214e054084c84b849085d9e.json
Update RBI files for activesupport.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -127,7 +127,7 @@ class ActiveSupport::Cache::FileStore include ::ActiveSupport::Cache::Strategy::LocalCache def cache_path(); end - def initialize(cache_path, options=T.unsafe(nil)); end + def initialize(cache_path, **options); end DIR_FORMATTER = ::T.let(nil, ::T.untyped) FILENAME_MAX_SIZE = ::T.let...
true
Other
Homebrew
brew
a9059239f82d46ec8be996986f8908f5d9708457.json
Update RBI files for rubocop-rails.
Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.11.1.rbi
@@ -655,6 +655,7 @@ class RuboCop::Cop::Rails::FindBy < ::RuboCop::Cop::Base def autocorrect(corrector, node); end def ignore_where_first?; end + def where_method?(receiver); end end RuboCop::Cop::Rails::FindBy::MSG = T.let(T.unsafe(nil), String)
false
Other
Homebrew
brew
3d3b9874f93e30b75d2d1595cb207cd7f03169b9.json
language/python: create venvs with access to system site packages A user may wish to use two use two brew-installed Python packages together. For example, one might want to `import numpy` when using `jupyterlab` or `ptpython`. Currently, the only ways to do this I'm aware of is with some hacking of `PYTHONPATH` or th...
Library/Homebrew/language/python.rb
@@ -218,7 +218,7 @@ def initialize(formula, venv_root, python) def create return if (@venv_root/"bin/python").exist? - @formula.system @python, "-m", "venv", @venv_root + @formula.system @python, "-m", "venv", "--system-site-packages", @venv_root # Robustify symlinks...
true
Other
Homebrew
brew
3d3b9874f93e30b75d2d1595cb207cd7f03169b9.json
language/python: create venvs with access to system site packages A user may wish to use two use two brew-installed Python packages together. For example, one might want to `import numpy` when using `jupyterlab` or `ptpython`. Currently, the only ways to do this I'm aware of is with some hacking of `PYTHONPATH` or th...
Library/Homebrew/test/language/python/virtualenv_spec.rb
@@ -15,7 +15,7 @@ describe "#create" do it "creates a venv" do - expect(formula).to receive(:system).with("python", "-m", "venv", dir) + expect(formula).to receive(:system).with("python", "-m", "venv", "--system-site-packages", dir) virtualenv.create end end
true
Other
Homebrew
brew
7835bcd10b5cdb8ba6235bd6827c70c74638867c.json
UnversionedCaskChecker: Replace Nokogiri with REXML
Library/Homebrew/unversioned_cask_checker.rb
@@ -176,13 +176,13 @@ def guess_cask_version distribution_path = extract_dir/"Distribution" if distribution_path.exist? - Homebrew.install_bundler_gems! - require "nokogiri" + require "rexml/document" - xml = Nokogiri::XML(distribution_pa...
false
Other
Homebrew
brew
282c71d275a5bc11f4bb1f284f82a83742629d26.json
BundleVersion: Replace Nokogiri with REXML
Library/Homebrew/bundle_version.rb
@@ -30,15 +30,15 @@ def self.from_info_plist_content(plist) sig { params(package_info_path: Pathname).returns(T.nilable(T.attached_class)) } def self.from_package_info(package_info_path) - Homebrew.install_bundler_gems! - require "nokogiri" + require "rexml/document" - xml = Nokogiri::...
false
Other
Homebrew
brew
da347ca1aa03c11087f2963d7cc1f160f68812d4.json
Fix duplicate formulae in search results
Library/Homebrew/search.rb
@@ -87,7 +87,7 @@ def search_formulae(string_or_regex) .search(string_or_regex) .sort - results += Formula.fuzzy_search(string_or_regex) + results |= Formula.fuzzy_search(string_or_regex) results.map do |name| formula, canonical_full_name = begin
false
Other
Homebrew
brew
2c4a7ae2cb0cf19cf1542ad7f7a985eb964e5d38.json
Sparkle: Replace Nokogiri with REXML
Library/Homebrew/livecheck/strategy/sparkle.rb
@@ -2,7 +2,6 @@ # frozen_string_literal: true require "bundle_version" -require_relative "page_match" module Homebrew module Livecheck @@ -57,25 +56,50 @@ def self.match?(url) sig { params(content: String).returns(T.nilable(Item)) } def self.item_from_content(content) - Homebrew.i...
false
Other
Homebrew
brew
d304c84f2aa264ca60eaeb3d7848f88198ff1c8c.json
test/utils/github_spec: fix artifact number
Library/Homebrew/test/utils/github_spec.rb
@@ -86,7 +86,7 @@ url = described_class.get_artifact_url( described_class.get_workflow_run("Homebrew", "homebrew-core", 79751, artifact_name: "bottles"), ) - expect(url).to eq("https://api.github.com/repos/Homebrew/homebrew-core/actions/artifacts/69422207/zip") + expect(url).to eq("http...
false
Other
Homebrew
brew
f0cdf61e7846cadd74e9b3c44cfb79556591c145.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/gems/rspec_junit_formatter@0.4.1.rbi
@@ -0,0 +1,8 @@ +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rspec_junit_formatter` 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-...
true
Other
Homebrew
brew
f0cdf61e7846cadd74e9b3c44cfb79556591c145.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
@@ -6695,6 +6695,143 @@ class DevelopmentTools extend ::T::Private::Methods::SingletonMethodHooks end +class DidYouMean::ClassNameChecker + def class_name(); end + + def class_names(); end + + def corrections(); end + + def initialize(exception); end + + def scopes(); end +end + +module DidYouMean::Correctab...
true
Other
Homebrew
brew
d55cbeac789d00c0ce319ee8cb8e67e3d71aac79.json
github_spec: Update PR number with unexpired artifacts
Library/Homebrew/test/utils/github_spec.rb
@@ -77,16 +77,16 @@ it "fails to find artifacts that don't exist" do expect { described_class.get_artifact_url( - described_class.get_workflow_run("Homebrew", "homebrew-core", 51971, artifact_name: "false_bottles"), + described_class.get_workflow_run("Homebrew", "homebrew-core", 7...
false
Other
Homebrew
brew
ee17ab0ee92cdee836d1d767800673b9c8d04501.json
Upload results to BuildPulse for non-PR pushes
.github/workflows/tests.yml
@@ -322,9 +322,9 @@ jobs: - uses: codecov/codecov-action@29386c70ef20e286228c72b668a06fd0e8399192 - name: Upload test results to BuildPulse for flaky test detection - # Only run this step for PRs where where we have access to secrets. + # Only run this step for non-PR pushes or PRs where w...
false
Other
Homebrew
brew
4c57b9d8f84746a362bb46be7b74b6113e319756.json
Gemfile: add did_you_mean gem
Library/Homebrew/Gemfile
@@ -30,6 +30,7 @@ end # vendored gems gem "activesupport" gem "concurrent-ruby" +gem "did_you_mean" # remove when HOMEBREW_REQUIRED_RUBY_VERSION >= 2.7 gem "mechanize" gem "patchelf" gem "plist"
true
Other
Homebrew
brew
4c57b9d8f84746a362bb46be7b74b6113e319756.json
Gemfile: add did_you_mean gem
Library/Homebrew/Gemfile.lock
@@ -20,6 +20,7 @@ GEM highline (~> 2.0.0) concurrent-ruby (1.1.9) connection_pool (2.2.5) + did_you_mean (1.5.0) diff-lcs (1.4.4) docile (1.4.0) domain_name (0.5.20190701) @@ -181,6 +182,7 @@ DEPENDENCIES bootsnap byebug concurrent-ruby + did_you_mean mechanize minites...
true
Other
Homebrew
brew
d455ca937784aa4e1b282579064202cafb780c34.json
search: add fuzzy search results
Library/Homebrew/search.rb
@@ -87,6 +87,8 @@ def search_formulae(string_or_regex) .search(string_or_regex) .sort + results += Formula.fuzzy_search(string_or_regex) + results.map do |name| formula, canonical_full_name = begin f = Formulary.factory(name)
false
Other
Homebrew
brew
7aacda175465d105d1db07e2268782e72a9cbf99.json
formula: add fuzzy_search method
Library/Homebrew/brew.sh
@@ -583,14 +583,11 @@ then # Don't allow non-developers to customise Ruby warnings. unset HOMEBREW_RUBY_WARNINGS - - # Disable Ruby options we don't need. - RUBY_DISABLE_OPTIONS="--disable=did_you_mean,rubyopt" -else - # Don't disable did_you_mean for developers as it's useful. - RUBY_DISABLE_OPTIONS="--dis...
true
Other
Homebrew
brew
7aacda175465d105d1db07e2268782e72a9cbf99.json
formula: add fuzzy_search method
Library/Homebrew/formula.rb
@@ -2,6 +2,7 @@ # frozen_string_literal: true require "cache_store" +require "did_you_mean" require "formula_support" require "lock_file" require "formula_pin" @@ -1671,6 +1672,13 @@ def self.core_alias_reverse_table CoreTap.instance.alias_reverse_table end + # Returns a list of approximately matching...
true
Other
Homebrew
brew
7aacda175465d105d1db07e2268782e72a9cbf99.json
formula: add fuzzy_search method
Library/Homebrew/tap.rb
@@ -127,6 +127,7 @@ def clear_cache @style_exceptions = nil @pypi_formula_mappings = nil @config = nil + @spell_checker = nil remove_instance_variable(:@private) if instance_variable_defined?(:@private) end
true
Other
Homebrew
brew
23f8cb9f4acc83949037ce8f6c95067e9cc49629.json
Sparkle: Handle ArgumentError from Time#parse
Library/Homebrew/livecheck/strategy/sparkle.rb
@@ -75,7 +75,12 @@ def self.item_from_content(content) version ||= (item > "version").first&.text&.strip title = (item > "title").first&.text&.strip - pub_date = (item > "pubDate").first&.text&.strip&.presence&.yield_self { |d| Time.parse(d) } + pub_date = (item > "pubD...
false
Other
Homebrew
brew
e7d3b2cb3116cdd5354c443b0534e50b26ce6113.json
Sparkle: Move default pub_date value
Library/Homebrew/livecheck/strategy/sparkle.rb
@@ -75,7 +75,7 @@ def self.item_from_content(content) version ||= (item > "version").first&.text&.strip title = (item > "title").first&.text&.strip - pub_date = (item > "pubDate").first&.text&.strip&.yield_self { |d| Time.parse(d) } || Time.new(0) + pub_date = (item > "...
false
Other
Homebrew
brew
6720f8bd1e0237a44bbc0f53769a9d232fb19d62.json
repair pub-date in livecheck
Library/Homebrew/livecheck/strategy/sparkle.rb
@@ -75,7 +75,7 @@ def self.item_from_content(content) version ||= (item > "version").first&.text&.strip title = (item > "title").first&.text&.strip - pub_date = (item > "pubDate").first&.text&.strip&.yield_self { |d| Time.parse(d) } + pub_date = (item > "pubDate").first...
false
Other
Homebrew
brew
f9fe62f88368edb838cd14a5f2d2ef7c7e4600b7.json
Update RBI files for rubocop-rails.
Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.11.0.rbi
@@ -4,14 +4,11 @@ # typed: true -module RuboCop -end - -module RuboCop::Cop -end +module RuboCop; end +module RuboCop::Cop; end module RuboCop::Cop::ActiveRecordHelper - extend(::RuboCop::AST::NodePattern::Macros) + extend ::RuboCop::AST::NodePattern::Macros def active_record?(param0 = T.unsafe(nil)); en...
true
Other
Homebrew
brew
f9fe62f88368edb838cd14a5f2d2ef7c7e4600b7.json
Update RBI files for rubocop-rails.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -26789,8 +26789,10 @@ class RuboCop::AST::NodePattern::Parser end module RuboCop::AST::NodePattern::Sets + SET_BEGINNING_OF_DAY_BEGINNING_OF_WEEK_BEGINNING_OF_MONTH_ETC = ::T.let(nil, ::T.untyped) SET_BUILD_RECOMMENDED_TEST_OPTIONAL = ::T.let(nil, ::T.untyped) SET_DEPENDS_ON_USES_FROM_MACOS = ::T.let(nil,...
true
Other
Homebrew
brew
4b126b8cf3c720914c359a7d047969140e9d7255.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
@@ -6234,10 +6234,6 @@ module CopHelper extend ::RSpec::Its end -class CurlDownloadStrategy - include ::AbstractDownloadStrategy::Compat_Fetch -end - class CxxStdlib extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks
false
Other
Homebrew
brew
84e3e0a6b87229067041da4e947ee4f352892b62.json
audit_spec: add tests for audit_conflicts
Library/Homebrew/test/dev-cmd/audit_spec.rb
@@ -1139,5 +1139,58 @@ class FooAT11 < Formula expect(fa.problems).to be_empty end end + + describe "#audit_conflicts" do + specify "it warns when conflicting with non-existing formula" do + fa = formula_auditor "foo", <<~RUBY + class Foo < Formula + url "https://...
false
Other
Homebrew
brew
4c14675021ce399dc64459f94763e2016bc58b41.json
audit: add more checks for conflics_with audit
Library/Homebrew/formula_auditor.rb
@@ -315,7 +315,14 @@ def audit_deps def audit_conflicts formula.conflicts.each do |c| - Formulary.factory(c.name) + conflicting_formula = Formulary.factory(c.name) + problem "Formula should not conflict with itself" if formula == conflicting_formula + + # Use Formula instead of...
false
Other
Homebrew
brew
35e5c8a61248eddaccdf1b674de089bf40a2dc97.json
formula_installer: add fallback to use tap formula The keg formula isn't present in some old bottles. Use the tap formula as a fallback when this is the case.
Library/Homebrew/formula_installer.rb
@@ -1056,9 +1056,11 @@ def post_install # * Installing from a local bottle, or # * The formula doesn't exist in the tap (or the tap isn't installed), or # * The formula in the tap has a different pkg_version. + # # In all other cases, including if the formula from the keg is unreadable - # (th...
false
Other
Homebrew
brew
b9e183c1f5b7bf7e5ddaf771fb9fc88e62f074fc.json
Update RBI files for bindata.
Library/Homebrew/sorbet/rbi/gems/bindata@2.4.10.rbi
@@ -1,13 +1,12 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `bindata` gem. -# Please instead update this file by running `tapioca generate --exclude json`. +# Please instead update this file by running `bin/tapioca sync`. # typed: true module BinData - extend(::BinData:...
false
Other
Homebrew
brew
2a9aaf6da8bd0b1b7ae74da512fd9be0beb399c2.json
Update RBI files for simplecov_json_formatter.
Library/Homebrew/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi
@@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `simplecov_json_formatter` 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
070dcd085f786eed8819aa95d3797f8c6c01777f.json
Update RBI files for docile.
Library/Homebrew/sorbet/rbi/gems/docile@1.4.0.rbi
@@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `docile` 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
6ebadd9d142c6f09be205950b17dbc072cad97db.json
Update RBI files for http-cookie.
Library/Homebrew/sorbet/rbi/gems/http-cookie@1.0.4.rbi
@@ -1,29 +1,28 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `http-cookie` gem. -# Please instead update this file by running `tapioca generate --exclude json`. +# Please instead update this file by running `bin/tapioca sync`. # typed: true -module HTTP -end +module HTTP; ...
false
Other
Homebrew
brew
d4c15a6d9d2d0641491d652285cd1d628bc8d530.json
Version: Add parser for hyphenated filenames
Library/Homebrew/test/version_spec.rb
@@ -479,6 +479,12 @@ specify "version internal dash" do expect(described_class.create("1.1-2")) .to be_detected_from("https://brew.sh/foo-arse-1.1-2.tar.gz") + expect(described_class.create("3.3.04-1")) + .to be_detected_from("https://brew.sh/3.3.04-1.tar.gz") + expect(described_cl...
true
Other
Homebrew
brew
d4c15a6d9d2d0641491d652285cd1d628bc8d530.json
Version: Add parser for hyphenated filenames
Library/Homebrew/version.rb
@@ -417,6 +417,14 @@ def self._parse(spec, detected_from_url:) # e.g. ruby-1.9.1-p243 StemParser.new(/[_-](#{NUMERIC_WITH_DOTS}-(?:p|rc|RC)?\d+)#{CONTENT_SUFFIX}?$/), + # Hyphenated versions without software-name prefix (e.g. brew-) + # e.g. v0.0.8-12.tar.gz + # e.g. 3.3.04-1.tar.gz + # e.g. v2....
true
Other
Homebrew
brew
affa5c9e449266edb7539dd6b846818c435febd3.json
Exclude version audit on CI
.github/workflows/tests.yml
@@ -78,7 +78,7 @@ jobs: run: brew style --display-cop-names homebrew/core - name: Run brew audit --skip-style on all taps - run: brew audit --skip-style --display-failures-only + run: brew audit --skip-style --except=version --display-failures-only - name: Set up all Homebrew ta...
false
Other
Homebrew
brew
b75af5e0dbda7131b365559f929b87b2ac5527dd.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/gems/rubocop@1.17.0.rbi
@@ -2332,6 +2332,7 @@ RuboCop::Cop::Layout::DefEndAlignment::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Layout::DotPosition < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector def on_csend(node); end...
false
Other
Homebrew
brew
13e1457249ce68a158eae72300a3de4f7361c148.json
Consolidate shared install and upgrade logic
Library/Homebrew/install.rb
@@ -5,6 +5,7 @@ require "fileutils" require "hardware" require "development_tools" +require "upgrade" module Homebrew # Helper module for performing (pre-)install checks. @@ -249,20 +250,6 @@ def install_formula( f.print_tap_action build_options = f.build - if !Homebrew::EnvConfig.no_insta...
true
Other
Homebrew
brew
13e1457249ce68a158eae72300a3de4f7361c148.json
Consolidate shared install and upgrade logic
Library/Homebrew/upgrade.rb
@@ -64,6 +64,24 @@ def upgrade_formulae( end end + def outdated_kegs(formula) + [formula, *formula.old_installed_formulae].map(&:linked_keg) + .select(&:directory?) + .map { |k| Keg.new(k.resolved_path) }...
true
Other
Homebrew
brew
2395113154ebd8c68b155635cfaa80033ed1dafa.json
diagnostic: hide some warnings on Apple Silicon. We don't want to complain about either Intel or ARM installations of Homebrew in `brew doctor` so check for/allow both.
Library/Homebrew/diagnostic.rb
@@ -487,7 +487,16 @@ def check_for_config_scripts #{HOMEBREW_PREFIX}/bin #{HOMEBREW_PREFIX}/sbin /Applications/Server.app/Contents/ServerRoot/usr/bin /Applications/Server.app/Contents/ServerRoot/usr/sbin - ].map(&:downcase) + ] + if OS.mac? && Hardware::CPU.physical...
true
Other
Homebrew
brew
2395113154ebd8c68b155635cfaa80033ed1dafa.json
diagnostic: hide some warnings on Apple Silicon. We don't want to complain about either Intel or ARM installations of Homebrew in `brew doctor` so check for/allow both.
Library/Homebrew/extend/os/mac/diagnostic.rb
@@ -316,10 +316,18 @@ def check_for_gettext end if gettext&.linked_keg&.directory? - homebrew_owned = @found.all? do |path| - Pathname.new(path).realpath.to_s.start_with? "#{HOMEBREW_CELLAR}/gettext" + allowlist = ["#{HOMEBREW_CELLAR}/gettext"] + if Hardware::CP...
true
Other
Homebrew
brew
b9d64fed4de6500e376e58a36596f9dffb22224b.json
formula_installer: restrict use of Formula from Keg
Library/Homebrew/formula_installer.rb
@@ -1076,10 +1076,30 @@ def post_install #{HOMEBREW_LIBRARY_PATH}/postinstall.rb ] - args << if formula.local_bottle_path.present? - formula.prefix/".brew/#{formula.name}.rb" - else - formula.path + keg_formula_path = formula.opt_prefix/".brew/#{formula.name}.rb" + tap_formula_path =...
false
Other
Homebrew
brew
f0601e91bc6bbd9abbc5cf76acfd6685aabc5239.json
Change outdated message
Library/Homebrew/install.rb
@@ -254,7 +254,7 @@ def install_formula( version_upgrade = "#{f.linked_version} -> #{f.pkg_version}" oh1 <<~EOS - #{f.name} #{f.linked_version} is installed and outdated + #{f.name} #{f.linked_version} is installed but outdated Upgrading #{Formatter.identifier(f.name)}...
false
Other
Homebrew
brew
48641f3a3a0423004a7e6f8bae931e752b534f28.json
Fix method typo
Library/Homebrew/install.rb
@@ -258,7 +258,7 @@ def install_formula( Upgrading #{Formatted.identifier(f.name)} #{version_upgrade} EOS outdated_kegs = outdated_formulae.map(&:linked_keg).select(&:directory?).map { |k| Keg.new(k.resolved_path) } - linked_kegs = outdated_kegs.select(&:linked) + linked_keg...
false
Other
Homebrew
brew
a998c364f4394b30ca45f7e100c51652d26389d6.json
Reduce potential modifications to frozen string
Library/Homebrew/requirement.rb
@@ -142,8 +142,8 @@ def mktemp(&block) def infer_name klass = self.class.name || self.class.to_s - klass.sub!(/(Dependency|Requirement)$/, "") - klass.sub!(/^(\w+::)*/, "") + klass = klass.sub(/(Dependency|Requirement)$/, "") + klass = klass.sub(/^(\w+::)*/, "") return klass.downcase if klass...
false
Other
Homebrew
brew
a4e6edea5bbf33df0874b7d5f26e4e3213cad5c5.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
@@ -6991,11 +6991,6 @@ class Enumerator::Generator def initialize(*_); end end -module EnvVar - extend ::T::Private::Methods::MethodHooks - extend ::T::Private::Methods::SingletonMethodHooks -end - class Errno::EAUTH Errno = ::T.let(nil, ::T.untyped) end @@ -8392,11 +8387,6 @@ class Homebrew::Service ex...
false
Other
Homebrew
brew
1ee0c1987eb5b94c117a05fc928193d2c74804e5.json
Skip unlinking if `HOMEBREW_NO_INSTALL_UPGRADE`
Library/Homebrew/cmd/install.rb
@@ -396,7 +396,7 @@ def install_formula(f, args:) f.print_tap_action build_options = f.build - if f.outdated? && !f.head? + if !Homebrew::EnvConfig.no_install_upgrade? && f.outdated? && !f.head? formulae = [f] + f.old_installed_formulae version_upgrade = "#{f.linked_version} -> #{f.pkg_v...
false
Other
Homebrew
brew
a0dfe4aa180f602af0c4b5ed6d9c0ffd315dbc6d.json
formula_installer: use formula from Keg for local bottle installs Use the formula file from the Keg if `local_bottle_install` is set, which means that the formula file from the tap is used for `-s`, `--HEAD` and normal installs but the formula file present within formula.prefix/".brew" is used for local bottle install...
Library/Homebrew/formula_installer.rb
@@ -1074,9 +1074,14 @@ def post_install -I #{$LOAD_PATH.join(File::PATH_SEPARATOR)} -- #{HOMEBREW_LIBRARY_PATH}/postinstall.rb - #{formula.path} ] + args << if formula.local_bottle_path.present? + formula.prefix/".brew/#{formula.name}.rb" + else + formula.path + end +...
false
Other
Homebrew
brew
0735eba995a1b35d14fbba8f41553d96b2fa14f7.json
formula_installer: improve support for local bottle installs
Library/Homebrew/formula_installer.rb
@@ -404,7 +404,7 @@ def install options = display_options(formula).join(" ") oh1 "Installing #{Formatter.identifier(formula.full_name)} #{options}".strip if show_header? - unless formula.tap&.private? + if formula.tap&.installed? && !formula.tap&.private? action = "#{formula.full_name} #{option...
true
Other
Homebrew
brew
0735eba995a1b35d14fbba8f41553d96b2fa14f7.json
formula_installer: improve support for local bottle installs
Library/Homebrew/tab.rb
@@ -39,11 +39,11 @@ def self.create(formula, compiler, stdlib) "runtime_dependencies" => Tab.runtime_deps_hash(formula, runtime_deps), "arch" => Hardware::CPU.arch, "source" => { - "path" => formula.specified_path.to_s, - "tap" =...
true