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 | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/download_strategy.rb | @@ -441,11 +441,11 @@ def resolve_url_basename_time_file_size(url)
content_disposition_parser = Mechanize::HTTP::ContentDispositionParser.new
parse_content_disposition = lambda do |line|
- next unless content_disposition = content_disposition_parser.parse(line.sub(/; *$/, ""), true)
+ next unless ... | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/exceptions.rb | @@ -453,7 +453,7 @@ def dump(verbose: false)
if formula.tap && defined?(OS::ISSUES_URL)
if formula.tap.official?
puts Formatter.error(Formatter.url(OS::ISSUES_URL), label: "READ THIS")
- elsif issues_url = formula.tap.issues_url
+ elsif (issues_url = formula.tap.issues_url)
puts ... | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/formula.rb | @@ -2061,7 +2061,7 @@ def system(cmd, *args)
if verbose_using_dots
last_dot = Time.at(0)
- while buf = rd.gets
+ while (buf = rd.gets)
log.puts buf
# make sure dots printed with interval of at least 1 min.
next unless (Time.now... | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/formula_auditor.rb | @@ -133,7 +133,7 @@ def audit_formula_name
return
end
- if oldname = CoreTap.instance.formula_renames[name]
+ if (oldname = CoreTap.instance.formula_renames[name])
problem "'#{name}' is reserved as the old name of #{oldname} in homebrew/core."
return
end
@@ -367,10 +... | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/formula_installer.rb | @@ -575,7 +575,7 @@ def expand_requirements
formula_deps_map = Dependency.expand(formula)
.index_by(&:name)
- while f = formulae.pop
+ while (f = formulae.pop)
runtime_requirements = runtime_requirements(f)
f.recursive_requirements do |dependent, req|
... | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/formulary.rb | @@ -467,14 +467,14 @@ def self.loader_for(ref, from: nil)
return FormulaLoader.new(name, path)
end
- if newref = CoreTap.instance.formula_renames[ref]
+ if (newref = CoreTap.instance.formula_renames[ref])
formula_with_that_oldname = core_path(newref)
return FormulaLoader.new(newref, fo... | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/livecheck/skip_conditions.rb | @@ -25,7 +25,7 @@ module SkipConditions
def formula_or_cask_skip(formula_or_cask, livecheckable, full_name: false, verbose: false)
formula = formula_or_cask if formula_or_cask.is_a?(Formula)
- if stable_url = formula&.stable&.url
+ if (stable_url = formula&.stable&.url)
stable... | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/livecheck/strategy/sparkle.rb | @@ -61,7 +61,7 @@ def self.item_from_content(content)
title = (item > "title").first&.text&.strip
- if match = title&.match(/(\d+(?:\.\d+)*)\s*(\([^)]+\))?\Z/)
+ if (match = title&.match(/(\d+(?:\.\d+)*)\s*(\([^)]+\))?\Z/))
short_version ||= match[1]
... | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/locale.rb | @@ -29,7 +29,7 @@ class ParserError < StandardError
private_constant :LOCALE_REGEX
def self.parse(string)
- if locale = try_parse(string)
+ if (locale = try_parse(string))
return locale
end
@@ -42,12 +42,12 @@ def self.try_parse(string)
scanner = StringScanner.new(string)
- if la... | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/migrator.rb | @@ -138,7 +138,7 @@ def initialize(formula, force: false)
@new_cellar = HOMEBREW_CELLAR/formula.name
@new_cellar_existed = @new_cellar.exist?
- if @old_linked_keg = linked_old_linked_keg
+ if (@old_linked_keg = linked_old_linked_keg)
@old_linked_keg_record = old_linked_keg.linked_keg_record if ... | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/patch.rb | @@ -84,7 +84,7 @@ def contents
line = f.gets
break if line.nil? || line =~ /^__END__$/
end
- while line = f.gets
+ while (line = f.gets)
data << line
end
end | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/requirements/x11_requirement.rb | @@ -31,12 +31,12 @@ def min_xdpyinfo_version
end
satisfy build_env: false do
- if which_xorg = which("Xorg")
+ if (which_xorg = which("Xorg"))
version = Utils.popen_read(which_xorg, "-version", err: :out)[/X Server (\d+\.\d+\.\d+)/, 1]
next true if $CHILD_STATUS.success? && version && Versio... | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/resource_auditor.rb | @@ -105,7 +105,7 @@ def audit_urls
# pull request.
next if url.match?(%r{^https://dl.bintray.com/homebrew/mirror/})
- if http_content_problem = curl_check_http_content(url, specs: specs)
+ if (http_content_problem = curl_check_http_content(url, specs: specs))
probl... | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/rubocops/class.rb | @@ -47,7 +47,7 @@ def audit_formula(_node, _class_node, _parent_class_node, body_node)
test_calls(test) do |node, params|
p1, p2 = params
- if match = string_content(p1).match(%r{(/usr/local/(s?bin))})
+ if (match = string_content(p1).match(%r{(/usr/local/(s?bin))}))
... | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/rubocops/extend/formula.rb | @@ -155,7 +155,7 @@ def versioned_formula?
# Returns the formula tap.
def formula_tap
- return unless match_obj = @file_path.match(%r{/(homebrew-\w+)/})
+ return unless (match_obj = @file_path.match(%r{/(homebrew-\w+)/}))
match_obj[1]
end | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/rubocops/lines.rb | @@ -162,15 +162,15 @@ def audit_formula(_node, _class_node, _parent_class_node, body_node)
find_instance_method_call(body_node, :build, :without?) do |method|
arg = parameters(method).first
- next unless match = regex_match_group(arg, /^-?-?without-(.*)/)
+ next unless (m... | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/rubocops/shared/desc_helper.rb | @@ -44,7 +44,7 @@ def audit_desc(type, name, desc_call)
desc_problem "Description shouldn't have trailing spaces." if regex_match_group(desc, /\s+$/)
# Check if "command-line" is spelled incorrectly in the desc.
- if match = regex_match_group(desc, /(command ?line)/i)
+ if (match = reg... | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/rubocops/text.rb | @@ -15,7 +15,7 @@ class Text < FormulaCop
def audit_formula(node, _class_node, _parent_class_node, body_node)
full_source_content = source_buffer(node).source
- if match = full_source_content.match(/^require ['"]formula['"]$/)
+ if (match = full_source_content.match(/^require ['"... | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/search.rb | @@ -10,7 +10,7 @@ module Homebrew
# @api private
module Search
def query_regexp(query)
- if m = query.match(%r{^/(.*)/$})
+ if (m = query.match(%r{^/(.*)/$}))
Regexp.new(m[1])
else
query | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/uninstall.rb | @@ -108,7 +108,7 @@ def handle_unsatisfied_dependents(kegs_by_rack, casks: [], ignore_dependencies:
end
def check_for_dependents(kegs, casks: [], named_args: [])
- return false unless result = InstalledDependents.find_some_installed_dependents(kegs, casks: casks)
+ return false unless (result = In... | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/utils.rb | @@ -223,7 +223,7 @@ def odeprecated(method, replacement = nil, disable: false, disable_on: nil, call
tap_message = T.let(nil, T.nilable(String))
backtrace.each do |line|
- next unless match = line.match(HOMEBREW_TAP_PATH_REGEX)
+ next unless (match = line.match(HOMEBREW_TAP_PATH_REGEX))
t... | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/utils/pypi.rb | @@ -42,7 +42,7 @@ def initialize(package_string, is_url: false)
@name = package_string
@name, @version = @name.split("==") if @name.include? "=="
- return unless match = @name.match(/^(.*?)\[(.+)\]$/)
+ return unless (match = @name.match(/^(.*?)\[(.+)\]$/))
@name = match[1]
@ex... | true |
Other | Homebrew | brew | 8e5451df2fe2bafcfbfafa10646b8ebab10fef5a.json | style: use parentheses for assignment in conditions | Library/Homebrew/version.rb | @@ -115,7 +115,7 @@ def initialize
sig { override.params(other: T.untyped).returns(T.nilable(Integer)) }
def <=>(other)
- return unless other = Token.from(other)
+ return unless (other = Token.from(other))
case other
when NullToken
@@ -158,7 +158,7 @@ def initialize(value)
s... | true |
Other | Homebrew | brew | 983f7f6f1322b216843aae7031c1030d1e2f7f0a.json | Gemfile.lock: update sorbet-runtime to match sorbet | Library/Homebrew/Gemfile.lock | @@ -141,7 +141,7 @@ GEM
simplecov_json_formatter (0.1.2)
sorbet (0.5.6274)
sorbet-static (= 0.5.6274)
- sorbet-runtime (0.5.6267)
+ sorbet-runtime (0.5.6274)
sorbet-runtime-stub (0.2.0)
sorbet-static (0.5.6274-universal-darwin-14)
spoom (1.0.7) | false |
Other | Homebrew | brew | f66c47198ec13ce245e5bac06b8bad5d189de837.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/warning@1.1.0.rbi | @@ -0,0 +1,8 @@
+# DO NOT EDIT MANUALLY
+# This is an autogenerated file for types exported from the `warning` gem.
+# Please instead update this file by running `tapioca sync`.
+
+# typed: true
+
+# THIS IS AN EMPTY RBI FILE.
+# see https://github.com/Shopify/tapioca/blob/master/README.md#manual-gem-requires | true |
Other | Homebrew | brew | f66c47198ec13ce245e5bac06b8bad5d189de837.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 | @@ -30018,8 +30018,27 @@ class WEBrick::HTTPServlet::FileHandler
def set_filesystem_encoding(str); end
end
+module Warning::Processor
+ def clear(); end
+
+ def dedup(); end
+
+ def freeze(); end
+
+ def ignore(regexp, path=T.unsafe(nil)); end
+
+ def process(path=T.unsafe(nil), actions=T.unsafe(nil), &block... | true |
Other | Homebrew | brew | 810b8e515b65e4a4e98301acd8e4cb214b33bab7.json | dev-cmd/man: remove diacritics for manpage | Library/Homebrew/dev-cmd/man.rb | @@ -62,6 +62,7 @@ def regenerate_man_pages(preserve_date:, quiet:)
markup = build_man_page(quiet: quiet)
convert_man_page(markup, TARGET_DOC_PATH/"Manpage.md", preserve_date: preserve_date)
+ markup = I18n.transliterate(markup, locale: :en)
convert_man_page(markup, TARGET_MAN_PATH/"brew.1", preserve... | true |
Other | Homebrew | brew | 810b8e515b65e4a4e98301acd8e4cb214b33bab7.json | dev-cmd/man: remove diacritics for manpage | manpages/brew.1 | @@ -2852,7 +2852,7 @@ Homebrew\'s Technical Steering Committee is FX Coudert, Markus Reiter, Michka Po
Homebrew\'s Linux maintainers are Daniel Nachun, Dawid Dziurla, Issy Long, Jonathan Chang, Michka Popoff and Shaun Jackman\.
.
.P
-Homebrew\'s other current maintainers are Alexander Bayandin, Bo Anderson, Caleb Xu... | true |
Other | Homebrew | brew | b4995379d49328b3d07e382d48fde0b859bca9dd.json | dev-cmd/rubocop: call rubocop utility instead of `-S rubocop` | Library/Homebrew/dev-cmd/rubocop.sh | @@ -18,8 +18,6 @@ homebrew-rubocop() {
export GEM_HOME
export PATH="$GEM_HOME/bin:$PATH"
- # Unconditional -W0 to avoid printing e.g.:
- # warning: parser/current is loading parser/ruby26, which recognizes
- # warning: 2.6.6-compliant syntax, but you are running 2.6.3.
- exec "$HOMEBREW_RUBY_PATH" "$RUBY_DI... | false |
Other | Homebrew | brew | 3595ac1f7fe2fbb0421a7656bc9a6d59618a5afb.json | style: call rubocop directly | Library/Homebrew/Gemfile | @@ -21,6 +21,7 @@ gem "simplecov", require: false
gem "sorbet", require: false
gem "sorbet-runtime", require: false
gem "tapioca", require: false
+gem "warning", require: false
# vendored gems
gem "activesupport" | true |
Other | Homebrew | brew | 3595ac1f7fe2fbb0421a7656bc9a6d59618a5afb.json | style: call rubocop directly | Library/Homebrew/Gemfile.lock | @@ -163,6 +163,7 @@ GEM
unf_ext
unf_ext (0.0.7.7)
unicode-display_width (2.0.0)
+ warning (1.1.0)
webrick (1.7.0)
webrobots (0.1.2)
zeitwerk (2.4.2)
@@ -200,6 +201,7 @@ DEPENDENCIES
sorbet-runtime
sorbet-runtime-stub
tapioca
+ warning
BUNDLED WITH
1.17.3 | true |
Other | Homebrew | brew | 3595ac1f7fe2fbb0421a7656bc9a6d59618a5afb.json | style: call rubocop directly | Library/Homebrew/style.rb | @@ -72,6 +72,8 @@ def check_style_impl(files, output_type,
end
end
+ RUBOCOP = (HOMEBREW_LIBRARY_PATH/"utils/rubocop.rb").freeze
+
def run_rubocop(files, output_type,
fix: false, except_cops: nil, only_cops: nil, display_cop_names: false, reset_cache: false,
... | true |
Other | Homebrew | brew | 3595ac1f7fe2fbb0421a7656bc9a6d59618a5afb.json | style: call rubocop directly | Library/Homebrew/utils/rubocop.rb | @@ -0,0 +1,19 @@
+#!/usr/bin/env ruby
+# typed: false
+# frozen_string_literal: true
+
+require "warning"
+
+warnings = [
+ "warning: parser/current is loading parser/ruby26, which recognizes",
+ "warning: 2.6.6-compliant syntax, but you are running 2.6.3.",
+ "warning: please see https://github.com/whitequark/parse... | true |
Other | Homebrew | brew | 3595ac1f7fe2fbb0421a7656bc9a6d59618a5afb.json | style: call rubocop directly | Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/warning-1.1.0/lib/warning.rb | @@ -0,0 +1,248 @@
+require 'monitor'
+
+module Warning
+ module Processor
+ # Map of symbols to regexps for warning messages to ignore.
+ IGNORE_MAP = {
+ ambiguous_slash: /: warning: ambiguous first argument; put parentheses or a space even after `\/' operator\n\z/,
+ arg_prefix: /: warning: `[&\*]' i... | true |
Other | Homebrew | brew | 0e732d3917c013bad3404015d939e8f0fad35913.json | cmd/update-report: report outdated count & suggest `brew upgrade` | Library/Homebrew/cmd/update-report.rb | @@ -136,8 +136,28 @@ def update_report
DescriptionCacheStore.new(db)
.update_from_report!(hub)
end
+
+ unless args.preinstall?
+ outdated_formulae = Formula.installed.count(&:outdated?)
+ outdated_casks = Cask::Caskroom.casks.count(&:outdated?... | true |
Other | Homebrew | brew | 0e732d3917c013bad3404015d939e8f0fad35913.json | cmd/update-report: report outdated count & suggest `brew upgrade` | Library/Homebrew/utils.rb | @@ -121,6 +121,7 @@ def ohai_stdout_or_stderr(message, *sput)
end
def puts_stdout_or_stderr(*message)
+ message = "\n" if message.empty?
if $stdout.tty?
puts(message)
else | true |
Other | Homebrew | brew | 8c81a2822cb1a2af4794d5d08ee38c8d376f43e2.json | os/mac/sdk: read version from SDKSettings | Library/Homebrew/os/mac/sdk.rb | @@ -9,6 +9,8 @@ module Mac
#
# @api private
class SDK
+ VERSIONED_SDK_REGEX = /MacOSX(\d+\.\d+)\.sdk$/.freeze
+
attr_reader :version, :path, :source
def initialize(version, path, source)
@@ -25,14 +27,39 @@ class BaseSDKLocator
class NoSDKError < StandardError; end
de... | false |
Other | Homebrew | brew | 04804c6db5ad4912efb946313930abee97d7fcf8.json | formula: add bottle_hash method.
Extract this method from `#to_hash` so it can be used in `brew bundle`. | Library/Homebrew/formula.rb | @@ -1822,25 +1822,7 @@ def to_hash
"revision" => stable.specs[:revision],
}
- if bottle_defined?
- bottle_spec = stable.bottle_specification
- bottle_info = {
- "rebuild" => bottle_spec.rebuild,
- "cellar" => (cellar = bottle_spec.cellar).is_a?(Symbol) ? cellar.... | false |
Other | Homebrew | brew | fcb1aa8aef1fa09714166a60b887226d7a189d1f.json | test/keg_spec: add test to check for dependent casks | Library/Homebrew/test/keg_spec.rb | @@ -455,5 +455,31 @@ def unreliable_dependencies(deps)
dependencies [{ "full_name" => "foo", "version" => "1.1" }] # different version
expect(described_class.find_some_installed_dependents([keg])).to eq([[keg], ["bar"]])
end
+
+ def stub_cask_name(name, version, dependency)
+ c = Cask::CaskLo... | false |
Other | Homebrew | brew | 0a292c7041d4497d51259882fc7e44892e875133.json | linux: use preferred_gcc instead of gcc | Library/Homebrew/compilers.rb | @@ -110,16 +110,16 @@ def compiler
raise CompilerSelectionError, formula
end
- private
-
sig { returns(String) }
- def preferred_gcc
+ def self.preferred_gcc
"gcc"
end
+ private
+
def gnu_gcc_versions
# prioritize gcc version provided by gcc formula.
- v = Formulary.factory(preferr... | true |
Other | Homebrew | brew | 0a292c7041d4497d51259882fc7e44892e875133.json | linux: use preferred_gcc instead of gcc | Library/Homebrew/extend/os/linux/compilers.rb | @@ -3,7 +3,7 @@
class CompilerSelector
sig { returns(String) }
- def preferred_gcc
+ def self.preferred_gcc
# gcc-5 is the lowest gcc version we support on Linux.
# gcc-5 is the default gcc in Ubuntu 16.04 (used for our CI)
"gcc@5" | true |
Other | Homebrew | brew | 0a292c7041d4497d51259882fc7e44892e875133.json | linux: use preferred_gcc instead of gcc | Library/Homebrew/extend/os/linux/keg_relocate.rb | @@ -1,6 +1,8 @@
# typed: true
# frozen_string_literal: true
+require "compilers"
+
class Keg
def relocate_dynamic_linkage(relocation)
# Patching the dynamic linker of glibc breaks it.
@@ -84,7 +86,7 @@ def self.relocation_formulae
def self.bottle_dependencies
@bottle_dependencies ||= begin
f... | true |
Other | Homebrew | brew | 0a292c7041d4497d51259882fc7e44892e875133.json | linux: use preferred_gcc instead of gcc | Library/Homebrew/extend/os/linux/linkage_checker.rb | @@ -1,6 +1,8 @@
# typed: true
# frozen_string_literal: true
+require "compilers"
+
class LinkageChecker
# Libraries provided by glibc and gcc.
SYSTEM_LIBRARY_ALLOWLIST = %w[
@@ -30,6 +32,6 @@ def check_dylibs(rebuild_cache:)
@unwanted_system_dylibs = @system_dylibs.reject do |s|
SYSTEM_LIBRARY_AL... | true |
Other | Homebrew | brew | 0a292c7041d4497d51259882fc7e44892e875133.json | linux: use preferred_gcc instead of gcc | Library/Homebrew/extend/os/linux/system_config.rb | @@ -1,6 +1,7 @@
# typed: true
# frozen_string_literal: true
+require "compilers"
require "os/linux/glibc"
require "system_command"
@@ -46,7 +47,7 @@ def dump_verbose_config(out = $stdout)
out.puts "Host glibc: #{host_glibc_version}"
out.puts "/usr/bin/gcc: #{host_gcc_version}"
out.puts "/us... | true |
Other | Homebrew | brew | 0a292c7041d4497d51259882fc7e44892e875133.json | linux: use preferred_gcc instead of gcc | Library/Homebrew/test/formula_installer_bottle_spec.rb | @@ -24,6 +24,7 @@ def temporarily_install_bottle(formula)
stub_formula_loader formula
stub_formula_loader formula("gcc") { url "gcc-1.0" }
+ stub_formula_loader formula("gcc@5") { url "gcc-5.0" }
stub_formula_loader formula("patchelf") { url "patchelf-1.0" }
allow(Formula["patchelf"]).to receiv... | true |
Other | Homebrew | brew | 0a292c7041d4497d51259882fc7e44892e875133.json | linux: use preferred_gcc instead of gcc | Library/Homebrew/test/formulary_spec.rb | @@ -142,6 +142,7 @@ class Wrong#{described_class.class_s(formula_name)} < Formula
before do
allow(described_class).to receive(:loader_for).and_call_original
stub_formula_loader formula("gcc") { url "gcc-1.0" }
+ stub_formula_loader formula("gcc@5") { url "gcc-5.0" }
stub_formula... | true |
Other | Homebrew | brew | 61cda1465f6d5db241801f8e5a4ec66453711835.json | os/mac/version: add strip_patch method | Library/Homebrew/os/mac/version.rb | @@ -78,17 +78,19 @@ def <=>(other)
end
end
+ sig { returns(T.self_type) }
+ def strip_patch
+ # Big Sur is 11.x but Catalina is 10.15.x.
+ if major >= 11
+ self.class.new(major.to_s)
+ else
+ major_minor
+ end
+ end
+
sig { returns(Sy... | false |
Other | Homebrew | brew | 1d204a08934ce17cf767d3543357954b33df204b.json | test/uninstall_spec: fix dependent cask handling | Library/Homebrew/test/uninstall_spec.rb | @@ -16,6 +16,8 @@
let(:dependent_cask) do
Cask::CaskLoader.load(+<<-RUBY)
cask "dependent_cask" do
+ version "1.0.0"
+
url "c-1"
depends_on formula: "dependency"
end
@@ -38,6 +40,8 @@
]
tab.write
+ Cask::Caskroom.path.join("dependent_cask", dependent_cask.ve... | false |
Other | Homebrew | brew | 0969361c54e4f1843aa9b65f37c6a097fe202a9d.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 | @@ -6187,6 +6187,11 @@ class CompilerSelector::Compiler
def self.members(); end
end
+class CompilerSelector
+ extend ::T::Private::Methods::MethodHooks
+ extend ::T::Private::Methods::SingletonMethodHooks
+end
+
class Concurrent::Promises::AbstractEventFuture
include ::Concurrent::Promises::InternalStates
... | false |
Other | Homebrew | brew | 15f936a22a228f01482ce6819fefccdf73045afb.json | dev-cmd/update-maintainers: implement suggestions from code review | Library/Homebrew/.rubocop.yml | @@ -36,8 +36,9 @@ Metrics/PerceivedComplexity:
Max: 90
Metrics/MethodLength:
Max: 260
+# TODO: Reduce to 600 after refactoring utils/github
Metrics/ModuleLength:
- Max: 650
+ Max: 620
Exclude:
- "test/**/*"
| true |
Other | Homebrew | brew | 15f936a22a228f01482ce6819fefccdf73045afb.json | dev-cmd/update-maintainers: implement suggestions from code review | Library/Homebrew/dev-cmd/update-maintainers.rb | @@ -26,29 +26,32 @@ def update_maintainers
# We assume that only public members wish to be included in the README
public_members = GitHub.public_member_usernames("Homebrew")
- plc = GitHub.members_by_team("Homebrew", "plc")
- tsc = GitHub.members_by_team("Homebrew", "tsc")
- linux = GitHub.members_... | true |
Other | Homebrew | brew | 15f936a22a228f01482ce6819fefccdf73045afb.json | dev-cmd/update-maintainers: implement suggestions from code review | Library/Homebrew/utils/github.rb | @@ -577,7 +577,7 @@ def public_member_usernames(org, per_page: 100)
members = []
(1..API_MAX_PAGES).each do |page|
- result = open_api(url + "&page=#{page}").map { |m| m["login"] }
+ result = open_api("#{url}&page=#{page}").map { |member| member["login"] }
members.concat(result)
re... | true |
Other | Homebrew | brew | f1ef1afd2130993cce87f27a634929810331ba1a.json | Add workflow scope to github.rb | Library/Homebrew/utils/github.rb | @@ -20,7 +20,8 @@ module GitHub
CREATE_GIST_SCOPES = ["gist"].freeze
CREATE_ISSUE_FORK_OR_PR_SCOPES = ["public_repo"].freeze
- ALL_SCOPES = (CREATE_GIST_SCOPES + CREATE_ISSUE_FORK_OR_PR_SCOPES).freeze
+ CREATE_WORKFLOW_SCOPES = ["workflow"].freeze
+ ALL_SCOPES = (CREATE_GIST_SCOPES + CREATE_ISSUE_FORK_OR_PR_... | false |
Other | Homebrew | brew | 221983dbcff442fa98d28c36cb2fb74af376d937.json | compilers: prefer gcc 5 on linux
Fixes #10170 by preferring gcc@5 on linux
This makes sure ENV.cc and ENV.cxx is correctly set:
If a formula does not explicitely depend on a brewed gcc,
ENV.cc is set to gcc-5 (system gcc-5 or brewed gcc-5) with this change,
even if other gcc versions are installed on the system. | Library/Homebrew/compilers.rb | @@ -78,6 +78,7 @@ def inspect
#
# @api private
class CompilerSelector
+ extend T::Sig
include CompilerConstants
Compiler = Struct.new(:name, :version)
@@ -111,9 +112,14 @@ def compiler
private
+ sig { returns(String) }
+ def preferred_gcc
+ "gcc"
+ end
+
def gnu_gcc_versions
# prioritiz... | true |
Other | Homebrew | brew | 221983dbcff442fa98d28c36cb2fb74af376d937.json | compilers: prefer gcc 5 on linux
Fixes #10170 by preferring gcc@5 on linux
This makes sure ENV.cc and ENV.cxx is correctly set:
If a formula does not explicitely depend on a brewed gcc,
ENV.cc is set to gcc-5 (system gcc-5 or brewed gcc-5) with this change,
even if other gcc versions are installed on the system. | Library/Homebrew/extend/os/compilers.rb | @@ -0,0 +1,4 @@
+# typed: strict
+# frozen_string_literal: true
+
+require "extend/os/linux/compilers" if OS.linux? | true |
Other | Homebrew | brew | 221983dbcff442fa98d28c36cb2fb74af376d937.json | compilers: prefer gcc 5 on linux
Fixes #10170 by preferring gcc@5 on linux
This makes sure ENV.cc and ENV.cxx is correctly set:
If a formula does not explicitely depend on a brewed gcc,
ENV.cc is set to gcc-5 (system gcc-5 or brewed gcc-5) with this change,
even if other gcc versions are installed on the system. | Library/Homebrew/extend/os/linux/compilers.rb | @@ -0,0 +1,11 @@
+# typed: strict
+# frozen_string_literal: true
+
+class CompilerSelector
+ sig { returns(String) }
+ def preferred_gcc
+ # gcc-5 is the lowest gcc version we support on Linux.
+ # gcc-5 is the default gcc in Ubuntu 16.04 (used for our CI)
+ "gcc@5"
+ end
+end | true |
Other | Homebrew | brew | 221983dbcff442fa98d28c36cb2fb74af376d937.json | compilers: prefer gcc 5 on linux
Fixes #10170 by preferring gcc@5 on linux
This makes sure ENV.cc and ENV.cxx is correctly set:
If a formula does not explicitely depend on a brewed gcc,
ENV.cc is set to gcc-5 (system gcc-5 or brewed gcc-5) with this change,
even if other gcc versions are installed on the system. | Library/Homebrew/test/compiler_selector_spec.rb | @@ -22,6 +22,7 @@
case name
when "gcc-7" then Version.create("7.1")
when "gcc-6" then Version.create("6.1")
+ when "gcc-5" then Version.create("5.1")
else Version::NULL
end
end
@@ -42,16 +43,31 @@
expect(selector.compiler).to eq("gcc-7")
end
- it "returns gc... | true |
Other | Homebrew | brew | 65d5c11f15644bc0103e5cb87011d4ba7a61b586.json | Update list_spec.rb for cask full_name | Library/Homebrew/test/cask/cmd/list_spec.rb | @@ -87,7 +87,7 @@
let(:casks) { ["local-caffeine", "local-transmission", "third-party/tap/third-party-cask"] }
let(:expected_output) {
<<~EOS
- [{"token":"local-caffeine","full_token":"homebrew/cask/local-caffeine","tap":"homebrew/cask","name":[],"desc":null,"homepage":"https://brew.sh/","url":"... | false |
Other | Homebrew | brew | ce7ab823ed5b93ae4588e754c3cc64974c0882f7.json | Replace test for checking formulae tap
As suggested by @Rylan12, integration tests are super slow.
Co-Authored-By: Rylan Polster <rslpolster@gmail.com> | Library/Homebrew/test/cmd/info_spec.rb | @@ -6,19 +6,6 @@
require "cmd/shared_examples/args_parse"
describe "brew info" do
- let(:tarball) do
- if OS.linux?
- TEST_FIXTURE_DIR/"tarballs/testball-0.1-linux.tbz"
- else
- TEST_FIXTURE_DIR/"tarballs/testball-0.1.tbz"
- end
- end
- let(:expected_output) {
- <<~EOS
- {"formulae":[{... | true |
Other | Homebrew | brew | ce7ab823ed5b93ae4588e754c3cc64974c0882f7.json | Replace test for checking formulae tap
As suggested by @Rylan12, integration tests are super slow.
Co-Authored-By: Rylan Polster <rslpolster@gmail.com> | Library/Homebrew/test/formula_spec.rb | @@ -838,6 +838,7 @@
expect(h).to be_a(Hash)
expect(h["name"]).to eq("foo")
expect(h["full_name"]).to eq("foo")
+ expect(h["tap"]).to eq("homebrew/core")
expect(h["versions"]["stable"]).to eq("1.0")
expect(h["versions"]["bottle"]).to be_truthy
end | true |
Other | Homebrew | brew | 7ca79553f0ba9e2e83d3bad069ba90eb576fd3cf.json | Add test to check --json=v2 format | Library/Homebrew/test/cmd/info_spec.rb | @@ -6,6 +6,19 @@
require "cmd/shared_examples/args_parse"
describe "brew info" do
+ let(:tarball) do
+ if OS.linux?
+ TEST_FIXTURE_DIR/"tarballs/testball-0.1-linux.tbz"
+ else
+ TEST_FIXTURE_DIR/"tarballs/testball-0.1.tbz"
+ end
+ end
+ let(:expected_output) {
+ <<~EOS
+ {"formulae":[{... | false |
Other | Homebrew | brew | a20b60112059a2f807406a79505bc066c86712d8.json | Add tap to formula json output | Library/Homebrew/formula.rb | @@ -1766,6 +1766,7 @@ def to_hash
hsh = {
"name" => name,
"full_name" => full_name,
+ "tap" => tap.name,
"oldname" => oldname,
"aliases" => aliases.sort,
"versioned_formulae" => v... | false |
Other | Homebrew | brew | 84d80cf0bf9d651d5f1668e122215324fd7d015f.json | Add tap to cask json output | Library/Homebrew/cask/cask.rb | @@ -170,6 +170,7 @@ def to_h
{
"token" => token,
"full_token" => "#{tap.name}/#{token}",
+ "tap" => tap.name,
"name" => name,
"desc" => desc,
"homepage" => homepage, | true |
Other | Homebrew | brew | 84d80cf0bf9d651d5f1668e122215324fd7d015f.json | Add tap to cask json output | Library/Homebrew/test/cask/cmd/list_spec.rb | @@ -87,7 +87,7 @@
let(:casks) { ["local-caffeine", "local-transmission", "third-party/tap/third-party-cask"] }
let(:expected_output) {
<<~EOS
- [{"token":"local-caffeine","full_token":"homebrew/cask/local-caffeine","name":[],"desc":null,"homepage":"https://brew.sh/","url":"file:///usr/local/Home... | true |
Other | Homebrew | brew | f68a3961c75fbc2dc2bd2b3fe0e67f70c981675f.json | Prepare deprecations for the old bottle syntax | Library/Homebrew/formula.rb | @@ -2447,11 +2447,11 @@ def sha256(val)
#
# <pre>bottle do
# root_url "https://example.com" # Optional root to calculate bottle URLs.
- # cellar "/opt/homebrew/Cellar" # Optional HOMEBREW_CELLAR in which the bottles were built.
# rebuild 1 # Marks the old bottle as outdated without bumping ... | true |
Other | Homebrew | brew | f68a3961c75fbc2dc2bd2b3fe0e67f70c981675f.json | Prepare deprecations for the old bottle syntax | Library/Homebrew/software_spec.rb | @@ -371,6 +371,14 @@ def root_url(var = nil, specs = {})
end
def cellar(val = nil)
+ # TODO: (3.1) uncomment to deprecate the old bottle syntax
+ # if val.present?
+ # odeprecated(
+ # "`cellar` in a bottle block",
+ # "`brew style --fix` on the formula to update the style or use `sha25... | true |
Other | Homebrew | brew | ab08b01b3f4c6e45c8eba4867b80655f2f24e34a.json | workflows/doctor: fix workflow not running | .github/workflows/doctor.yml | @@ -8,20 +8,22 @@ on:
- Library/Homebrew/extend/os/diagnostic.rb
- Library/Homebrew/extend/os/mac/diagnostic.rb
- Library/Homebrew/os/mac/xcode.rb
- branches-ignore:
- - master
env:
HOMEBREW_DEVELOPER: 1
HOMEBREW_NO_AUTO_UPDATE: 1
+ HOMEBREW_CHANGE_ARCH_TO_ARM: 1
jobs:
tests:
... | false |
Other | Homebrew | brew | 9394fe2b5211e5a5f5a3d2bb5b991a3c7ccc7bc4.json | utils/github: Use constant everywhere for "create a PAT" message
- This way if we ever change this messaging, we only have to do so once. | Library/Homebrew/utils/github.rb | @@ -49,9 +49,8 @@ def initialize(reset, github_message)
@github_message = github_message
super <<~EOS
GitHub API Error: #{github_message}
- Try again in #{pretty_ratelimit_reset(reset)}, or create a personal access token:
- #{ALL_SCOPES_URL}
- #{Utils::Shell.set_variable_in... | false |
Other | Homebrew | brew | ccb6d5e834dbfe91043b324af95872840903aec7.json | utils/github: Handle users not having any GitHub credentials
- When running `brew request-bottle`, users who don't have credentials
in the macOS keychain (ie, Linux users) or `HOMEBREW_GITHUB_API_TOKEN`
receive "Error: Not Found" from the GitHub API returning a 404.
- This is cryptic and confusing for newcomers to... | Library/Homebrew/utils/github.rb | @@ -24,6 +24,11 @@ module GitHub
ALL_SCOPES_URL = Formatter.url(
"https://github.com/settings/tokens/new?scopes=#{ALL_SCOPES.join(",")}&description=Homebrew",
).freeze
+ CREATE_GITHUB_PAT_MESSAGE = <<~EOS
+ Create a GitHub personal access token:
+ #{ALL_SCOPES_URL}
+ #{Utils::Shell.set_variab... | false |
Other | Homebrew | brew | 3dccea251fd03fd35626de1654ab0e930ae6c53d.json | bottle: write bottles in correct order | Library/Homebrew/software_spec.rb | @@ -435,7 +435,10 @@ def checksum_for(tag)
def checksums
tags = collector.keys.sort_by do |tag|
- "#{OS::Mac::Version.from_symbol(tag)}_#{tag}"
+ version = OS::Mac::Version.from_symbol(tag)
+ # Give arm64 bottles a higher priority so they are first
+ priority = version.arch == :arm64 ? "2"... | true |
Other | Homebrew | brew | 3dccea251fd03fd35626de1654ab0e930ae6c53d.json | bottle: write bottles in correct order | Library/Homebrew/test/dev-cmd/bottle_spec.rb | @@ -50,6 +50,17 @@
end
before do
+ Pathname("#{TEST_TMPDIR}/testball-1.0.arm64_big_sur.bottle.json").write stub_hash(
+ name: "testball",
+ version: "1.0",
+ path: "#{core_tap.path}/Formula/testball.rb",
+ cellar: "any_skip_relocation",
+ ... | true |
Other | Homebrew | brew | a90fb27adb42655191b90fdc42acae364fde81de.json | untap: add missing --force switch | Library/Homebrew/cmd/untap.rb | @@ -14,6 +14,8 @@ def untap_args
description <<~EOS
Remove a tapped formula repository.
EOS
+ switch "-f", "--force",
+ description: "Untap even if formulae or casks from this tap are currently installed."
named_args :tap, min: 1
end | true |
Other | Homebrew | brew | a90fb27adb42655191b90fdc42acae364fde81de.json | untap: add missing --force switch | completions/bash/brew | @@ -2047,6 +2047,7 @@ _brew_untap() {
-*)
__brewcomp "
--debug
+ --force
--help
--quiet
--verbose | true |
Other | Homebrew | brew | a90fb27adb42655191b90fdc42acae364fde81de.json | untap: add missing --force switch | completions/fish/brew.fish | @@ -1406,6 +1406,7 @@ __fish_brew_complete_arg 'unpin' -a '(__fish_brew_suggest_formulae_installed)'
__fish_brew_complete_cmd 'untap' 'Remove a tapped formula repository'
__fish_brew_complete_arg 'untap' -l debug -d 'Display any debugging information'
+__fish_brew_complete_arg 'untap' -l force -d 'Untap even if for... | true |
Other | Homebrew | brew | a90fb27adb42655191b90fdc42acae364fde81de.json | untap: add missing --force switch | completions/zsh/_brew | @@ -1638,6 +1638,7 @@ _brew_unpin() {
_brew_untap() {
_arguments \
'--debug[Display any debugging information]' \
+ '--force[Untap even if formulae or casks from this tap are currently installed]' \
'--help[Show this message]' \
'--quiet[Make some output more quiet]' \
'--verbose[Make some ou... | true |
Other | Homebrew | brew | a90fb27adb42655191b90fdc42acae364fde81de.json | untap: add missing --force switch | docs/Manpage.md | @@ -590,10 +590,13 @@ for temporarily disabling a formula:
Unpin *`formula`*, allowing them to be upgraded by `brew upgrade` *`formula`*.
See also `pin`.
-### `untap` *`tap`* [...]
+### `untap` [*`--force`*] *`tap`* [...]
Remove a tapped formula repository.
+* `-f`, `--force`:
+ Untap even if formulae or cask... | true |
Other | Homebrew | brew | a90fb27adb42655191b90fdc42acae364fde81de.json | untap: add missing --force switch | manpages/brew.1 | @@ -793,9 +793,13 @@ List files which would be unlinked without actually unlinking or deleting any fi
.SS "\fBunpin\fR \fIinstalled_formula\fR [\.\.\.]"
Unpin \fIformula\fR, allowing them to be upgraded by \fBbrew upgrade\fR \fIformula\fR\. See also \fBpin\fR\.
.
-.SS "\fBuntap\fR \fItap\fR [\.\.\.]"
+.SS "\fBuntap\... | true |
Other | Homebrew | brew | 7d8437608e7ba37f7dbd0561d25210ff30c4e099.json | Add JSONFormatter explicitly | Library/Homebrew/test/spec_helper.rb | @@ -3,22 +3,17 @@
if ENV["HOMEBREW_TESTS_COVERAGE"]
require "simplecov"
+ require "simplecov_json_formatter"
- formatters = [SimpleCov::Formatter::HTMLFormatter]
- if RUBY_PLATFORM[/darwin/]
- require "simplecov_json_formatter"
-
- formatters << SimpleCov::Formatter::JSONFormatter
+ formatters = [Simp... | false |
Other | Homebrew | brew | 6e3011a8cc639980fc90c8f05d29fc8c4499f959.json | docs: update bottle documentation | docs/Bottles.md | @@ -22,9 +22,10 @@ A simple (and typical) example:
```ruby
bottle do
- sha256 "4921af80137af9cc3d38fd17c9120da882448a090b0a8a3a19af3199b415bfca" => :sierra
- sha256 "c71db15326ee9196cd98602e38d0b7fb2b818cdd48eede4ee8eb827d809e09ba" => :el_capitan
- sha256 "85cc828a96735bdafcf29eb6291ca91bac846579bcef7308536e0c87... | false |
Other | Homebrew | brew | 727ac9b47f0b0726e1bc18bf5d2d4aa7817b1a14.json | bottle: write bottles with new syntax | Library/Homebrew/dev-cmd/bottle.rb | @@ -194,24 +194,50 @@ def keg_contain_absolute_symlink_starting_with?(string, keg, args:)
!absolute_symlinks_start_with_string.empty?
end
- def generate_sha256_line(tag, digest, cellar)
+ def cellar_parameter_needed?(cellar)
default_cellars = [
Homebrew::DEFAULT_MACOS_CELLAR,
Homebrew::DE... | true |
Other | Homebrew | brew | 727ac9b47f0b0726e1bc18bf5d2d4aa7817b1a14.json | bottle: write bottles with new syntax | Library/Homebrew/test/dev-cmd/bottle_spec.rb | @@ -96,7 +96,7 @@
==> testball
bottle do
root_url "#{HOMEBREW_BOTTLE_DEFAULT_DOMAIN}"
- sha256 cellar: :any_skip_relocation, big_sur: "a0af7dcbb5c83f6f3f7ecd507c2d352c1a018f894d51ad241ce8492fa598010f"
+ sha256 cellar: :any_skip_relocation, big_sur: "a0af7dcbb5c83f... | true |
Other | Homebrew | brew | dee57c307d75bc8cd920bcd1fb9bd55cf75e9a48.json | style: allow long lines for bottle digests | Library/.rubocop.yml | @@ -356,6 +356,7 @@ Layout/LineLength:
' pkg "',
' pkgutil: "',
" sha256 cellar: ",
+ " sha256 ",
"#{language}",
"#{version.",
' "/Library/Application Support/', | false |
Other | Homebrew | brew | 440803e98bf27e01a5669b5c7e1d0e3c5f0a6b7d.json | Update RBI files for rubocop-rspec. | Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.2.0.rbi | @@ -82,12 +82,13 @@ end
RuboCop::Cop::RSpec::AlignRightLetBrace::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::RSpec::AnyInstance < ::RuboCop::Cop::RSpec::Base
- def disallowed_stub(param0 = T.unsafe(nil)); end
def on_send(node); end
end
RuboCop::Cop::RSpec::AnyInstance::MSG = T.let(T.unsafe(nil), ... | false |
Other | Homebrew | brew | 9f7d0d1fb9cb2a01a4bb44582f1f418dccbdf750.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -532,14 +532,6 @@ class ActiveSupport::CurrentAttributes
def _reset_callbacks(); end
def _run_reset_callbacks(&block); end
-
- def attributes(); end
-
- def attributes=(attributes); end
-
- def reset(); end
-
- def set(set_attributes); end
end
class ActiveSupport::CurrentAttributes
@@ -561,17 +553,9 ... | false |
Other | Homebrew | brew | 23701543ae1bb5d4044b874b00dbbe0fff799e33.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 | @@ -532,14 +532,6 @@ class ActiveSupport::CurrentAttributes
def _reset_callbacks(); end
def _run_reset_callbacks(&block); end
-
- def attributes(); end
-
- def attributes=(attributes); end
-
- def reset(); end
-
- def set(set_attributes); end
end
class ActiveSupport::CurrentAttributes
@@ -561,17 +553,9 ... | false |
Other | Homebrew | brew | f15681ccd9ae827551906c51c88bf64dd6634333.json | utils/github: fix false positive API credential error | Library/Homebrew/utils/github.rb | @@ -150,13 +150,11 @@ def api_credentials_error_message(response_headers, needed_scopes)
return if response_headers.empty?
scopes = response_headers["x-accepted-oauth-scopes"].to_s.split(", ")
- return if scopes.present?
-
- needed_human_scopes = needed_scopes.join(", ")
+ needed_scopes = Set.new(s... | false |
Other | Homebrew | brew | 7dd69d2c94ed801285a164439f3fcbf17a2a6894.json | cmd/--prefix: ignore shared-mime-info and mactex
The shared-mime-info formula and the mactex cask currently install into
locations that are picked up by `brew --prefix --unbrewed`. This leads
to a very large number of files being found.
Before:
```
❯ brew --prefix --unbrewed | wc -l
206735
```
After
```
❯ brew --pre... | Library/Homebrew/cmd/--prefix.rb | @@ -88,6 +88,8 @@ def __prefix
share/pypy3/*
share/info/dir
share/man/whatis
+ share/mime/*
+ texlive/*
].freeze
def list_unbrewed | false |
Other | Homebrew | brew | b670ab1c7b1bf3a2edecbbe0e12f8ab5b86732af.json | Deprecate additional arch functions | Library/Homebrew/hardware.rb | @@ -80,6 +80,8 @@ def arch
end
def universal_archs
+ odeprecated "Hardware::CPU.universal_archs"
+
[arch].extend ArchitectureListExtension
end
| true |
Other | Homebrew | brew | b670ab1c7b1bf3a2edecbbe0e12f8ab5b86732af.json | Deprecate additional arch functions | Library/Homebrew/os/mac/architecture_list.rb | @@ -1,6 +1,8 @@
# typed: false
# frozen_string_literal: true
+# TODO: (3.2) remove this module when the linked deprecated functions are removed.
+
require "hardware"
module ArchitectureListExtension | true |
Other | Homebrew | brew | b670ab1c7b1bf3a2edecbbe0e12f8ab5b86732af.json | Deprecate additional arch functions | Library/Homebrew/os/mac/mach.rb | @@ -67,6 +67,7 @@ def dynamically_linked_libraries(except: :none)
end
def archs
+ # TODO: (3.2) remove ArchitectureListExtension
mach_data.map { |m| m.fetch :arch }.extend(ArchitectureListExtension)
end
| true |
Other | Homebrew | brew | b670ab1c7b1bf3a2edecbbe0e12f8ab5b86732af.json | Deprecate additional arch functions | Library/Homebrew/utils.rb | @@ -384,6 +384,8 @@ def gzip(*paths)
# Returns array of architectures that the given command or library is built for.
def archs_for_command(cmd)
+ odeprecated "archs_for_command"
+
cmd = which(cmd) unless Pathname.new(cmd).absolute?
Pathname.new(cmd).archs
end | true |
Other | Homebrew | brew | d0fa752c690907bcc778553d8efe466f702390d6.json | env_config: update HOMEBREW_BOOTSNAP description.
Note that it is a no-op when using portable ruby. | Library/Homebrew/env_config.rb | @@ -40,7 +40,8 @@ module EnvConfig
description: "Use this username when accessing the Bintray API (where bottles are stored).",
},
HOMEBREW_BOOTSNAP: {
- description: "If set, use Bootsnap to speed up repeated `brew` calls.",
+ description: "If set, use Bootsnap... | true |
Other | Homebrew | brew | d0fa752c690907bcc778553d8efe466f702390d6.json | env_config: update HOMEBREW_BOOTSNAP description.
Note that it is a no-op when using portable ruby. | docs/Manpage.md | @@ -1708,7 +1708,7 @@ example, run `export HOMEBREW_NO_INSECURE_REDIRECT=1` rather than just
<br>Use this username when accessing the Bintray API (where bottles are stored).
- `HOMEBREW_BOOTSNAP`
- <br>If set, use Bootsnap to speed up repeated `brew` calls.
+ <br>If set, use Bootsnap to speed up repeated `brew`... | true |
Other | Homebrew | brew | d0fa752c690907bcc778553d8efe466f702390d6.json | env_config: update HOMEBREW_BOOTSNAP description.
Note that it is a no-op when using portable ruby. | manpages/brew.1 | @@ -2379,7 +2379,7 @@ Use this username when accessing the Bintray API (where bottles are stored)\.
\fBHOMEBREW_BOOTSNAP\fR
.
.br
-If set, use Bootsnap to speed up repeated \fBbrew\fR calls\.
+If set, use Bootsnap to speed up repeated \fBbrew\fR calls\. A no\-op when using Homebrew\'s vendored, relocatable Ruby on m... | true |
Other | Homebrew | brew | d3507d9899e94c5371e8172162cc5082b242aec8.json | test/language/java_spec: test both Mac and Linux | Library/Homebrew/test/language/java_spec.rb | @@ -11,55 +11,53 @@
end
end
+ let(:expected_home) do
+ if OS.mac?
+ f.opt_libexec/"openjdk.jdk/Contents/Home"
+ else
+ f.opt_libexec
+ end
+ end
+
before do
allow(Formula).to receive(:[]).and_return(f)
allow(f).to receive(:any_version_installed?).and_return(true)
allow(f... | false |
Other | Homebrew | brew | 240d2c34fb72a642a6163fa163bfd0b971761574.json | utils/fork: fix bootsnap handling.
Also, while we're here:
- remove unused block argument
- remove unneeded RuboCop disable comment | Library/Homebrew/utils/fork.rb | @@ -29,12 +29,15 @@ def self.rewrite_child_error(child_error)
error
end
- def self.safe_fork(&_block)
+ def self.safe_fork
Dir.mktmpdir("homebrew", HOMEBREW_TEMP) do |tmpdir|
UNIXServer.open("#{tmpdir}/socket") do |server|
read, write = IO.pipe
pid = fork do
+ # boot... | false |
Other | Homebrew | brew | b33a24feb0e29986345bec56db0c5f56eacfac56.json | homebrew_bootsnap: remove deprecated option.
Otherwise this prints a warning. | Library/Homebrew/homebrew_bootsnap.rb | @@ -27,10 +27,9 @@
raise "Needs HOMEBREW_TEMP or HOMEBREW_DEFAULT_TEMP!" unless tmp
Bootsnap.setup(
- cache_dir: "#{tmp}/homebrew-bootsnap",
- development_mode: false, # TODO: use ENV["HOMEBREW_DEVELOPER"]?,
- load_path_cache: true,
- autoload_paths_cache: true,
- compile_cache_iseq: true... | false |
Other | Homebrew | brew | 26755632a93f35ef338b927beccfe1101c802b42.json | rubocop.yml: restore buggy 1.9.0 cops. | Library/.rubocop.yml | @@ -54,12 +54,6 @@ FormulaAudit:
FormulaAuditStrict:
Enabled: true
-# TODO: try to re-enable in RuboCop >=1.9.1
-Lint/SymbolConversion:
- Enabled: false
-Style/EvalWithLocation:
- Enabled: false
-
# makes DSL usage ugly.
Layout/SpaceBeforeBrackets:
Exclude:
@@ -212,8 +206,7 @@ Rails/TimeZone:
# Don't al... | false |
Other | Homebrew | brew | d6bba1c4938ea9c9a9d58ba2f209775dd71a8537.json | java: fix java_home on macOS | Library/Homebrew/extend/os/language/java.rb | @@ -0,0 +1,4 @@
+# typed: strict
+# frozen_string_literal: true
+
+require "extend/os/mac/language/java" if OS.mac? | true |
Other | Homebrew | brew | d6bba1c4938ea9c9a9d58ba2f209775dd71a8537.json | java: fix java_home on macOS | Library/Homebrew/extend/os/mac/language/java.rb | @@ -0,0 +1,10 @@
+# typed: true
+# frozen_string_literal: true
+
+module Language
+ module Java
+ def self.java_home(version = nil)
+ find_openjdk_formula(version)&.opt_libexec&.join("openjdk.jdk/Contents/Home")
+ end
+ end
+end | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.