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 | 532460c098d7417a7477f7f54e790133880e8d26.json | keg_relocate: fix new GCC lib directory
Also add comment explaining what this line does, along with a TODO
suggesting a replacement once we've shipped the GCC PR. | Library/Homebrew/extend/os/linux/keg_relocate.rb | @@ -32,7 +32,13 @@ def change_rpath(file, old_prefix, new_prefix)
lib_path = "#{new_prefix}/lib"
rpath << lib_path unless rpath.include? lib_path
- rpath.prepend HOMEBREW_PREFIX/"opt/gcc/lib/current" if rpath.any? { |rp| rp.match?(%r{lib/gcc/\d+$}) }
+
+ # Add GCC's lib directory (as of GCC 12... | false |
Other | Homebrew | brew | 41a526546661f400011d0ea56f7daa60cec458af.json | Improve messaging of debug source location | Library/Homebrew/mktemp.rb | @@ -29,6 +29,11 @@ def retain?
@retain
end
+ # True if the source files should be retained.
+ def retain_in_sources?
+ @retain_in_sources
+ end
+
# Instructs this Mktemp to not emit messages when retention is triggered.
sig { void }
def quiet!
@@ -73,7 +78,10 @@ def run
ignore_interrupts... | false |
Other | Homebrew | brew | b2d94dc897f25083cddb994c9b981834d9df6fd0.json | update arg names in docs and signature | Library/Homebrew/formula.rb | @@ -1625,18 +1625,19 @@ def extract_macho_slice_from(file, arch = Hardware::CPU.arch)
end
private :extract_macho_slice_from
- # Generate shell completions for a formula for bash, zsh, and fish, using the formula's binary.
+ # Generate shell completions for a formula for bash, zsh, and fish, using the formula'... | false |
Other | Homebrew | brew | 7d1197e8eb938f30c3db9a8754c5557a8c08ed5c.json | audit_glibc: Permit glibc 2.27, 2.31, or 2.35 | Library/Homebrew/formula_auditor.rb | @@ -411,7 +411,8 @@ def audit_postgresql
def audit_glibc
return unless @core_tap
- return if formula.name != "glibc" || [OS::CI_GLIBC_VERSION, "2.35"].include?(formula.version.to_s)
+ return if formula.name != "glibc"
+ return if [OS::CI_GLIBC_VERSION, "2.27", "2.31", "2.35"].include?(formu... | false |
Other | Homebrew | brew | 1ac5fc05bd4c46c5f5812428790f465f531dec4e.json | audit_glibc: Permit glibc 2.35
See https://github.com/Homebrew/brew/issues/13619 | Library/Homebrew/formula_auditor.rb | @@ -411,7 +411,7 @@ def audit_postgresql
def audit_glibc
return unless @core_tap
- return if formula.name != "glibc" || formula.version.to_s == OS::CI_GLIBC_VERSION
+ return if formula.name != "glibc" || [OS::CI_GLIBC_VERSION, "2.35"].include?(formula.version.to_s)
problem "The glibc ve... | false |
Other | Homebrew | brew | 291eacd4825273693f0ce117e3076d7bb1b2ae9f.json | audit_glibc: Fix the error message
"The glibc version must be 2.35" should have read
"The glibc version must be 2.23". | Library/Homebrew/formula_auditor.rb | @@ -410,13 +410,10 @@ def audit_postgresql
end
def audit_glibc
- return if formula.name != "glibc"
return unless @core_tap
+ return if formula.name != "glibc" || formula.version.to_s == OS::CI_GLIBC_VERSION
- version = formula.version.to_s
- return if version == OS::CI_GLIBC_VER... | false |
Other | Homebrew | brew | c42169249e6dce5eb39239eb314873977ba9e57b.json | cmd/update: stop fsmonitor after all Git operations complete
Also, skip the status check, as that doesn't really help us. | Library/Homebrew/cmd/update.sh | @@ -556,12 +556,6 @@ EOS
[[ -d "${DIR}/.git" ]] || continue
cd "${DIR}" || continue
- # Git's fsmonitor daemon will not release our lock unless we stop it.
- if git fsmonitor--daemon status &>/dev/null
- then
- git fsmonitor--daemon stop 2>/dev/null
- fi
-
if ! git config --local --get... | false |
Other | Homebrew | brew | dff3fc9d2f9db62ec555e75b7902e699a828c6a4.json | fix symbol in SHELL env | Library/Homebrew/formula.rb | @@ -1664,7 +1664,7 @@ def generate_completions_from_executable(base_name: name,
end
script_path.dirname.mkpath
- script_path.write Utils.safe_popen_read({ "SHELL" => shell }, executable, cmd, shell_parameter)
+ script_path.write Utils.safe_popen_read({ "SHELL" => shell.to_s }, executable, cmd,... | false |
Other | Homebrew | brew | 91065b9ddd24bcc3c279b1b120ec34a2b3810f8b.json | Improve flag passing for debug-symbols | Library/Homebrew/formula_installer.rb | @@ -879,9 +879,11 @@ def sanitized_argv_options
args << "--debug" if debug?
args << "--cc=#{@cc}" if @cc
args << "--keep-tmp" if keep_tmp?
- args << "--debug-symbols" if debug_symbols?
- # Avoids dependecy error on flag
- args << "--build-from-source" if build_from_source? && debug_symbols?
+
+ ... | false |
Other | Homebrew | brew | f4cb9a40a6d5f14659b337beedfd6b537fb14e31.json | remove macos specific dummy call
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> | Library/Homebrew/keg.rb | @@ -533,8 +533,6 @@ def binary_executable_or_library_files
def codesign_patched_binary(file); end
- def dsymutil_binary(file); end
-
private
def resolve_any_conflicts(dst, dry_run: false, verbose: false, overwrite: false) | false |
Other | Homebrew | brew | 2d4c792b0b6e74c06b9bc58ec93dbce50e89b67e.json | Make one function | Library/Homebrew/extend/os/mac/keg.rb | @@ -64,19 +64,17 @@ def codesign_patched_binary(file)
end
def dsymutil
- binary_executable_or_library_files.each { |file| dsymutil_binary(file) }
- end
-
- def dsymutil_binary(file)
- odebug "Extracting symbols #{file}"
+ binary_executable_or_library_files.each do |file|
+ odebug "Extracting sym... | false |
Other | Homebrew | brew | d5d6456b24ac675dcf9a340b31cd9c987327c651.json | Add checks for `on_system` method | Library/Homebrew/rubocops/lines.rb | @@ -382,18 +382,40 @@ class OnSystemConditionals < FormulaCop
NO_ON_SYSTEM_METHOD_NAMES = [:install, :post_install].freeze
NO_ON_SYSTEM_BLOCK_NAMES = [:service, :test].freeze
+ ON_ARCH_OPTIONS = [:intel, :arm].freeze
+ ON_BASE_OS_OPTIONS = [:macos, :linux].freeze
+ ON_MACOS_VERS... | true |
Other | Homebrew | brew | d5d6456b24ac675dcf9a340b31cd9c987327c651.json | Add checks for `on_system` method | Library/Homebrew/rubocops/lines.rbi | @@ -7,6 +7,9 @@ module RuboCop
sig { params(node: T.any, on_method: Symbol, block: T.proc.params(parameters: T::Array[T.any]).void).void }
def on_macos_version_method_call(node, on_method:, &block); end
+ sig { params(node: T.any, block: T.proc.params(macos_symbol: Symbol).void).void }
+ ... | true |
Other | Homebrew | brew | d5d6456b24ac675dcf9a340b31cd9c987327c651.json | Add checks for `on_system` method | Library/Homebrew/test/rubocops/text/on_system_conditionals_spec.rb | @@ -315,7 +315,7 @@ class Foo < Formula
class Foo < Formula
desc "foo"
if MacOS.version <= :monterey
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Don't use `if MacOS.version <= :monterey`, use `on_monterey :or_older do` instead.
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Don't use `if MacOS.ver... | true |
Other | Homebrew | brew | 7392f9811e6c5a03038b336d9560c6fa1d76682d.json | `Formulary`: use variations hash when installing from API | Library/Homebrew/formulary.rb | @@ -136,6 +136,11 @@ def self.load_formula_from_api(name, flags:)
class_s = Formulary.class_s(name)
json_formula = Homebrew::API::Formula.all_formulae[name]
+ bottle_tag = Utils::Bottles.tag.to_s
+ if json_formula.key?("variations") && json_formula["variations"].key?(bottle_tag)
+ json_formula = ... | true |
Other | Homebrew | brew | 7392f9811e6c5a03038b336d9560c6fa1d76682d.json | `Formulary`: use variations hash when installing from API | Library/Homebrew/test/formulary_spec.rb | @@ -260,6 +260,16 @@ def formula_json_contents(extra_items = {})
}
end
+ let(:variations_json) do
+ {
+ "variations" => {
+ Utils::Bottles.tag.to_s => {
+ "dependencies" => ["dep", "variations_dep"],
+ },
+ },
+ }
+ end
+
... | true |
Other | Homebrew | brew | 92bccd2074e7278e3bc71cd2f4c4c92b4b103875.json | apply naming suggestions | Library/Homebrew/formula.rb | @@ -1638,11 +1638,11 @@ def extract_macho_slice_from(file, arch = Hardware::CPU.arch)
params(base_name: String, shells: T::Array[Symbol], binary: Pathname, cmd: String,
shell_prefix: T.nilable(T.any(Symbol, String))).void
}
- def generate_completions(base_name: name,
- she... | false |
Other | Homebrew | brew | ebf52091eb372171f529aff3324b6eb3af59c9c5.json | Check only formulas with resources | Library/Homebrew/dev-cmd/livecheck.rb | @@ -70,8 +70,8 @@ def livecheck
casks = args.formula? ? [] : Cask::Caskroom.casks
formulae + casks
elsif args.resources?
- livecheckable_resources = Formula.all.map { |formula| formula.resources }.flatten.filter{ |resource| resource.livecheckable? }
- livecheckable_resources
+ formula_... | false |
Other | Homebrew | brew | e1f5fc7e69d8753f172a90886d4ae50ef43631b4.json | Update RBI files for rubocop. | Library/Homebrew/sorbet/rbi/gems/rubocop@1.32.0.rbi | @@ -3157,13 +3157,15 @@ class RuboCop::Cop::Layout::LineContinuationLeadingSpace < ::RuboCop::Cop::Base
private
def continuation?(line); end
- def investigate(first_line, second_line, range_start); end
- def offense_range(range_start, matches); end
+ def enforced_style_leading?; end
+ def investigate_leadin... | false |
Other | Homebrew | brew | 243ff024e3944dedceb0d64712869385fc965d89.json | Remove debug message | Library/Homebrew/cmd/info.rb | @@ -222,7 +222,6 @@ def print_json(args:)
if args.bottle?
{ "formulae" => formulae.map(&:to_recursive_bottle_hash) }
elsif args.variations?
- opoo "a"
{
"formulae" => formulae.map(&:to_hash_with_variations),
"casks" => casks.map(&:to_hash_with_variations), | false |
Other | Homebrew | brew | 9f27bd4c678eb6f110744860a12fa42fae338e3b.json | simplify cached_formula_json_file check | Library/Homebrew/api/formula.rb | @@ -30,10 +30,8 @@ def fetch(name)
def all_formulae
@all_formulae ||= begin
curl_args = %w[--compressed --silent https://formulae.brew.sh/api/formula.json]
- if cached_formula_json_file.exist?
- last_modified = cached_formula_json_file.mtime.utc
- la... | false |
Other | Homebrew | brew | db9a878ef0679975a408c425dfb4e394be4397f4.json | Update RBI files for tzinfo. | Library/Homebrew/sorbet/rbi/gems/tzinfo@2.0.5.rbi | @@ -4,7 +4,11 @@
# This is an autogenerated file for types exported from the `tzinfo` gem.
# Please instead update this file by running `bin/tapioca gem tzinfo`.
-module TZInfo; end
+module TZInfo
+ class << self
+ def eager_load!; end
+ end
+end
class TZInfo::AbsoluteDayOfYearTransitionRule < ::TZInfo::Day... | false |
Other | Homebrew | brew | 7a247fd52d1769797d578d23bdc4e1071f0304dd.json | shims/super/cc: add -nostdinc in cppflags | Library/Homebrew/shims/super/cc | @@ -292,8 +292,6 @@ class Cmd
args.concat(optflags) unless runtime_cpu_detection?
args.concat(archflags)
args << "-std=#{@arg0}" if /c[89]9/.match?(@arg0)
- # Add -nostdinc when building against glibc@2.13 to avoid mixing system and brewed glibc headers.
- args << "-nostdinc" if @deps.include?("gli... | false |
Other | Homebrew | brew | 8993ebca88e6462502d2bddae5393c54ba876a3d.json | use --time-cond when caching the formula api json | Library/Homebrew/api/formula.rb | @@ -33,7 +33,7 @@ def all_formulae
if cached_formula_json_file.exist?
last_modified = cached_formula_json_file.mtime.utc
last_modified = last_modified.strftime("%a, %d %b %Y %H:%M:%S GMT")
- curl_args = ["--header", "If-Modified-Since: #{last_modified}", *curl_arg... | false |
Other | Homebrew | brew | 95fc1e41b95f981f926a2b351374af1eb2bc8e2a.json | Remove reference to Travis bot | docs/Cask-Cookbook.md | @@ -108,7 +108,7 @@ cask "<cask-token>" do
[`<cask-token>`](#token-reference) should match the Cask filename, without the `.rb` extension,
enclosed in single quotes.
-There are currently some arbitrary limitations on Cask tokens which are in the process of being removed. The Travis bot will catch any errors during ... | false |
Other | Homebrew | brew | f387c7f0b24d83bebe0fc38cc0d3f74af1fd8e85.json | Require deprecate_disable module in formulary
This solves a recurrent issue where various brew commands (e.g. doctor,
cleanup) would print the following stack trace:
Error: uninitialized constant Formulary::DeprecateDisable
Did you mean? DeprecatedOption
/opt/homebrew/Library/Homebrew/formulary.rb:269:in... | Library/Homebrew/formulary.rb | @@ -264,6 +264,7 @@ def self.convert_to_string_or_symbol(string)
end
def self.convert_to_deprecate_disable_reason_string_or_symbol(string)
+ require "deprecate_disable"
return string unless DeprecateDisable::DEPRECATE_DISABLE_REASONS.keys.map(&:to_s).include?(string)
string.to_sym | false |
Other | Homebrew | brew | 94138c0848d586fbe9c76327a45069036642b0fb.json | Ignore empty `patch` blocks | Library/Homebrew/software_spec.rb | @@ -205,6 +205,8 @@ def recursive_requirements
def patch(strip = :p1, src = nil, &block)
p = Patch.create(strip, src, &block)
+ return if p.is_a?(ExternalPatch) && p.url.blank?
+
dependency_collector.add(p.resource) if p.is_a? ExternalPatch
patches << p
end | true |
Other | Homebrew | brew | 94138c0848d586fbe9c76327a45069036642b0fb.json | Ignore empty `patch` blocks | Library/Homebrew/test/software_spec_spec.rb | @@ -171,5 +171,12 @@
expect(spec.patches.count).to eq(1)
expect(spec.patches.first.strip).to eq(:p1)
end
+
+ it "doesn't add a patch with no url" do
+ spec.patch do
+ sha256 "7852a7a365f518b12a1afd763a6a80ece88ac7aeea3c9023aa6c1fe46ac5a1ae"
+ end
+ expect(spec.patches.empty?)... | true |
Other | Homebrew | brew | 114f909ff99d7ef0529be9e03ee27d220c4232c9.json | Update RBI files for rubocop-performance. | Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi | @@ -6,6 +6,7 @@
module RuboCop; end
module RuboCop::Cop; end
+RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern
module RuboCop::Cop::Performance; end
class RuboCop::Cop::Performance::AncestorsInclude < ::RuboCop::Cop::Base | false |
Other | Homebrew | brew | e61bcb45f7490706846b295d30080db3ece1d165.json | linkage_checker: report linkage with system frameworks
Currently, `brew linkage` reports linkage with system frameworks only if
they can be found on the file system. This results in this linkage not
being reported on Big Sur and newer, where system libraries are stored
in the dyld cache instead.
Let's fix that by avo... | Library/Homebrew/linkage_checker.rb | @@ -198,7 +198,7 @@ def check_dylibs(rebuild_cache:)
# In macOS Big Sur and later, system libraries do not exist on-disk and instead exist in a cache.
# If dlopen finds the dylib, then the linkage is not broken.
@system_dylibs << dylib
- else
+ elsif !system_fram... | false |
Other | Homebrew | brew | 6ab6382518fd1b46869f035d1665bdd707df9d1f.json | shims/super/cc: add nostdinc and rpath-link when using glibc@2.13 | Library/Homebrew/shims/super/cc | @@ -292,6 +292,8 @@ class Cmd
args.concat(optflags) unless runtime_cpu_detection?
args.concat(archflags)
args << "-std=#{@arg0}" if /c[89]9/.match?(@arg0)
+ # Add -nostdinc when building against glibc@2.13 to avoid mixing system and brewed glibc headers.
+ args << "-nostdinc" if @deps.include?("gli... | false |
Other | Homebrew | brew | 8ef6118ba06a5ae45b11681829cd925e424f92a8.json | Work in progress: Fetch all resources with livecheck block | Library/Homebrew/dev-cmd/livecheck.rb | @@ -73,10 +73,12 @@ def livecheck
resources = Formula.all do |formula|
formula.resources.any do |resource|
if resource.livecheckable?
- p resource
+ resource
end
end
+ # formula.resources.filter? { |resource| !resource.livecheckable? }
e... | false |
Other | Homebrew | brew | 59165ed3ec78466b0536f347dcbeb60cde7587cc.json | Get all resources in all formulae | Library/Homebrew/dev-cmd/livecheck.rb | @@ -69,6 +69,14 @@ def livecheck
formulae = args.cask? ? [] : Formula.installed
casks = args.formula? ? [] : Cask::Caskroom.casks
formulae + casks
+ elsif args.resources?
+ resources = Formula.all do |formula|
+ formula.resources.any do |resource|
+ if resource.livecheckable... | false |
Other | Homebrew | brew | 95f4eb048282bc4bab3df403ac5878182a1d9c0d.json | Update RBI files for i18n. | Library/Homebrew/sorbet/rbi/gems/i18n@1.12.0.rbi | @@ -333,10 +333,6 @@ module I18n::Backend::Pluralization
def pluralizer(locale); end
def pluralizers; end
-
- private
-
- def symbolic_count(count); end
end
class I18n::Backend::Simple | false |
Other | Homebrew | brew | 672668f6c198f2fc4308058b8a3bacdafee24442.json | Update RBI files for sorbet-static-and-runtime. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -4356,6 +4356,8 @@ class Resource
def on_sierra(or_condition=T.unsafe(nil), &block); end
+ def on_system(linux, macos:, &block); end
+
def on_ventura(or_condition=T.unsafe(nil), &block); end
end
| false |
Other | Homebrew | brew | 5056b1ec0ae384be2abc7730c19fe53096aac422.json | Update RBI files for activesupport. | Library/Homebrew/sorbet/rbi/gems/activesupport@6.1.6.1.rbi | @@ -2784,6 +2784,7 @@ end
module ActiveSupport::VERSION; end
ActiveSupport::VERSION::MAJOR = T.let(T.unsafe(nil), Integer)
ActiveSupport::VERSION::MINOR = T.let(T.unsafe(nil), Integer)
+ActiveSupport::VERSION::PRE = T.let(T.unsafe(nil), String)
ActiveSupport::VERSION::STRING = T.let(T.unsafe(nil), String)
ActiveSu... | true |
Other | Homebrew | brew | 5056b1ec0ae384be2abc7730c19fe53096aac422.json | Update RBI files for activesupport. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -24,10 +24,6 @@ module ActiveSupport::ForkTracker::CoreExtPrivate
include ::ActiveSupport::ForkTracker::CoreExt
end
-module ActiveSupport::VERSION
- PRE = ::T.let(nil, ::T.untyped)
-end
-
class Addrinfo
def connect_internal(local_addrinfo, timeout=T.unsafe(nil)); end
end | true |
Other | Homebrew | brew | ee68f813d812dd7e04efd500a138525752017c32.json | cask/cmd/list_spec.rb: fix leaky version variable
The lazy evaluation in let() was failing to reset MacOS#full_version
to the original_macos_version. This meant that all tests run after
this one automatically had MacOS#version == 12 which caused some
of the tests to fail if you were running a different macOS version. | Library/Homebrew/test/cask/cmd/list_spec.rb | @@ -246,7 +246,7 @@
]
EOS
}
- let(:original_macos_version) { MacOS.full_version.to_s }
+ let!(:original_macos_version) { MacOS.full_version.to_s }
before do
# Use a more limited symbols list to shorten the variations hash | false |
Other | Homebrew | brew | 29a25eb7f5ba8ca82be05ebc009351df425e3879.json | Update RBI files for i18n. | Library/Homebrew/sorbet/rbi/gems/i18n@1.11.0.rbi | @@ -154,7 +154,7 @@ module I18n::Backend::Fallbacks
private
- def on_fallback(_original_locale, _fallback_locale, _key, _optoins); end
+ def on_fallback(_original_locale, _fallback_locale, _key, _options); end
end
module I18n::Backend::Flatten
@@ -333,6 +333,10 @@ module I18n::Backend::Pluralization
d... | false |
Other | Homebrew | brew | 0ba342676d4af17097e1adaf3652b876090aed2b.json | Update RBI files for rubocop-ast. | Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.19.1.rbi | @@ -1391,7 +1391,6 @@ RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR = T.l
RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR_ATTR = T.let(T.unsafe(nil), Set)
RuboCop::AST::NodePattern::Sets::SET_BACKGROUND_SCENARIO_XSCENARIO_ETC = T.let(T.unsafe(nil), Set)
RuboCop... | true |
Other | Homebrew | brew | 0ba342676d4af17097e1adaf3652b876090aed2b.json | Update RBI files for rubocop-ast. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -4959,16 +4959,9 @@ end
module RuboCop::AST::NodePattern::Sets
SET_BUILD_RECOMMENDED_TEST_OPTIONAL = ::T.let(nil, ::T.untyped)
SET_DEPENDS_ON_USES_FROM_MACOS = ::T.let(nil, ::T.untyped)
- SET_EXIST_EXISTS = ::T.let(nil, ::T.untyped)
- SET_FILETEST_FILE_DIR_SHELL = ::T.let(nil, ::T.untyped)
SET_INCLUDE_WI... | true |
Other | Homebrew | brew | 5e5c78ebef173099754d2facb0c3b0691dee9334.json | Fix tests and improve style | Library/Homebrew/extend/on_system.rb | @@ -93,7 +93,7 @@ def setup_base_os_methods(base)
base.define_method(:on_system) do |linux, macos:, &block|
@on_system_blocks_exist = true
- raise ArgumentError, "The first argument to `on_system` must be `:linux`" unless linux == :linux
+ raise ArgumentError, "The first argument to `on_system` ... | true |
Other | Homebrew | brew | 5e5c78ebef173099754d2facb0c3b0691dee9334.json | Fix tests and improve style | Library/Homebrew/test/formula_spec.rb | @@ -1604,35 +1604,35 @@ def install
end.new
end
- it "doesn't call code on Ventura" do
+ it "doesn't call code on Ventura", :needs_macos do
Homebrew::SimulateSystem.os = :ventura
f.brew { f.install }
expect(f.foo).to eq(0)
expect(f.bar).to eq(0)
end
- it "calls ... | true |
Other | Homebrew | brew | 3483ee72d5cb5f3cadbab06a6f13c7c859125f9d.json | add DSL to generate completions | Library/Homebrew/formula.rb | @@ -1625,6 +1625,21 @@ def extract_macho_slice_from(file, arch = Hardware::CPU.arch)
end
private :extract_macho_slice_from
+ def generate_completions(base_name = name, shells = [:bash, :zsh, :fish], binary = bin/base_name, cmd = "completion", shell_as_flag = false)
+ completion_script_path_map = {
+ :b... | false |
Other | Homebrew | brew | 3cedf8c7bffcad5a69e9974389389a668d47fe80.json | Update RBI files for rubocop. | Library/Homebrew/sorbet/rbi/gems/rubocop@1.31.2.rbi | @@ -861,6 +861,7 @@ end
RuboCop::Cop::Bundler::DuplicatedGem::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Bundler::GemComment < ::RuboCop::Cop::Base
+ include ::RuboCop::Cop::VisibilityHelp
include ::RuboCop::Cop::DefNode
include ::RuboCop::Cop::GemDeclaration
@@ -1336,6 +1337,7 @@ end
RuboCop:... | false |
Other | Homebrew | brew | da4bf679def7fee08f3856c35130a90ed8ea240a.json | Add new line after donate message | Library/Homebrew/cmd/update-report.rb | @@ -106,7 +106,7 @@ def output_update_report
if Settings.read("donationmessage") != "true" && !args.quiet?
ohai "Homebrew is run entirely by unpaid volunteers. Please consider donating:"
- puts " #{Formatter.url("https://github.com/Homebrew/brew#donations")}\n"
+ puts " #{Formatter.url("https:... | false |
Other | Homebrew | brew | b878d9c1ca3a25429f4ad6501a4f4636978d4cc7.json | Highlight new revision message | Library/Homebrew/cmd/update-report.rb | @@ -135,7 +135,7 @@ def output_update_report
Settings.write "latesttag", new_tag if new_tag != old_tag
if new_tag == old_tag
- puts "Updated Homebrew from #{shorten_revision(initial_revision)} to #{shorten_revision(current_revision)}."
+ ohai "Updated Homebrew from #{shorten_revision(initi... | false |
Other | Homebrew | brew | a25f827b8fb88a0f61872b95d408f7d58e3fdaf4.json | Report new_tag even when old_tag blank | Library/Homebrew/cmd/update-report.rb | @@ -134,8 +134,11 @@ def output_update_report
Settings.write "latesttag", new_tag if new_tag != old_tag
- if old_tag.blank? || (new_tag == old_tag)
+ if new_tag == old_tag
puts "Updated Homebrew from #{shorten_revision(initial_revision)} to #{shorten_revision(current_revision)}."
+ el... | false |
Other | Homebrew | brew | 700e2f19f108ab3b354d939352921952247be6b2.json | Expand output excluded by quiet | Library/Homebrew/cmd/update-report.rb | @@ -236,7 +236,7 @@ def output_update_report
EOS
end
- return if new_tag.blank? || new_tag == old_tag
+ return if new_tag.blank? || new_tag == old_tag || args.quiet?
puts
ohai "Homebrew was updated to version #{new_tag}"
@@ -245,7 +245,7 @@ def output_update_report
More detailed... | false |
Other | Homebrew | brew | a94f6ec50c5bc27bcd5b13e134462bebe6e3e347.json | Update latesttag in all cases
Set latesttag before it is bypassed by return statement and old_tag
being blank. | Library/Homebrew/cmd/update-report.rb | @@ -132,6 +132,8 @@ def output_update_report
"git", "-C", HOMEBREW_REPOSITORY, "tag", "--list", "--sort=-version:refname", "*.*"
).lines.first.chomp
+ Settings.write "latesttag", new_tag if new_tag != old_tag
+
if old_tag.blank? || (new_tag == old_tag)
puts "Updated Homebrew from ... | false |
Other | Homebrew | brew | ae2196fa57498ba0edad7f43fe0d3d9fa8993468.json | Use x_tag instead of x_repository_version | Library/Homebrew/cmd/update-report.rb | @@ -115,7 +115,7 @@ def output_update_report
install_core_tap_if_necessary
updated = false
- new_repository_version = nil
+ new_tag = nil
initial_revision = ENV["HOMEBREW_UPDATE_BEFORE"].to_s
current_revision = ENV["HOMEBREW_UPDATE_AFTER"].to_s
@@ -135,7 +135,6 @@ def output_update_report
... | false |
Other | Homebrew | brew | 2769b953b4f6b71fb0d080c9df81d36c1aceeec5.json | Update RBI files for rubocop-rails. | Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.15.2.rbi | @@ -510,6 +510,7 @@ RuboCop::Cop::Rails::DefaultScope::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Rails::DefaultScope::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Rails::Delegate < ::RuboCop::Cop::Base
+ include ::RuboCop::Cop::VisibilityHelp
extend ::RuboCop::Cop::AutoCorrector
... | false |
Other | Homebrew | brew | ed1324c9ca3115184b270baa8e46259a3490a6cc.json | add pax to allowlist | Library/Homebrew/rubocops/uses_from_macos.rb | @@ -43,6 +43,7 @@ class ProvidedByMacos < FormulaCop
net-snmp
netcat
openldap
+ pax
pcsc-lite
pod2man
rpcgen | false |
Other | Homebrew | brew | 0b50be78d96556b60807252e873d90871d44ebe9.json | Update RBI files for minitest. | Library/Homebrew/sorbet/rbi/gems/minitest@5.16.2.rbi | @@ -293,7 +293,7 @@ class Minitest::Test < ::Minitest::Runnable
def capture_exceptions; end
def class_name; end
def neuter_exception(e); end
- def new_exception(klass, msg, bt); end
+ def new_exception(klass, msg, bt, kill = T.unsafe(nil)); end
def run; end
def sanitize_exception(e); end
def with_in... | false |
Other | Homebrew | brew | 286eee7dc47890f284979763cdcabb2e285b2fd0.json | Update RBI files for rubocop-rspec. | Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.12.1.rbi | @@ -6,6 +6,7 @@
module RuboCop; end
module RuboCop::Cop; end
+RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern
module RuboCop::Cop::RSpec; end
class RuboCop::Cop::RSpec::AlignLeftLetBrace < ::RuboCop::Cop::RSpec::Base
@@ -167,6 +168,22 @@ end
RuboCop::Cop::RSpec::Capybara::FeatureMethods::MAP = T.le... | false |
Other | Homebrew | brew | e69345b9421aa3e884c10d6b5213a6a10a8c301c.json | Update livecheck_resource test values | Library/Homebrew/test/resource_spec.rb | @@ -9,12 +9,12 @@
let(:livecheck_resource) {
described_class.new do
- url "https://brew.sh/test-0.0.1.tgz"
+ url "https://brew.sh/foo-1.0.tar.gz"
sha256 "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
livecheck do
- url "https://brew.sh/foo-1.0.tar.gz"
- ... | false |
Other | Homebrew | brew | 24fb00c770d171c10d2d48c428e63561a006d623.json | Update RBI files for rack. | Library/Homebrew/sorbet/rbi/gems/rack@2.2.4.rbi | @@ -872,6 +872,7 @@ class Rack::QueryParser::Params
def to_params_hash; end
end
+class Rack::QueryParser::ParamsTooDeepError < ::RangeError; end
Rack::RACK_ERRORS = T.let(T.unsafe(nil), String)
Rack::RACK_HIJACK = T.let(T.unsafe(nil), String)
Rack::RACK_HIJACK_IO = T.let(T.unsafe(nil), String)
@@ -1610,6 +1611... | false |
Other | Homebrew | brew | da2df987db57b9276f7e6dc45d6fa0f2f7239201.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 | @@ -3607,6 +3607,16 @@ class Object
def self.yaml_tag(url); end
end
+module OnSystem::MacOSAndLinux
+ extend ::T::Private::Methods::MethodHooks
+ extend ::T::Private::Methods::SingletonMethodHooks
+end
+
+module OnSystem::MacOSOnly
+ extend ::T::Private::Methods::MethodHooks
+ extend ::T::Private::Methods::Si... | false |
Other | Homebrew | brew | 17fc684c9b72132a859bdce25b59f12622959dbc.json | Update RBI files for rubocop-sorbet. | Library/Homebrew/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi | @@ -6,6 +6,7 @@
module RuboCop; end
module RuboCop::Cop; end
+RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern
module RuboCop::Cop::Sorbet; end
class RuboCop::Cop::Sorbet::AllowIncompatibleOverride < ::RuboCop::Cop::Cop | false |
Other | Homebrew | brew | 011ea66ebce3b4c273ecc852db78c78f7e08bbc9.json | Update RBI files for rubocop. | Library/Homebrew/sorbet/rbi/gems/json@2.6.2.rbi | @@ -0,0 +1,101 @@
+# typed: true
+
+# DO NOT EDIT MANUALLY
+# This is an autogenerated file for types exported from the `json` gem.
+# Please instead update this file by running `bin/tapioca gem json`.
+
+class Class < ::Module
+ def json_creatable?; end
+end
+
+module JSON
+ private
+
+ def dump(obj, anIO = T.unsaf... | true |
Other | Homebrew | brew | 011ea66ebce3b4c273ecc852db78c78f7e08bbc9.json | Update RBI files for rubocop. | Library/Homebrew/sorbet/rbi/gems/rubocop@1.31.1.rbi | @@ -3178,6 +3178,7 @@ class RuboCop::Cop::Layout::LineContinuationSpacing < ::RuboCop::Cop::Base
def find_offensive_spacing(line); end
def ignore_range?(backtick_range); end
def investigate(line, line_number); end
+ def last_line(processed_source); end
def message(_range); end
def no_space_style?; end
... | true |
Other | Homebrew | brew | 011ea66ebce3b4c273ecc852db78c78f7e08bbc9.json | Update RBI files for rubocop. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -1044,8 +1044,6 @@ end
class Class
def any_instance(); end
-
- def json_creatable?(); end
end
class CompilerSelector::Compiler
@@ -2963,12 +2961,6 @@ class JSON::Ext::Parser
def initialize(*arg); end
end
-JSON::Parser = JSON::Ext::Parser
-
-JSON::State = JSON::Ext::Generator::State
-
-JSON::Unparser... | true |
Other | Homebrew | brew | 4b1ac96a258b967c4a6f53a7217a609b0b51d466.json | Update RBI files for rubocop. | Library/Homebrew/sorbet/rbi/gems/rubocop@1.31.0.rbi | @@ -227,6 +227,7 @@ class RuboCop::Config
def [](*args, &block); end
def []=(*args, &block); end
+ def active_support_extensions_enabled?; end
def add_excludes_from_higher_level(highest_config); end
def allowed_camel_case_file?(file); end
def base_dir_for_path_parameters; end
@@ -754,6 +755,7 @@ class... | true |
Other | Homebrew | brew | 4b1ac96a258b967c4a6f53a7217a609b0b51d466.json | Update RBI files for rubocop. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -4969,10 +4969,15 @@ end
module RuboCop::AST::NodePattern::Sets
SET_BUILD_RECOMMENDED_TEST_OPTIONAL = ::T.let(nil, ::T.untyped)
SET_DEPENDS_ON_USES_FROM_MACOS = ::T.let(nil, ::T.untyped)
+ SET_EXIST_EXISTS = ::T.let(nil, ::T.untyped)
+ SET_FILETEST_FILE_DIR_SHELL = ::T.let(nil, ::T.untyped)
SET_INCLUDE_W... | true |
Other | Homebrew | brew | 3df8b9761402477704de44efae3b4484df01f990.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 | @@ -2662,6 +2662,10 @@ module Homebrew::Livecheck::Strategy
extend ::T::Private::Methods::SingletonMethodHooks
end
+class Homebrew::SimulateSystem
+ extend ::T::Private::Methods::SingletonMethodHooks
+end
+
class Homebrew::Style::LineLocation
extend ::T::Private::Methods::MethodHooks
extend ::T::Private::... | true |
Other | Homebrew | brew | 3df8b9761402477704de44efae3b4484df01f990.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/parlour.rbi | @@ -129,13 +129,6 @@ module Cask
def token_conflicts?; end
end
- class DSL
- class Caveats < Base
- sig { returns(T::Boolean) }
- def discontinued?; end
- end
- end
-
class Installer
sig { returns(T::Boolean) }
def binaries?; end
@@ -170,4 +163,14 @@ module Cask
sig { retur... | true |
Other | Homebrew | brew | f22907e3fc5a5a659baedb1b6ec594093add0734.json | Update RBI files for sorbet-static-and-runtime. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -2662,6 +2662,10 @@ module Homebrew::Livecheck::Strategy
extend ::T::Private::Methods::SingletonMethodHooks
end
+class Homebrew::SimulateSystem
+ extend ::T::Private::Methods::SingletonMethodHooks
+end
+
class Homebrew::Style::LineLocation
extend ::T::Private::Methods::MethodHooks
extend ::T::Private::... | true |
Other | Homebrew | brew | f22907e3fc5a5a659baedb1b6ec594093add0734.json | Update RBI files for sorbet-static-and-runtime. | Library/Homebrew/sorbet/rbi/parlour.rbi | @@ -129,13 +129,6 @@ module Cask
def token_conflicts?; end
end
- class DSL
- class Caveats < Base
- sig { returns(T::Boolean) }
- def discontinued?; end
- end
- end
-
class Installer
sig { returns(T::Boolean) }
def binaries?; end
@@ -170,4 +163,14 @@ module Cask
sig { retur... | true |
Other | Homebrew | brew | c49e09427bb7d908862774ed66d34a72e438cd2f.json | Update RBI files for sorbet-static-and-runtime. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -2506,8 +2506,6 @@ module Homebrew::EnvConfig
def self.force_brewed_git?(); end
- def self.force_brewed_ssh?(); end
-
def self.force_vendor_ruby?(); end
def self.ftp_proxy(); end | false |
Other | Homebrew | brew | 2ba53c4496c1703cf7618cc6802f412d4d3ed756.json | Update RBI files for rubocop-rails. | Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.15.1.rbi | @@ -53,6 +53,8 @@ module RuboCop::Cop::EnforceSuperclass
end
end
+RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern
+
module RuboCop::Cop::IndexMethod
def on_block(node); end
def on_csend(node); end
@@ -1902,7 +1904,7 @@ RuboCop::Cop::Rails::TimeZone::TIMEZONE_SPECIFIER = T.let(T.unsafe(nil), Reg... | false |
Other | Homebrew | brew | 283ff9e3adef34fb8d53063fbd5a3f2e3ac64c92.json | bump-formula-pr: handle url with specs hash
The existing `bump-formula-pr` regexes expect a `url` string to only
be followed by a newline. However, `url` also accepts a `specs` hash,
which can appear after the `url` string. For example:
```
url "https://www.example.com/1.2.3.tar.gz", using: :homebrew_curl
```
This c... | Library/Homebrew/dev-cmd/bump-formula-pr.rb | @@ -275,7 +275,7 @@ def bump_formula_pr
if new_mirrors.present?
replacement_pairs << [
- /^( +)(url "#{Regexp.escape(new_url)}"\n)/m,
+ /^( +)(url "#{Regexp.escape(new_url)}"[^\n]*?\n)/m,
"\\1\\2\\1mirror \"#{new_mirrors.join("\"\n\\1mirror \"")}\"\n",
]
end
@@ -293,7 +2... | false |
Other | Homebrew | brew | d7a26cd6d33163c61cd28ef39bd06a555e7a6c34.json | ExtractPlist: Modify #find_versions url usage | Library/Homebrew/cask/cask.rb | @@ -20,7 +20,7 @@ class Cask
attr_reader :token, :sourcefile_path, :source, :config, :default_config
- attr_accessor :download
+ attr_accessor :download, :allow_reassignment
def self.all
Tap.flat_map(&:cask_files).map do |f|
@@ -38,11 +38,12 @@ def tap
@tap
end
- def initia... | true |
Other | Homebrew | brew | d7a26cd6d33163c61cd28ef39bd06a555e7a6c34.json | ExtractPlist: Modify #find_versions url usage | Library/Homebrew/cask/dsl.rb | @@ -112,7 +112,7 @@ def desc(description = nil)
def set_unique_stanza(stanza, should_return)
return instance_variable_get("@#{stanza}") if should_return
- if instance_variable_defined?("@#{stanza}")
+ if !@cask.allow_reassignment && instance_variable_defined?("@#{stanza}")
raise CaskInv... | true |
Other | Homebrew | brew | d7a26cd6d33163c61cd28ef39bd06a555e7a6c34.json | ExtractPlist: Modify #find_versions url usage | Library/Homebrew/livecheck/strategy/extract_plist.rb | @@ -103,14 +103,14 @@ def self.find_versions(cask:, url: nil, regex: nil, **_unused, &block)
match_data = { matches: {}, regex: regex, url: url }
- if url && url != cask.url.to_s
- cask_object_for_livecheck = Cask::Cask.new("livecheck-cask", config: cask.config) do
- url ... | true |
Other | Homebrew | brew | d7a26cd6d33163c61cd28ef39bd06a555e7a6c34.json | ExtractPlist: Modify #find_versions url usage | Library/Homebrew/unversioned_cask_checker.rb | @@ -15,21 +15,15 @@ class UnversionedCaskChecker
sig { returns(Cask::Cask) }
attr_reader :cask
- attr_reader :livecheck_url
- sig { params(cask: Cask::Cask, livecheck_url: T.nilable(Cask::Cask)).void }
- def initialize(cask, livecheck_url: nil)
+ sig { params(cask: Cask::Cask).void }
+ def... | true |
Other | Homebrew | brew | 077fb350a5c10aad93c3b01a5406dfdd3ad229ce.json | ExtractPlist: Add url to #find_versions object | Library/Homebrew/livecheck/strategy/extract_plist.rb | @@ -82,6 +82,8 @@ def self.versions_from_items(items, regex = nil, &block)
# versions from `plist` files.
#
# @param cask [Cask::Cask] the cask to check for version information
+ # @param url [String, nil] an alternative URL to check for version
+ # information
# @par... | false |
Other | Homebrew | brew | 916c9806768b14a6229c9c9c6bee06f90fbcaab2.json | livecheck: allow custom url in extract_plist strategy | Library/Homebrew/livecheck/strategy/extract_plist.rb | @@ -87,20 +87,30 @@ def self.versions_from_items(items, regex = nil, &block)
sig {
params(
cask: Cask::Cask,
+ url: T.nilable(String),
regex: T.nilable(Regexp),
_unused: T.nilable(T::Hash[Symbol, T.untyped]),
block: T.untyped,... | true |
Other | Homebrew | brew | 916c9806768b14a6229c9c9c6bee06f90fbcaab2.json | livecheck: allow custom url in extract_plist strategy | Library/Homebrew/unversioned_cask_checker.rb | @@ -15,15 +15,21 @@ class UnversionedCaskChecker
sig { returns(Cask::Cask) }
attr_reader :cask
+ attr_reader :livecheck_url
- sig { params(cask: Cask::Cask).void }
- def initialize(cask)
+ sig { params(cask: Cask::Cask, livecheck_url: T.nilable(Cask::Cask)).void }
+ def initialize(cask, li... | true |
Other | Homebrew | brew | bc064ccd35e2d4179e3f1737dbedbbf992bd5dfe.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 | @@ -2506,6 +2506,8 @@ module Homebrew::EnvConfig
def self.force_brewed_git?(); end
+ def self.force_brewed_ssh?(); end
+
def self.force_vendor_ruby?(); end
def self.ftp_proxy(); end | false |
Other | Homebrew | brew | 3b65ecaf4caa608e4cf31684edc767b2b320ae4b.json | livecheck: fix path to livecheck watchlist | Library/Homebrew/dev-cmd/livecheck.rb | @@ -11,10 +11,7 @@ module Homebrew
module_function
- WATCHLIST_PATH = (
- Homebrew::EnvConfig.livecheck_watchlist ||
- "#{Dir.home}/.brew_livecheck_watchlist"
- ).freeze
+ WATCHLIST_PATH = File.expand_path(Homebrew::EnvConfig.livecheck_watchlist).freeze
sig { returns(CLI::Parser) }
def livecheck... | true |
Other | Homebrew | brew | 3b65ecaf4caa608e4cf31684edc767b2b320ae4b.json | livecheck: fix path to livecheck watchlist | Library/Homebrew/env_config.rb | @@ -221,9 +221,10 @@ module EnvConfig
boolean: true,
},
HOMEBREW_LIVECHECK_WATCHLIST: {
- description: "Consult this file for the list of formulae to check by default when no formula argument " \
- "is passed to `brew livecheck`.",
- default: ... | true |
Other | Homebrew | brew | 8f9f18fe59c3e21278935d6b9d47e272fe7d8d63.json | utils/shfmt.sh: allow long shfmt arguments | Library/Homebrew/utils/shfmt.sh | @@ -56,7 +56,7 @@ do
shift
break
fi
- if [[ "${arg}" == "-w" ]]
+ if [[ "${arg}" == "-w" || "${arg}" == "--write" ]]
then
shift
INPLACE=1 | false |
Other | Homebrew | brew | f804a22dc0ea5f9d5c0fb4a2a337be3060ce0e91.json | style: use new autocorrect flag | Library/Homebrew/style.rb | @@ -97,7 +97,7 @@ def run_rubocop(files, output_type,
--force-exclusion
]
args << if fix
- "--auto-correct-all"
+ "--autocorrect-all"
else
"--parallel"
end | false |
Other | Homebrew | brew | 02164a35dbc2320e9f4eb2e27ff952e0a157b6fa.json | Use ORIGINAL_PATHS over envs; reject nil PATH | Library/Homebrew/brew.rb | @@ -53,8 +53,8 @@
args = Homebrew::CLI::Parser.new.parse(ARGV.dup.freeze, ignore_invalid_options: true)
Context.current = args.context
- path = PATH.new(ENV["PATH"])
- homebrew_path = PATH.new(ENV["HOMEBREW_PATH"])
+ path = PATH.new(ENV.fetch("PATH"))
+ homebrew_path = PATH.new(ENV.fetch("HOMEBREW_PATH"))
... | true |
Other | Homebrew | brew | 02164a35dbc2320e9f4eb2e27ff952e0a157b6fa.json | Use ORIGINAL_PATHS over envs; reject nil PATH | Library/Homebrew/cask/artifact/installer.rb | @@ -39,7 +39,7 @@ def install_phase(command: nil, **_)
executable_path,
**args,
env: { "PATH" => PATH.new(
- HOMEBREW_PREFIX/"bin", HOMEBREW_PREFIX/"sbin", ENV["PATH"]
+ HOMEBREW_PREFIX/"bin", HOMEBREW_PREFIX/"sbin", ENV.fetch("PATH")
) },
... | true |
Other | Homebrew | brew | 02164a35dbc2320e9f4eb2e27ff952e0a157b6fa.json | Use ORIGINAL_PATHS over envs; reject nil PATH | Library/Homebrew/caveats.rb | @@ -78,7 +78,7 @@ def keg_only_text(skip_reason: false)
s << " #{Utils::Shell.export_value("CPPFLAGS", "-I#{f.opt_include}")}\n" if f.include.directory?
- if which("pkg-config", ENV["HOMEBREW_PATH"]) &&
+ if which("pkg-config", ORIGINAL_PATHS) &&
((f.lib/"pkgconfig").directory? || (f.sha... | true |
Other | Homebrew | brew | 02164a35dbc2320e9f4eb2e27ff952e0a157b6fa.json | Use ORIGINAL_PATHS over envs; reject nil PATH | Library/Homebrew/cleanup.rb | @@ -391,7 +391,7 @@ def cleanup_lockfiles(*lockfiles)
end
def cleanup_portable_ruby
- rubies = [which("ruby"), which("ruby", ENV["HOMEBREW_PATH"])].compact
+ rubies = [which("ruby"), which("ruby", ORIGINAL_PATHS)].compact
system_ruby = Pathname.new("/usr/bin/ruby")
rubies << system_r... | true |
Other | Homebrew | brew | 02164a35dbc2320e9f4eb2e27ff952e0a157b6fa.json | Use ORIGINAL_PATHS over envs; reject nil PATH | Library/Homebrew/cmd/log.rb | @@ -42,7 +42,7 @@ def log
# As this command is simplifying user-run commands then let's just use a
# user path, too.
- ENV["PATH"] = ENV["HOMEBREW_PATH"]
+ ENV["PATH"] = PATH.new(ORIGINAL_PATHS).to_s
if args.no_named?
git_log HOMEBREW_REPOSITORY, args: args | true |
Other | Homebrew | brew | 02164a35dbc2320e9f4eb2e27ff952e0a157b6fa.json | Use ORIGINAL_PATHS over envs; reject nil PATH | Library/Homebrew/commands.rb | @@ -93,11 +93,11 @@ def external_ruby_v2_cmd_path(cmd)
# Ruby commands which are run by being `require`d.
def external_ruby_cmd_path(cmd)
- which("brew-#{cmd}.rb", PATH.new(ENV["PATH"]).append(Tap.cmd_directories))
+ which("brew-#{cmd}.rb", PATH.new(ENV.fetch("PATH")).append(Tap.cmd_directories))
end
... | true |
Other | Homebrew | brew | 02164a35dbc2320e9f4eb2e27ff952e0a157b6fa.json | Use ORIGINAL_PATHS over envs; reject nil PATH | Library/Homebrew/dev-cmd/bump-cask-pr.rb | @@ -67,7 +67,7 @@ def bump_cask_pr
# As this command is simplifying user-run commands then let's just use a
# user path, too.
- ENV["PATH"] = ENV["HOMEBREW_PATH"]
+ ENV["PATH"] = PATH.new(ORIGINAL_PATHS).to_s
# Use the user's browser, too.
ENV["BROWSER"] = Homebrew::EnvConfig.browser | true |
Other | Homebrew | brew | 02164a35dbc2320e9f4eb2e27ff952e0a157b6fa.json | Use ORIGINAL_PATHS over envs; reject nil PATH | Library/Homebrew/dev-cmd/bump-formula-pr.rb | @@ -108,7 +108,7 @@ def bump_formula_pr
# As this command is simplifying user-run commands then let's just use a
# user path, too.
- ENV["PATH"] = ENV["HOMEBREW_PATH"]
+ ENV["PATH"] = PATH.new(ORIGINAL_PATHS).to_s
# Use the user's browser, too.
ENV["BROWSER"] = Homebrew::EnvConfig.browser | true |
Other | Homebrew | brew | 02164a35dbc2320e9f4eb2e27ff952e0a157b6fa.json | Use ORIGINAL_PATHS over envs; reject nil PATH | Library/Homebrew/dev-cmd/bump-revision.rb | @@ -36,7 +36,7 @@ def bump_revision
# As this command is simplifying user-run commands then let's just use a
# user path, too.
- ENV["PATH"] = ENV["HOMEBREW_PATH"]
+ ENV["PATH"] = PATH.new(ORIGINAL_PATHS).to_s
args.named.to_formulae.each do |formula|
current_revision = formula.revision | true |
Other | Homebrew | brew | 02164a35dbc2320e9f4eb2e27ff952e0a157b6fa.json | Use ORIGINAL_PATHS over envs; reject nil PATH | Library/Homebrew/dev-cmd/sh.rb | @@ -38,7 +38,7 @@ def sh
ENV.setup_build_environment
if superenv?(args.env)
# superenv stopped adding brew's bin but generally users will want it
- ENV["PATH"] = PATH.new(ENV["PATH"]).insert(1, HOMEBREW_PREFIX/"bin")
+ ENV["PATH"] = PATH.new(ENV.fetch("PATH")).insert(1, HOMEBREW_PREFIX/"bin")... | true |
Other | Homebrew | brew | 02164a35dbc2320e9f4eb2e27ff952e0a157b6fa.json | Use ORIGINAL_PATHS over envs; reject nil PATH | Library/Homebrew/dev-cmd/update-test.rb | @@ -123,7 +123,7 @@ def update_test
safe_system "git", "reset", "--hard", start_commit
# update ENV["PATH"]
- ENV["PATH"] = PATH.new(ENV["PATH"]).prepend(curdir/"bin")
+ ENV["PATH"] = PATH.new(ENV.fetch("PATH")).prepend(curdir/"bin")
# run brew help to install portable-ruby (if needed... | true |
Other | Homebrew | brew | 02164a35dbc2320e9f4eb2e27ff952e0a157b6fa.json | Use ORIGINAL_PATHS over envs; reject nil PATH | Library/Homebrew/download_strategy.rb | @@ -1139,7 +1139,7 @@ def source_modified_time
private
def env
- { "PATH" => PATH.new("/usr/bin", Formula["cvs"].opt_bin, ENV["PATH"]) }
+ { "PATH" => PATH.new("/usr/bin", Formula["cvs"].opt_bin, ENV.fetch("PATH")) }
end
sig { returns(String) }
@@ -1214,7 +1214,7 @@ def last_commit
private
... | true |
Other | Homebrew | brew | 02164a35dbc2320e9f4eb2e27ff952e0a157b6fa.json | Use ORIGINAL_PATHS over envs; reject nil PATH | Library/Homebrew/extend/ENV/std.rb | @@ -28,7 +28,7 @@ def setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_a
self["HOMEBREW_ENV"] = "std"
- PATH.new(ENV["HOMEBREW_PATH"]).reverse_each { |p| prepend_path "PATH", p }
+ ORIGINAL_PATHS.reverse_each { |p| prepend_path "PATH", p }
prepend_path "PATH", HOMEBREW_SHIM... | true |
Other | Homebrew | brew | 02164a35dbc2320e9f4eb2e27ff952e0a157b6fa.json | Use ORIGINAL_PATHS over envs; reject nil PATH | Library/Homebrew/formula.rb | @@ -421,9 +421,9 @@ def update_head_version
return unless head.downloader.cached_location.exist?
path = if ENV["HOMEBREW_ENV"]
- ENV["PATH"]
+ ENV.fetch("PATH")
else
- ENV["HOMEBREW_PATH"]
+ PATH.new(ORIGINAL_PATHS)
end
with_env(PATH: path) do
@@ -1103,7 +1103,7 @@ def r... | true |
Other | Homebrew | brew | 02164a35dbc2320e9f4eb2e27ff952e0a157b6fa.json | Use ORIGINAL_PATHS over envs; reject nil PATH | Library/Homebrew/formula_cellar_checks.rb | @@ -299,7 +299,7 @@ def check_cpuid_instruction(formula)
objdump = Formula["llvm"].opt_bin/"llvm-objdump" if Formula["llvm"].any_version_installed?
objdump ||= Formula["binutils"].opt_bin/"objdump" if Formula["binutils"].any_version_installed?
objdump ||= which("objdump")
- objdump ||= which("objdum... | true |
Other | Homebrew | brew | 02164a35dbc2320e9f4eb2e27ff952e0a157b6fa.json | Use ORIGINAL_PATHS over envs; reject nil PATH | Library/Homebrew/global.rb | @@ -119,8 +119,8 @@ def auditing?
require "PATH"
-ENV["HOMEBREW_PATH"] ||= ENV["PATH"]
-ORIGINAL_PATHS = PATH.new(ENV["HOMEBREW_PATH"]).map do |p|
+ENV["HOMEBREW_PATH"] ||= ENV.fetch("PATH")
+ORIGINAL_PATHS = PATH.new(ENV.fetch("HOMEBREW_PATH")).map do |p|
Pathname.new(p).expand_path
rescue
nil | true |
Other | Homebrew | brew | 02164a35dbc2320e9f4eb2e27ff952e0a157b6fa.json | Use ORIGINAL_PATHS over envs; reject nil PATH | Library/Homebrew/requirement.rb | @@ -103,7 +103,7 @@ def modify_build_environment(env: nil, cc: nil, build_bottle: false, bottle_arch
parent = satisfied_result_parent
return unless parent
return if ["#{HOMEBREW_PREFIX}/bin", "#{HOMEBREW_PREFIX}/bin"].include?(parent.to_s)
- return if PATH.new(ENV["PATH"]).include?(parent.to_s)
+ r... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.