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 | 76e52ebe6241dec256e7c62aeb716aee5a9740ea.json | pr-pull: fix empty workflow check
workflow_run is an array, which first element is the json
returned by the github API. We need to check that first element
if we want to know if the workflow exists. | Library/Homebrew/dev-cmd/pr-pull.rb | @@ -419,9 +419,10 @@ def pr_pull
)
if args.ignore_missing_artifacts.present? &&
args.ignore_missing_artifacts.include?(workflow) &&
- workflow_run.empty?
+ workflow_run.first.blank?
# Ignore that workflow as it was not executed and we ... | false |
Other | Homebrew | brew | fd08ffdd67691b99bf3d6fd598ed40ef433d4c8b.json | cmd/update.sh: update Git logic.
Co-authored-by: Maxim Belkin <maxim.belkin@gmail.com> | Library/Homebrew/cmd/update.sh | @@ -383,9 +383,7 @@ EOS
! -x "$HOMEBREW_PREFIX/opt/git/bin/git" ]]
then
ohai "Installing Homebrew Git"
- [[ -d "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-core" ]] && brew install git
- unset GIT_EXECUTABLE
- if ! git --version &>/dev/null
+ if [[ -d "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-co... | false |
Other | Homebrew | brew | 20de58b5ae473939e9a39d4e79c3a6f7601d6bf1.json | bump-formula-pr: use new update_python_resources! signature | Library/Homebrew/dev-cmd/bump-formula-pr.rb | @@ -336,7 +336,7 @@ def bump_formula_pr
end
unless args.dry_run?
- resources_checked = PyPI.update_python_resources! formula, new_formula_version,
+ resources_checked = PyPI.update_python_resources! formula, version: new_formula_version,
sil... | false |
Other | Homebrew | brew | 51a1b7c9e1b39e19cc93cb9e40017218a1d2d8cd.json | move pypi list to tap formula_lists directory | Library/Homebrew/dev-cmd/update-python-resources.rb | @@ -27,7 +27,6 @@ def update_python_resources_args
description: "Use the specified <version> when finding resources for <formula>. "\
"If no version is specified, the current version for <formula> will be used."
flag "--package-name=",
- depends_on: "--vers... | true |
Other | Homebrew | brew | 51a1b7c9e1b39e19cc93cb9e40017218a1d2d8cd.json | move pypi list to tap formula_lists directory | Library/Homebrew/tap.rb | @@ -21,11 +21,13 @@ class Tap
HOMEBREW_TAP_FORMULA_RENAMES_FILE = "formula_renames.json"
HOMEBREW_TAP_MIGRATIONS_FILE = "tap_migrations.json"
HOMEBREW_TAP_AUDIT_EXCEPTIONS_DIR = "audit_exceptions"
+ HOMEBREW_TAP_FORMULA_LISTS_DIR = "formula_lists"
HOMEBREW_TAP_JSON_FILES = %W[
#{HOMEBREW_TAP_FORMULA... | true |
Other | Homebrew | brew | 51a1b7c9e1b39e19cc93cb9e40017218a1d2d8cd.json | move pypi list to tap formula_lists directory | Library/Homebrew/tap_auditor.rb | @@ -15,13 +15,14 @@ def initialize(tap, strict:)
@name = tap.name
@path = tap.path
@tap_audit_exceptions = tap.audit_exceptions
+ @tap_formula_lists = tap.formula_lists
@problems = []
end
sig { void }
def audit
audit... | true |
Other | Homebrew | brew | 51a1b7c9e1b39e19cc93cb9e40017218a1d2d8cd.json | move pypi list to tap formula_lists directory | Library/Homebrew/utils/pypi.rb | @@ -26,8 +26,9 @@ def update_pypi_url(url, version)
url
end
- # Get name, URL and SHA-256 checksum for a given PyPI package.
- def get_pypi_info(package, version)
+ # Get name, URL, SHA-256 checksum, and latest version for a given PyPI package.
+ def get_pypi_info(package, version = nil)
+ package = pa... | true |
Other | Homebrew | brew | b1d907291b7150b7a243c9a62ee22f3e9c0f2770.json | update man pages | docs/Manpage.md | @@ -1352,6 +1352,12 @@ Update versions for PyPI resource blocks in *`formula`*.
Don't fail if *`formula`* is not a PyPI package.
* `--version`:
Use the specified *`version`* when finding resources for *`formula`*. If no version is specified, the current version for *`formula`* will be used.
+* `--package-name`:
... | true |
Other | Homebrew | brew | b1d907291b7150b7a243c9a62ee22f3e9c0f2770.json | update man pages | manpages/brew.1 | @@ -1884,6 +1884,18 @@ Don\'t fail if \fIformula\fR is not a PyPI package\.
\fB\-\-version\fR
Use the specified \fIversion\fR when finding resources for \fIformula\fR\. If no version is specified, the current version for \fIformula\fR will be used\.
.
+.TP
+\fB\-\-package\-name\fR
+Use the specified \fIpackage\-name... | true |
Other | Homebrew | brew | c32415529532369c6fffdd34c95da1ee21546f87.json | Add debug information for empty BOM error. | Library/Homebrew/unpack_strategy/dmg.rb | @@ -91,18 +91,25 @@ def extract_to_dir(unpack_dir, basename:, verbose:)
Tempfile.open(["", ".bom"]) do |bomfile|
bomfile.close
+ bom = path.bom
+
Tempfile.open(["", ".list"]) do |filelist|
- filelist.puts(path.bom)
+ filelist.puts(bom)
filelis... | false |
Other | Homebrew | brew | 5d0a4d58c28420864aa248114a54572c694e474d.json | formula_auditor: add cairomm@1.14 to allowlist | Library/Homebrew/formula_auditor.rb | @@ -372,6 +372,7 @@ def audit_postgresql
openssl@1.1
python@3.8
python@3.9
+ cairomm@1.14
].freeze
def audit_versioned_keg_only | false |
Other | Homebrew | brew | 8598b1186a32c98e7ed292880ef135182825c42e.json | Handle macOS versions >= 11.1 correctly. | Library/Homebrew/extend/os/mac/extend/ENV/std.rb | @@ -7,7 +7,7 @@ module Stdenv
undef homebrew_extra_pkg_config_paths, x11
def homebrew_extra_pkg_config_paths
- ["#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.version}"]
+ ["#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.sdk_version}"]
end
def x11 | true |
Other | Homebrew | brew | 8598b1186a32c98e7ed292880ef135182825c42e.json | Handle macOS versions >= 11.1 correctly. | Library/Homebrew/extend/os/mac/extend/ENV/super.rb | @@ -34,7 +34,7 @@ def homebrew_extra_paths
# @private
def homebrew_extra_pkg_config_paths
paths = \
- ["/usr/lib/pkgconfig", "#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.version}"]
+ ["/usr/lib/pkgconfig", "#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.sdk_version}"]
paths <<... | true |
Other | Homebrew | brew | 8598b1186a32c98e7ed292880ef135182825c42e.json | Handle macOS versions >= 11.1 correctly. | Library/Homebrew/os/mac.rb | @@ -25,7 +25,7 @@ module Mac
# This can be compared to numerics, strings, or symbols
# using the standard Ruby Comparable methods.
def version
- @version ||= Version.new(full_version.to_s[/^\d+\.\d+/])
+ @version ||= Version.from_symbol(full_version.to_sym)
end
# This can be compare... | true |
Other | Homebrew | brew | 8598b1186a32c98e7ed292880ef135182825c42e.json | Handle macOS versions >= 11.1 correctly. | Library/Homebrew/os/mac/version.rb | @@ -1,6 +1,7 @@
# typed: true
# frozen_string_literal: true
+require "exceptions"
require "hardware"
require "version"
@@ -10,8 +11,10 @@ module Mac
#
# @api private
class Version < ::Version
+ extend T::Sig
+
SYMBOLS = {
- big_sur: "11.0",
+ big_sur: "11",
... | true |
Other | Homebrew | brew | 8598b1186a32c98e7ed292880ef135182825c42e.json | Handle macOS versions >= 11.1 correctly. | Library/Homebrew/os/mac/xcode.rb | @@ -22,7 +22,7 @@ module Xcode
def latest_version
latest_stable = "12.2"
case MacOS.version
- when /^11\./ then latest_stable
+ when "11" then latest_stable
when "10.15" then "12.2"
when "10.14" then "11.3.1"
when "10.13" then "10.1"
@@ -45,7 +45,7 @@ de... | true |
Other | Homebrew | brew | 8598b1186a32c98e7ed292880ef135182825c42e.json | Handle macOS versions >= 11.1 correctly. | Library/Homebrew/tap_constants.rb | @@ -6,7 +6,7 @@
# Match taps' casks, e.g. `someuser/sometap/somecask`
HOMEBREW_TAP_CASK_REGEX = %r{^([\w-]+)/([\w-]+)/([a-z0-9\-]+)$}.freeze
# Match taps' directory paths, e.g. `HOMEBREW_LIBRARY/Taps/someuser/sometap`
-HOMEBREW_TAP_DIR_REGEX = %r{#{Regexp.escape(HOMEBREW_LIBRARY)}/Taps/(?<user>[\w-]+)/(?<repo>[\w-]+... | true |
Other | Homebrew | brew | 8598b1186a32c98e7ed292880ef135182825c42e.json | Handle macOS versions >= 11.1 correctly. | Library/Homebrew/test/os/mac/diagnostic_spec.rb | @@ -6,25 +6,32 @@
describe Homebrew::Diagnostic::Checks do
specify "#check_for_unsupported_macos" do
ENV.delete("HOMEBREW_DEVELOPER")
- allow(OS::Mac).to receive(:version).and_return(OS::Mac::Version.new("10.14"))
+
+ macos_version = OS::Mac::Version.new("10.14")
+ allow(OS::Mac).to receive(:version).... | true |
Other | Homebrew | brew | 8598b1186a32c98e7ed292880ef135182825c42e.json | Handle macOS versions >= 11.1 correctly. | Library/Homebrew/test/os/mac/pkgconfig_spec.rb | @@ -15,7 +15,7 @@
# For indeterminable cases, consult https://opensource.apple.com for the version used.
describe "pkg-config" do
def pc_version(library)
- path = HOMEBREW_LIBRARY_PATH/"os/mac/pkgconfig/#{MacOS.version}/#{library}.pc"
+ path = HOMEBREW_LIBRARY_PATH/"os/mac/pkgconfig/#{MacOS.sdk_version}/#{li... | true |
Other | Homebrew | brew | 8598b1186a32c98e7ed292880ef135182825c42e.json | Handle macOS versions >= 11.1 correctly. | Library/Homebrew/test/os/mac/version_spec.rb | @@ -5,7 +5,9 @@
require "os/mac/version"
describe OS::Mac::Version do
- subject(:version) { described_class.new("10.14") }
+ let(:version) { described_class.new("10.14") }
+ let(:big_sur_major) { described_class.new("11.0") }
+ let(:big_sur_update) { described_class.new("11.1") }
specify "comparison with S... | true |
Other | Homebrew | brew | 8598b1186a32c98e7ed292880ef135182825c42e.json | Handle macOS versions >= 11.1 correctly. | Library/Homebrew/utils/analytics.rb | @@ -1,6 +1,7 @@
# typed: false
# frozen_string_literal: true
+require "context"
require "erb"
module Utils | true |
Other | Homebrew | brew | d5b184d17a9ffcfd5ad1c7c6780633a53e3f8086.json | Add types for `SystemCommand`. | Library/Homebrew/context.rb | @@ -34,15 +34,15 @@ def initialize(debug: nil, quiet: nil, verbose: nil)
end
def debug?
- @debug
+ @debug == true
end
def quiet?
- @quiet
+ @quiet == true
end
def verbose?
- @verbose
+ @verbose == true
end
end
| true |
Other | Homebrew | brew | d5b184d17a9ffcfd5ad1c7c6780633a53e3f8086.json | Add types for `SystemCommand`. | Library/Homebrew/sorbet/plugins/using.rb | @@ -3,7 +3,8 @@
source = ARGV[5]
-/\busing +Magic\b/.match(source) do |_|
+case source[/\Ausing\s+(.*)\Z/, 1]
+when "Magic"
puts <<-RUBY
# typed: strict
@@ -18,4 +19,13 @@ def file_type; end
def zipinfo; end
end
RUBY
+when "HashValidator"
+ puts <<-RUBY
+ # typed: strict
+
+ class :... | true |
Other | Homebrew | brew | d5b184d17a9ffcfd5ad1c7c6780633a53e3f8086.json | Add types for `SystemCommand`. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -28559,6 +28559,7 @@ class Socket
IPV6_PATHMTU = ::T.let(nil, ::T.untyped)
IPV6_RECVPATHMTU = ::T.let(nil, ::T.untyped)
IPV6_USE_MIN_MTU = ::T.let(nil, ::T.untyped)
+ IP_DONTFRAG = ::T.let(nil, ::T.untyped)
IP_PORTRANGE = ::T.let(nil, ::T.untyped)
IP_RECVDSTADDR = ::T.let(nil, ::T.untyped)
IP_RECV... | true |
Other | Homebrew | brew | d5b184d17a9ffcfd5ad1c7c6780633a53e3f8086.json | Add types for `SystemCommand`. | Library/Homebrew/sorbet/triggers.yml | @@ -2,6 +2,6 @@ ruby_extra_args:
- --disable-gems
triggers:
- using: sorbet/plugins/unpack_strategy_magic.rb
+ using: sorbet/plugins/using.rb
attr_predicate: sorbet/plugins/attr_predicate.rb
delegate: sorbet/plugins/delegate.rb | true |
Other | Homebrew | brew | d5b184d17a9ffcfd5ad1c7c6780633a53e3f8086.json | Add types for `SystemCommand`. | Library/Homebrew/system_command.rb | @@ -9,22 +9,23 @@
require "extend/io"
require "extend/predicable"
require "extend/hash_validator"
-using HashValidator
# Class for running sub-processes and capturing their output and exit status.
#
# @api private
class SystemCommand
extend T::Sig
+ using HashValidator
+
# Helper functions for calling... | true |
Other | Homebrew | brew | d5b184d17a9ffcfd5ad1c7c6780633a53e3f8086.json | Add types for `SystemCommand`. | Library/Homebrew/test/cask/artifact/shared_examples/uninstall_zap.rb | @@ -8,7 +8,7 @@
let(:artifact_dsl_key) { described_class.dsl_key }
let(:artifact) { cask.artifacts.find { |a| a.is_a?(described_class) } }
- let(:fake_system_command) { FakeSystemCommand }
+ let(:fake_system_command) { class_double(SystemCommand) }
context "using :launchctl" do
let(:cask) { Cask::Ca... | true |
Other | Homebrew | brew | d5b184d17a9ffcfd5ad1c7c6780633a53e3f8086.json | Add types for `SystemCommand`. | Library/Homebrew/test/cask/dsl/postflight_spec.rb | @@ -6,7 +6,8 @@
describe Cask::DSL::Postflight, :cask do
let(:cask) { Cask::CaskLoader.load(cask_path("basic-cask")) }
- let(:dsl) { described_class.new(cask, FakeSystemCommand) }
+ let(:fake_system_command) { class_double(SystemCommand) }
+ let(:dsl) { described_class.new(cask, fake_system_command) }
it_... | true |
Other | Homebrew | brew | d5b184d17a9ffcfd5ad1c7c6780633a53e3f8086.json | Add types for `SystemCommand`. | Library/Homebrew/test/cask/dsl/preflight_spec.rb | @@ -6,7 +6,8 @@
describe Cask::DSL::Preflight, :cask do
let(:cask) { Cask::CaskLoader.load(cask_path("basic-cask")) }
- let(:dsl) { described_class.new(cask, FakeSystemCommand) }
+ let(:fake_system_command) { class_double(SystemCommand) }
+ let(:dsl) { described_class.new(cask, fake_system_command) }
it_b... | true |
Other | Homebrew | brew | d5b184d17a9ffcfd5ad1c7c6780633a53e3f8086.json | Add types for `SystemCommand`. | Library/Homebrew/test/cask/dsl/shared_examples/staged.rb | @@ -4,8 +4,8 @@
require "cask/staged"
shared_examples Cask::Staged do
- let(:existing_path) { Pathname.new("/path/to/file/that/exists") }
- let(:non_existent_path) { Pathname.new("/path/to/file/that/does/not/exist") }
+ let(:existing_path) { Pathname("/path/to/file/that/exists") }
+ let(:non_existent_path) { Pa... | true |
Other | Homebrew | brew | d5b184d17a9ffcfd5ad1c7c6780633a53e3f8086.json | Add types for `SystemCommand`. | Library/Homebrew/test/cask/dsl/uninstall_postflight_spec.rb | @@ -5,7 +5,7 @@
describe Cask::DSL::UninstallPostflight, :cask do
let(:cask) { Cask::CaskLoader.load(cask_path("basic-cask")) }
- let(:dsl) { described_class.new(cask, FakeSystemCommand) }
+ let(:dsl) { described_class.new(cask, class_double(SystemCommand)) }
it_behaves_like Cask::DSL::Base
end | true |
Other | Homebrew | brew | d5b184d17a9ffcfd5ad1c7c6780633a53e3f8086.json | Add types for `SystemCommand`. | Library/Homebrew/test/cask/dsl/uninstall_preflight_spec.rb | @@ -6,7 +6,8 @@
describe Cask::DSL::UninstallPreflight, :cask do
let(:cask) { Cask::CaskLoader.load(cask_path("basic-cask")) }
- let(:dsl) { described_class.new(cask, FakeSystemCommand) }
+ let(:fake_system_command) { class_double(SystemCommand) }
+ let(:dsl) { described_class.new(cask, fake_system_command) }
... | true |
Other | Homebrew | brew | d5b184d17a9ffcfd5ad1c7c6780633a53e3f8086.json | Add types for `SystemCommand`. | Library/Homebrew/test/cask/pkg_spec.rb | @@ -153,8 +153,12 @@
"/usr/sbin/pkgutil",
args: ["--pkg-info-plist", pkg_id],
).and_return(
- SystemCommand::Result.new(nil, [[:stdout, pkg_info_plist]], instance_double(Process::Status, exitstatus: 0),
- secrets: []),
+ SystemCommand::Result.new(
... | true |
Other | Homebrew | brew | d5b184d17a9ffcfd5ad1c7c6780633a53e3f8086.json | Add types for `SystemCommand`. | Library/Homebrew/test/support/helper/cask/fake_system_command.rb | @@ -1,74 +0,0 @@
-# typed: true
-# frozen_string_literal: true
-
-def sudo(*args)
- ["/usr/bin/sudo", "-E", "--"] + args.flatten
-end
-
-class FakeSystemCommand
- def self.responses
- @responses ||= {}
- end
-
- def self.expectations
- @expectations ||= {}
- end
-
- def self.system_calls
- @system_calls ... | true |
Other | Homebrew | brew | d5b184d17a9ffcfd5ad1c7c6780633a53e3f8086.json | Add types for `SystemCommand`. | Library/Homebrew/test/support/helper/spec/shared_context/homebrew_cask.rb | @@ -4,7 +4,6 @@
require "cask/config"
require "cask/cache"
-require "test/support/helper/cask/fake_system_command"
require "test/support/helper/cask/install_helper"
require "test/support/helper/cask/never_sudo_system_command"
| true |
Other | Homebrew | brew | 45ed865008409dcb1bb8d54e4b6c61684d9e5c96.json | bump-cask-pr: run auto-update beforehand | Library/Homebrew/brew.sh | @@ -160,7 +160,7 @@ update-preinstall() {
fi
if [[ "$HOMEBREW_COMMAND" = "install" || "$HOMEBREW_COMMAND" = "upgrade" ||
- "$HOMEBREW_COMMAND" = "bump-formula-pr" ||
+ "$HOMEBREW_COMMAND" = "bump-formula-pr" || "$HOMEBREW_COMMAND" = "bump-cask-pr" ||
"$HOMEBREW_COMMAND" = "bundle" ||
... | false |
Other | Homebrew | brew | 0424940496d69d1520043035e0993ad9c79c5cc5.json | Add types for `ENV` extensions. | Library/Homebrew/env_config.rb | @@ -351,6 +351,7 @@ def env_method_name(env, hash)
end
# Needs a custom implementation.
+ sig { returns(String) }
def make_jobs
jobs = ENV["HOMEBREW_MAKE_JOBS"].to_i
return jobs.to_s if jobs.positive? | true |
Other | Homebrew | brew | 0424940496d69d1520043035e0993ad9c79c5cc5.json | Add types for `ENV` extensions. | Library/Homebrew/extend/ENV.rb | @@ -1,4 +1,4 @@
-# typed: false
+# typed: strict
# frozen_string_literal: true
require "hardware"
@@ -7,11 +7,22 @@
require "extend/ENV/std"
require "extend/ENV/super"
-def superenv?(env)
- env != "std" && Superenv.bin
+module Kernel
+ extend T::Sig
+
+ sig { params(env: T.nilable(String)).returns(T::Boolean... | true |
Other | Homebrew | brew | 0424940496d69d1520043035e0993ad9c79c5cc5.json | Add types for `ENV` extensions. | Library/Homebrew/extend/ENV.rbi | @@ -0,0 +1,49 @@
+# typed: strict
+
+module EnvMethods
+ include Kernel
+
+ sig { params(key: String).returns(T::Boolean) }
+ def key?(key); end
+
+ sig { params(key: String).returns(T.nilable(String)) }
+ def [](key); end
+
+ sig { params(key: String).returns(String) }
+ def fetch(key); end
+
+ sig { params(ke... | true |
Other | Homebrew | brew | 0424940496d69d1520043035e0993ad9c79c5cc5.json | Add types for `ENV` extensions. | Library/Homebrew/extend/ENV/shared.rb | @@ -1,4 +1,4 @@
-# typed: false
+# typed: true
# frozen_string_literal: true
require "compilers"
@@ -11,13 +11,16 @@
# @see Stdenv
# @see https://www.rubydoc.info/stdlib/Env Ruby's ENV API
module SharedEnvExtension
+ extend T::Sig
+
include CompilerConstants
- # @private
CC_FLAG_VARS = %w[CFLAGS CXXFLA... | true |
Other | Homebrew | brew | 0424940496d69d1520043035e0993ad9c79c5cc5.json | Add types for `ENV` extensions. | Library/Homebrew/extend/ENV/shared.rbi | @@ -0,0 +1,15 @@
+# typed: strict
+
+module SharedEnvExtension
+ include EnvMethods
+end
+
+class Sorbet
+ module Private
+ module Static
+ class ENVClass
+ include SharedEnvExtension
+ end
+ end
+ end
+end | true |
Other | Homebrew | brew | 0424940496d69d1520043035e0993ad9c79c5cc5.json | Add types for `ENV` extensions. | Library/Homebrew/extend/ENV/std.rb | @@ -1,4 +1,4 @@
-# typed: false
+# typed: strict
# frozen_string_literal: true
require "hardware"
@@ -14,8 +14,16 @@ module Stdenv
SAFE_CFLAGS_FLAGS = "-w -pipe"
# @private
- def setup_build_environment(**options)
- super(**options)
+ sig do
+ params(
+ formula: T.nilable(Formula),
+ ... | true |
Other | Homebrew | brew | 0424940496d69d1520043035e0993ad9c79c5cc5.json | Add types for `ENV` extensions. | Library/Homebrew/extend/ENV/super.rb | @@ -1,4 +1,4 @@
-# typed: false
+# typed: true
# frozen_string_literal: true
require "extend/ENV/shared"
@@ -22,15 +22,18 @@ module Superenv
# @private
attr_accessor :keg_only_deps, :deps, :run_time_deps, :x11
+ sig { params(base: Superenv).void }
def self.extended(base)
base.keg_only_deps = []
... | true |
Other | Homebrew | brew | 0424940496d69d1520043035e0993ad9c79c5cc5.json | Add types for `ENV` extensions. | Library/Homebrew/extend/os/mac/extend/ENV/super.rb | @@ -27,7 +27,7 @@ def bin
def homebrew_extra_paths
paths = []
- paths << MacOS::XQuartz.bin.to_s if x11?
+ paths << MacOS::XQuartz.bin if x11?
paths
end
| true |
Other | Homebrew | brew | 0424940496d69d1520043035e0993ad9c79c5cc5.json | Add types for `ENV` extensions. | Library/Homebrew/utils/inreplace.rb | @@ -34,7 +34,7 @@ def initialize(errors)
# @api public
sig do
params(
- paths: T.any(T::Array[T.untyped], String),
+ paths: T.any(T::Array[T.untyped], String, Pathname),
before: T.nilable(T.any(Regexp, String)),
after: T.nilable(T.any(String, S... | true |
Other | Homebrew | brew | c00054f3ba95d97fbcab1f13b6182809808b5770.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 | @@ -5841,22 +5841,6 @@ module Cask::Utils
extend ::T::Private::Methods::SingletonMethodHooks
end
-class Caveats
- def empty?(*args, &block); end
-
- def to_s(*args, &block); end
-end
-
-class Checksum
- def [](*args, &block); end
-
- def empty?(*args, &block); end
-
- def length(*args, &block); end
-
- def ... | false |
Other | Homebrew | brew | 84de3c1eb6c5f69ac08a8a4ef81060e037cc0e5c.json | python: allow multi-digit minor versions | Library/Homebrew/language/python.rb | @@ -7,7 +7,7 @@ module Language
# @api public
module Python
def self.major_minor_version(python)
- version = /\d\.\d/.match `#{python} --version 2>&1`
+ version = /\d\.\d+/.match `#{python} --version 2>&1`
return unless version
Version.create(version.to_s) | false |
Other | Homebrew | brew | 4e1e280ace8759de737771f1f95240a1ea3afc13.json | brew.sh: remove HOMEBREW_DEVELOPER condition
This env variable is filtered out on test-bot. | Library/Homebrew/brew.sh | @@ -345,7 +345,7 @@ else
: "${HOMEBREW_OS_VERSION:=$(uname -r)}"
HOMEBREW_OS_USER_AGENT_VERSION="$HOMEBREW_OS_VERSION"
- if [[ -n "$HOMEBREW_FORCE_HOMEBREW_ON_LINUX" && -n "$HOMEBREW_DEVELOPER" && -n "$HOMEBREW_ON_DEBIAN7" ]]
+ if [[ -n "$HOMEBREW_FORCE_HOMEBREW_ON_LINUX" && -n "$HOMEBREW_ON_DEBIAN7" ]]
th... | false |
Other | Homebrew | brew | 75e55def94d9f0d6ec5bb5422ad19091de88763d.json | brew.sh: add missing quotes | Library/Homebrew/brew.sh | @@ -345,7 +345,7 @@ else
: "${HOMEBREW_OS_VERSION:=$(uname -r)}"
HOMEBREW_OS_USER_AGENT_VERSION="$HOMEBREW_OS_VERSION"
- if [[ -n $HOMEBREW_FORCE_HOMEBREW_ON_LINUX && -n $HOMEBREW_DEVELOPER && -n $HOMEBREW_ON_DEBIAN7 ]]
+ if [[ -n "$HOMEBREW_FORCE_HOMEBREW_ON_LINUX" && -n "$HOMEBREW_DEVELOPER" && -n "$HOMEBRE... | false |
Other | Homebrew | brew | 9f9eaa3e6e0837b9bfc8661bbf818aa73ed8493f.json | Remove amd-power-gadget from prerelease exceptions | Library/Homebrew/utils/shared_audits.rb | @@ -32,7 +32,6 @@ def github_release_data(user, repo, tag)
end
GITHUB_PRERELEASE_ALLOWLIST = {
- "amd-power-gadget" => :all,
"elm-format" => "0.8.3",
"extraterm" => :all,
"freetube" => :all, | false |
Other | Homebrew | brew | 3c2ec1c60f942ef7fe935ddf92272fc91c094306.json | Deprecate remaining cask commands. | Library/Homebrew/cask/cmd.rb | @@ -54,13 +54,23 @@ class Cmd
}.freeze
DEPRECATED_COMMANDS = {
- Cmd::Cache => "brew --cache --cask",
+ Cmd::Cache => "brew --cache [--cask]",
+ Cmd::Audit => "brew audit [--cask]",
+ Cmd::Cat => "brew cat [--cask]",
+ Cmd::Create => "brew create --cask --set-na... | true |
Other | Homebrew | brew | 3c2ec1c60f942ef7fe935ddf92272fc91c094306.json | Deprecate remaining cask commands. | Library/Homebrew/cask/cmd/edit.rb | @@ -35,7 +35,9 @@ def run
exec_editor cask_path
rescue CaskUnavailableError => e
reason = e.reason.empty? ? +"" : +"#{e.reason} "
- reason.concat("Run #{Formatter.identifier("brew cask create #{e.token}")} to create a new Cask.")
+ reason.concat(
+ "Run #{Formatter.identi... | true |
Other | Homebrew | brew | 3c2ec1c60f942ef7fe935ddf92272fc91c094306.json | Deprecate remaining cask commands. | Library/Homebrew/cask/cmd/uninstall.rb | @@ -64,7 +64,7 @@ def self.uninstall_casks(*casks, binaries: nil, force: false, verbose: false)
puts <<~EOS
#{cask} #{versions.to_sentence} #{"is".pluralize(versions.count)} still installed.
- Remove #{(versions.count == 1) ? "it" : "them all"} with `brew cask uninstall --force #{ca... | true |
Other | Homebrew | brew | 3c2ec1c60f942ef7fe935ddf92272fc91c094306.json | Deprecate remaining cask commands. | Library/Homebrew/cask/dsl/caveats.rb | @@ -112,17 +112,17 @@ def eval_caveats(&block)
if java_version == :any
<<~EOS
#{@cask} requires Java. You can install the latest version with:
- brew cask install adoptopenjdk
+ brew install --cask adoptopenjdk
EOS
elsif java_version.include... | true |
Other | Homebrew | brew | 3c2ec1c60f942ef7fe935ddf92272fc91c094306.json | Deprecate remaining cask commands. | Library/Homebrew/cask/exceptions.rb | @@ -111,7 +111,7 @@ class CaskAlreadyCreatedError < AbstractCaskErrorWithToken
sig { returns(String) }
def to_s
- %Q(Cask '#{token}' already exists. Run #{Formatter.identifier("brew cask edit #{token}")} to edit it.)
+ %Q(Cask '#{token}' already exists. Run #{Formatter.identifier("brew edit --cask... | true |
Other | Homebrew | brew | 3c2ec1c60f942ef7fe935ddf92272fc91c094306.json | Deprecate remaining cask commands. | Library/Homebrew/cask/installer.rb | @@ -474,7 +474,7 @@ def uninstall_artifacts(clear: false)
end
def zap
- ohai %Q(Implied "brew cask uninstall #{@cask}")
+ ohai %Q(Implied "brew uninstall --cask #{@cask}")
uninstall_artifacts
if (zap_stanzas = @cask.artifacts.select { |a| a.is_a?(Artifact::Zap) }).empty?
opo... | true |
Other | Homebrew | brew | 3c2ec1c60f942ef7fe935ddf92272fc91c094306.json | Deprecate remaining cask commands. | Library/Homebrew/cmd/home.rb | @@ -1,7 +1,8 @@
-# typed: false
+# typed: true
# frozen_string_literal: true
require "cli/parser"
+require "formula"
module Homebrew
extend T::Sig
@@ -12,14 +13,15 @@ module Homebrew
def home_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
- `home` [<formula>]
+ `home` [<for... | true |
Other | Homebrew | brew | 3c2ec1c60f942ef7fe935ddf92272fc91c094306.json | Deprecate remaining cask commands. | Library/Homebrew/cmd/update-report.rb | @@ -322,7 +322,7 @@ def migrate_tap_migration
new_tap.install unless new_tap.installed?
ohai "#{name} has been moved to Homebrew.", <<~EOS
To uninstall the cask run:
- brew cask uninstall --force #{name}
+ brew uninstall --cask --force #{name}
EOS
nex... | true |
Other | Homebrew | brew | 3c2ec1c60f942ef7fe935ddf92272fc91c094306.json | Deprecate remaining cask commands. | Library/Homebrew/dev-cmd/bump-cask-pr.rb | @@ -30,11 +30,11 @@ def bump_cask_pr_args
description: "When passed with `--write`, generate a new commit after writing changes "\
"to the cask file."
switch "--no-audit",
- description: "Don't run `brew cask audit` before opening the PR."
+ descri... | true |
Other | Homebrew | brew | 3c2ec1c60f942ef7fe935ddf92272fc91c094306.json | Deprecate remaining cask commands. | Library/Homebrew/extend/os/mac/missing_formula.rb | @@ -23,13 +23,13 @@ def disallowed_reason(name)
There are three versions of MacTeX.
Full installation:
- brew cask install mactex
+ brew install --cask mactex
Full installation without bundled applications:
- brew cask install mactex-no-g... | true |
Other | Homebrew | brew | 3c2ec1c60f942ef7fe935ddf92272fc91c094306.json | Deprecate remaining cask commands. | Library/Homebrew/missing_formula.rb | @@ -30,7 +30,7 @@ def disallowed_reason(name)
EOS
when "macruby" then <<~EOS
MacRuby has been discontinued. Consider RubyMotion:
- brew cask install rubymotion
+ brew install --cask rubymotion
EOS
when /(lib)?lzma/ then <<~EOS
lzma is now p... | true |
Other | Homebrew | brew | 3c2ec1c60f942ef7fe935ddf92272fc91c094306.json | Deprecate remaining cask commands. | Library/Homebrew/requirement.rb | @@ -43,8 +43,8 @@ def message
s = "#{class_name} unsatisfied!\n"
if cask
s += <<~EOS
- You can install with Homebrew Cask:
- brew cask install #{cask}
+ You can install the necessary cask with:
+ brew install --cask #{cask}
EOS
end
| true |
Other | Homebrew | brew | 3c2ec1c60f942ef7fe935ddf92272fc91c094306.json | Deprecate remaining cask commands. | Library/Homebrew/requirements/java_requirement.rb | @@ -75,7 +75,7 @@ def to_str
title_string = " #{title}" if title
<<~EOS
Install#{title_string} with Homebrew Cask:
- brew cask install #{token}
+ brew install --cask #{token}
EOS
end
end | true |
Other | Homebrew | brew | 3c2ec1c60f942ef7fe935ddf92272fc91c094306.json | Deprecate remaining cask commands. | Library/Homebrew/test/cask/cmd_spec.rb | @@ -11,6 +11,10 @@
context "::run" do
let(:noop_command) { double("Cmd::Noop", run: nil) }
+ before do
+ allow(Homebrew).to receive(:raise_deprecation_exceptions?).and_return(false)
+ end
+
it "prints help output when subcommand receives `--help` flag" do
expect {
described_cla... | true |
Other | Homebrew | brew | 3c2ec1c60f942ef7fe935ddf92272fc91c094306.json | Deprecate remaining cask commands. | Library/Homebrew/test/missing_formula_spec.rb | @@ -97,7 +97,7 @@
let(:show_info) { false }
it { is_expected.to match(/Found a cask named "local-caffeine" instead./) }
- it { is_expected.to match(/Try\n brew cask install local-caffeine/) }
+ it { is_expected.to match(/Try\n brew install --cask local-caffeine/) }
end
context "w... | true |
Other | Homebrew | brew | 3c2ec1c60f942ef7fe935ddf92272fc91c094306.json | Deprecate remaining cask commands. | Library/Homebrew/test/requirements/java_requirement_spec.rb | @@ -138,21 +138,21 @@ def setup_java_with_version(version)
describe "#suggestion" do
context "without specific version" do
- its(:suggestion) { is_expected.to match(/brew cask install adoptopenjdk/) }
+ its(:suggestion) { is_expected.to match(/brew install --cask adoptopenjdk/) }
its(:cask) {... | true |
Other | Homebrew | brew | 3c2ec1c60f942ef7fe935ddf92272fc91c094306.json | Deprecate remaining cask commands. | docs/Manpage.md | @@ -71,39 +71,9 @@ Homebrew Cask provides a friendly CLI workflow for the administration of macOS a
Commands:
-- `audit`
- <br>Check *`cask`* for Homebrew coding style violations.
-
-- `cat`
- <br>Dump raw source of a *`cask`* to the standard output.
-
-- `create`
- <br>Creates the given *`cask`* and opens it i... | true |
Other | Homebrew | brew | 3c2ec1c60f942ef7fe935ddf92272fc91c094306.json | Deprecate remaining cask commands. | manpages/brew.1 | @@ -67,71 +67,11 @@ Homebrew Cask provides a friendly CLI workflow for the administration of macOS a
Commands:
.
.TP
-\fBaudit\fR
-.
-.br
-Check \fIcask\fR for Homebrew coding style violations\.
-.
-.TP
-\fBcat\fR
-.
-.br
-Dump raw source of a \fIcask\fR to the standard output\.
-.
-.TP
-\fBcreate\fR
-.
-.br
-Create... | true |
Other | Homebrew | brew | 6449e0f7bf2da80b4a0fbb710f753076c7e4a11a.json | Ignore Sorbet error 5061 for now.
See https://github.com/sorbet/sorbet/pull/3565#issuecomment-730544936. | Library/Homebrew/sorbet/config | @@ -9,3 +9,6 @@
--dsl-plugins
sorbet/triggers.yml
+
+--error-black-list
+5061 | false |
Other | Homebrew | brew | 41150862840af1ceb61eace883117ae72ead5941.json | Add Sorbet plugin for `delegate`. | Library/Homebrew/sorbet/plugins/delegate.rb | @@ -0,0 +1,21 @@
+# typed: strict
+# frozen_string_literal: true
+
+source = ARGV[5]
+
+methods = if (single = source[/delegate\s+([^:]+):\s+/, 1])
+ [single]
+else
+ multiple = source[/delegate\s+\[(.*?)\]\s+=>\s+/m, 1]
+ non_comments = multiple.gsub(/\#.*$/, "")
+ non_comments.scan(/:([^:,\s]+)/).flatten
+end
+
+... | true |
Other | Homebrew | brew | 41150862840af1ceb61eace883117ae72ead5941.json | Add Sorbet plugin for `delegate`. | Library/Homebrew/sorbet/triggers.yml | @@ -4,3 +4,4 @@ ruby_extra_args:
triggers:
using: sorbet/plugins/unpack_strategy_magic.rb
attr_predicate: sorbet/plugins/attr_predicate.rb
+ delegate: sorbet/plugins/delegate.rb | true |
Other | Homebrew | brew | 257855a92967fff105f3176ffb4c48c034a4702f.json | Run `sorbet` workflow on macOS. | .github/workflows/sorbet.yml | @@ -10,7 +10,7 @@ on:
jobs:
tapioca:
if: github.repository == 'Homebrew/brew'
- runs-on: ubuntu-latest
+ runs-on: macos-latest
steps:
- name: Set up Homebrew
id: set-up-homebrew | false |
Other | Homebrew | brew | 444c3858dfc79a51cd48312bf65bccb23525a87f.json | Adjust macOS version logic
- Adjust latest supported macOS logic for e.g. Big Sur 11.1.
- Updated latest supported version in docs to Mojave
Fixes https://github.com/Homebrew/brew/issues/9211 | Library/Homebrew/os/mac.rb | @@ -44,13 +44,6 @@ def latest_sdk_version
Version.new "11.0"
end
- def latest_stable_version
- # TODO: bump version when new macOS is released and also update
- # references in docs/Installation.md and
- # https://github.com/Homebrew/install/blob/HEAD/install.sh
- Version.new "11.0"... | true |
Other | Homebrew | brew | 444c3858dfc79a51cd48312bf65bccb23525a87f.json | Adjust macOS version logic
- Adjust latest supported macOS logic for e.g. Big Sur 11.1.
- Updated latest supported version in docs to Mojave
Fixes https://github.com/Homebrew/brew/issues/9211 | Library/Homebrew/os/mac/xcode.rb | @@ -22,7 +22,7 @@ module Xcode
def latest_version
latest_stable = "12.2"
case MacOS.version
- when "11.0" then latest_stable
+ when /^11\./ then latest_stable
when "10.15" then "12.2"
when "10.14" then "11.3.1"
when "10.13" then "10.1"
@@ -45,7 +45,7 @@... | true |
Other | Homebrew | brew | 444c3858dfc79a51cd48312bf65bccb23525a87f.json | Adjust macOS version logic
- Adjust latest supported macOS logic for e.g. Big Sur 11.1.
- Updated latest supported version in docs to Mojave
Fixes https://github.com/Homebrew/brew/issues/9211 | docs/Installation.md | @@ -11,7 +11,7 @@ it does it too. You have to confirm everything it will do before it starts.
## macOS Requirements
* A 64-bit Intel CPU <sup>[1](#1)</sup>
-* macOS High Sierra (10.13) (or higher) <sup>[2](#2)</sup>
+* macOS Mojave (10.14) (or higher) <sup>[2](#2)</sup>
* Command Line Tools (CLT) for Xcode: `xcode... | true |
Other | Homebrew | brew | 67e4e78f227873c8c4e49f37de1c8c9e58a3ee83.json | fix typo in audit tests
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Co-authored-by: Markus Reiter <me@reitermark.us> | Library/Homebrew/test/dev-cmd/audit_spec.rb | @@ -423,7 +423,7 @@ class Cask < Formula
.to eq 'Formula license ["0BSD"] does not match GitHub license ["GPL-3.0"].'
end
- it "allows a formula-specified license that differes from its GitHub "\
+ it "allows a formula-specified license that differs from its GitHub "\
"repository... | false |
Other | Homebrew | brew | b0d10fdf28869e1f599e5e97ce2e9a1a8573d9a9.json | add audit tests for migrated audit exception lists | Library/Homebrew/test/dev-cmd/audit_spec.rb | @@ -560,6 +560,91 @@ class Foo < Formula
end
end
+ describe "#audit_specs" do
+ let(:throttle_list) { { throttled_formulae: { "foo" => 10 } } }
+ let(:versioned_head_spec_list) { { versioned_head_spec_allowlist: ["foo"] } }
+
+ it "allows versions with no throttle rate" do
+ fa = ... | false |
Other | Homebrew | brew | 70dd41cfd8eee95f3ed4daacf665ae62b82695db.json | Add type signatures to `BuildEnvironment`. | Library/Homebrew/build_environment.rb | @@ -1,34 +1,44 @@
-# typed: false
+# typed: true
# frozen_string_literal: true
# Settings for the build environment.
#
# @api private
class BuildEnvironment
+ extend T::Sig
+
+ sig { params(settings: Symbol).void }
def initialize(*settings)
- @settings = Set.new(*settings)
+ @settings = Set.new(settin... | true |
Other | Homebrew | brew | 70dd41cfd8eee95f3ed4daacf665ae62b82695db.json | Add type signatures to `BuildEnvironment`. | Library/Homebrew/cmd/--env.rb | @@ -47,11 +47,10 @@ def __env
Utils::Shell.from_path(args.shell)
end
- env_keys = BuildEnvironment.keys(ENV)
if shell.nil?
BuildEnvironment.dump ENV
else
- env_keys.each do |key|
+ BuildEnvironment.keys(ENV).each do |key|
puts Utils::Shell.export_value(key, ENV[key],... | true |
Other | Homebrew | brew | 64a0e9a7215878d8ce3eccf47c2434d596bfaffb.json | Add type signatures for `Caskroom`. | Library/.rubocop.yml | @@ -18,6 +18,7 @@ AllCops:
- 'Homebrew/sorbet/rbi/gems/**/*.rbi'
- 'Homebrew/sorbet/rbi/hidden-definitions/**/*.rbi'
- 'Homebrew/sorbet/rbi/todo.rbi'
+ - 'Homebrew/sorbet/rbi/upstream.rbi'
- 'Homebrew/bin/*'
- 'Homebrew/vendor/**/*'
| true |
Other | Homebrew | brew | 64a0e9a7215878d8ce3eccf47c2434d596bfaffb.json | Add type signatures for `Caskroom`. | Library/Homebrew/cask/caskroom.rb | @@ -1,4 +1,4 @@
-# typed: false
+# typed: true
# frozen_string_literal: true
require "utils/user"
@@ -10,13 +10,13 @@ module Cask
module Caskroom
extend T::Sig
- module_function
-
- def path
+ sig { returns(Pathname) }
+ def self.path
@path ||= HOMEBREW_PREFIX.join("Caskroom")
end
... | true |
Other | Homebrew | brew | 64a0e9a7215878d8ce3eccf47c2434d596bfaffb.json | Add type signatures for `Caskroom`. | Library/Homebrew/sorbet/rbi/upstream.rbi | @@ -0,0 +1,7 @@
+# typed: strict
+
+class Pathname
+ # https://github.com/sorbet/sorbet/pull/3676
+ sig { params(p1: T.any(String, Pathname), p2: String).returns(T::Array[Pathname]) }
+ def self.glob(p1, p2 = T.unsafe(nil)); end
+end | true |
Other | Homebrew | brew | dc11f02e16a223098f0ffc087764fe24c34ce973.json | Move auditor classes into separate files. | Library/Homebrew/dev-cmd/audit.rb | @@ -16,6 +16,7 @@
require "digest"
require "cli/parser"
require "json"
+require "formula_auditor"
require "tap_auditor"
module Homebrew
@@ -218,977 +219,4 @@ def format_problem_lines(problems)
def format_problem(message, location)
"* #{location&.to_s&.dup&.concat(": ")}#{message.chomp.gsub("\n", "\n "... | true |
Other | Homebrew | brew | dc11f02e16a223098f0ffc087764fe24c34ce973.json | Move auditor classes into separate files. | Library/Homebrew/formula_auditor.rb | @@ -0,0 +1,839 @@
+# typed: false
+# frozen_string_literal: true
+
+require "formula_text_auditor"
+require "resource_auditor"
+
+module Homebrew
+ # Auditor for checking common violations in {Formula}e.
+ #
+ # @api private
+ class FormulaAuditor
+ include FormulaCellarChecks
+
+ attr_reader :formula, :text,... | true |
Other | Homebrew | brew | dc11f02e16a223098f0ffc087764fe24c34ce973.json | Move auditor classes into separate files. | Library/Homebrew/formula_text_auditor.rb | @@ -0,0 +1,40 @@
+# typed: false
+# frozen_string_literal: true
+
+module Homebrew
+ # Auditor for checking common violations in {Formula} text content.
+ #
+ # @api private
+ class FormulaTextAuditor
+ def initialize(path)
+ @text = path.open("rb", &:read)
+ @lines = @text.lines.to_a
+ end
+
+ d... | true |
Other | Homebrew | brew | dc11f02e16a223098f0ffc087764fe24c34ce973.json | Move auditor classes into separate files. | Library/Homebrew/resource_auditor.rb | @@ -0,0 +1,118 @@
+# typed: false
+# frozen_string_literal: true
+
+module Homebrew
+ # Auditor for checking common violations in {Resource}s.
+ #
+ # @api private
+ class ResourceAuditor
+ attr_reader :name, :version, :checksum, :url, :mirrors, :using, :specs, :owner, :spec_name, :problems
+
+ def initialize... | true |
Other | Homebrew | brew | dc11f02e16a223098f0ffc087764fe24c34ce973.json | Move auditor classes into separate files. | Library/Homebrew/tap_auditor.rb | @@ -2,7 +2,7 @@
# frozen_string_literal: true
module Homebrew
- # Auditor for checking common violations in taps.
+ # Auditor for checking common violations in {Tap}s.
#
# @api private
class TapAuditor | true |
Other | Homebrew | brew | dc11f02e16a223098f0ffc087764fe24c34ce973.json | Move auditor classes into separate files. | Library/Homebrew/test/dev-cmd/audit_spec.rb | @@ -18,7 +18,7 @@ def self.increment
end
module Homebrew
- describe FormulaText do
+ describe FormulaTextAuditor do
alias_matcher :have_data, :be_data
alias_matcher :have_end, :be_end
alias_matcher :have_trailing_newline, :be_trailing_newline | true |
Other | Homebrew | brew | caae165eb20f5876ca2edf3f16cc7caba6cf479c.json | Improve `brew install --quiet`
- Suppress (some more) warnings when doing `brew install --quiet`
- Clarify `man brew` output that we don't suppress all warnings
for all commands with `--quiet`
While I was doing this I noticed references to the (soon to be
deprecated) `brew switch` so:
- remove these references in `... | Library/Homebrew/cli/parser.rb | @@ -100,7 +100,7 @@ def self.global_cask_options
def self.global_options
[
["-d", "--debug", "Display any debugging information."],
- ["-q", "--quiet", "Suppress any warnings."],
+ ["-q", "--quiet", "Make some output more quiet."],
["-v", "--verbose", "Make ... | true |
Other | Homebrew | brew | caae165eb20f5876ca2edf3f16cc7caba6cf479c.json | Improve `brew install --quiet`
- Suppress (some more) warnings when doing `brew install --quiet`
- Clarify `man brew` output that we don't suppress all warnings
for all commands with `--quiet`
While I was doing this I noticed references to the (soon to be
deprecated) `brew switch` so:
- remove these references in `... | Library/Homebrew/cmd/install.rb | @@ -204,7 +204,7 @@ def install
EOS
elsif args.only_dependencies?
installed_formulae << f
- else
+ elsif !args.quiet?
opoo <<~EOS
#{f.full_name} #{f.pkg_version} is already installed and up-to-date
To reinstall #{f.pkg_version}, run `brew... | true |
Other | Homebrew | brew | caae165eb20f5876ca2edf3f16cc7caba6cf479c.json | Improve `brew install --quiet`
- Suppress (some more) warnings when doing `brew install --quiet`
- Clarify `man brew` output that we don't suppress all warnings
for all commands with `--quiet`
While I was doing this I noticed references to the (soon to be
deprecated) `brew switch` so:
- remove these references in `... | Library/Homebrew/dev-cmd/diy.rb | @@ -31,6 +31,8 @@ def diy_args
def diy
args = diy_args.parse
+ # odeprecated "`brew diy`"
+
path = Pathname.getwd
version = args.version || detect_version(path) | true |
Other | Homebrew | brew | caae165eb20f5876ca2edf3f16cc7caba6cf479c.json | Improve `brew install --quiet`
- Suppress (some more) warnings when doing `brew install --quiet`
- Clarify `man brew` output that we don't suppress all warnings
for all commands with `--quiet`
While I was doing this I noticed references to the (soon to be
deprecated) `brew switch` so:
- remove these references in `... | docs/Manpage.md | @@ -1384,7 +1384,7 @@ These options are applicable across multiple subcommands.
Display any debugging information.
* `-q`, `--quiet`:
- Suppress any warnings.
+ Make some output more quiet.
* `-v`, `--verbose`:
Make some output more verbose. | true |
Other | Homebrew | brew | caae165eb20f5876ca2edf3f16cc7caba6cf479c.json | Improve `brew install --quiet`
- Suppress (some more) warnings when doing `brew install --quiet`
- Clarify `man brew` output that we don't suppress all warnings
for all commands with `--quiet`
While I was doing this I noticed references to the (soon to be
deprecated) `brew switch` so:
- remove these references in `... | docs/Tips-N'-Tricks.md | @@ -15,15 +15,6 @@ This can be useful if a package can't build against the version of something you
And of course, you can simply `brew link <formula>` again afterwards!
-## Activate a previously installed version of a formula
-
-```sh
-brew info <formula>
-brew switch <formula> <version>
-```
-
-Use `brew info <f... | true |
Other | Homebrew | brew | caae165eb20f5876ca2edf3f16cc7caba6cf479c.json | Improve `brew install --quiet`
- Suppress (some more) warnings when doing `brew install --quiet`
- Clarify `man brew` output that we don't suppress all warnings
for all commands with `--quiet`
While I was doing this I noticed references to the (soon to be
deprecated) `brew switch` so:
- remove these references in `... | manpages/brew.1 | @@ -1899,7 +1899,7 @@ Display any debugging information\.
.
.TP
\fB\-q\fR, \fB\-\-quiet\fR
-Suppress any warnings\.
+Make some output more quiet\.
.
.TP
\fB\-v\fR, \fB\-\-verbose\fR | true |
Other | Homebrew | brew | bcdb0c769888dc1af4b4074fd237e98478779880.json | upgrade: show upgradeable dependents during dry run | Library/Homebrew/cmd/install.rb | @@ -289,7 +289,7 @@ def install
Cleanup.install_formula_clean!(f)
end
- Upgrade.check_installed_dependents(args: args)
+ Upgrade.check_installed_dependents(installed_formulae, args: args)
Homebrew.messages.display_messages(display_times: args.display_times?)
rescue FormulaUnreadableError, ... | true |
Other | Homebrew | brew | bcdb0c769888dc1af4b4074fd237e98478779880.json | upgrade: show upgradeable dependents during dry run | Library/Homebrew/cmd/reinstall.rb | @@ -102,7 +102,7 @@ def reinstall
Cleanup.install_formula_clean!(f)
end
- Upgrade.check_installed_dependents(args: args)
+ Upgrade.check_installed_dependents(formulae, args: args)
if casks.any?
Cask::Cmd::Reinstall.reinstall_casks( | true |
Other | Homebrew | brew | bcdb0c769888dc1af4b4074fd237e98478779880.json | upgrade: show upgradeable dependents during dry run | Library/Homebrew/cmd/upgrade.rb | @@ -172,7 +172,7 @@ def upgrade_outdated_formulae(formulae, args:)
Upgrade.upgrade_formulae(formulae_to_install, args: args)
- Upgrade.check_installed_dependents(args: args)
+ Upgrade.check_installed_dependents(formulae_to_install, args: args)
Homebrew.messages.display_messages(display_times: args... | true |
Other | Homebrew | brew | bcdb0c769888dc1af4b4074fd237e98478779880.json | upgrade: show upgradeable dependents during dry run | Library/Homebrew/upgrade.rb | @@ -134,10 +134,10 @@ def check_broken_dependents(installed_formulae)
end
end
- def check_installed_dependents(args:)
+ def check_installed_dependents(formulae, args:)
return if Homebrew::EnvConfig.no_installed_dependents_check?
- installed_formulae = FormulaInstaller.installed.to_a
+ ... | true |
Other | Homebrew | brew | 42881ebc55dca3e2bf04d91ebb737b546cb9c5eb.json | shared_audits: add haptickey to GITHUB_PRERELEASE_ALLOWLIST | Library/Homebrew/utils/shared_audits.rb | @@ -37,6 +37,7 @@ def github_release_data(user, repo, tag)
"extraterm" => :all,
"freetube" => :all,
"gitless" => "0.8.8",
+ "haptickey" => :all,
"home-assistant" => :all,
"lidarr" => :all,
"nuclear" => :all, | false |
Other | Homebrew | brew | 362c64855c623c5e059fff11da4d234cc69e50f8.json | unpack_strategy: Move `Dmg` to above `Xz` and `Lzma` | Library/Homebrew/unpack_strategy.rb | @@ -47,6 +47,7 @@ def self.strategies
Tar, # Needs to be before Bzip2/Gzip/Xz/Lzma.
Pax,
Gzip,
+ Dmg, # Needs to be before Bzip2/Xz/Lzma.
Lzma,
Xz,
Lzip,
@@ -66,7 +67,6 @@ def self.strategies
SelfExtractingExecutable, # Needs to be before `Cab`.
Cab,
E... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.