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 | 1882ae4f6e7bbfaf9d19e2e2dc87616ae43fef8d.json | Update Linux requirements
* Glibc 2.26+ (we use 2.35) require Linux kernel 3.2 or later.
* Remove GCC requirement given it doesn't matter for bottles (we install GCC ourselves if too old) and is probably wrong for the build-from-source case.
* Remove libxcrypt-compat requirement given we don't use libcrypt.so.1 anymor... | Library/Homebrew/os/linux/kernel.rb | @@ -13,7 +13,7 @@ module Kernel
sig { returns(Version) }
def minimum_version
- Version.new "2.6.32"
+ Version.new "3.2"
end
def below_minimum_version? | true |
Other | Homebrew | brew | 1882ae4f6e7bbfaf9d19e2e2dc87616ae43fef8d.json | Update Linux requirements
* Glibc 2.26+ (we use 2.35) require Linux kernel 3.2 or later.
* Remove GCC requirement given it doesn't matter for bottles (we install GCC ourselves if too old) and is probably wrong for the build-from-source case.
* Remove libxcrypt-compat requirement given we don't use libcrypt.so.1 anymor... | docs/Homebrew-on-Linux.md | @@ -47,8 +47,7 @@ If you're using an older distribution of Linux, installing your first package wi
## Requirements
-- **GCC** 4.7.0 or newer
-- **Linux** 2.6.32 or newer
+- **Linux** 3.2 or newer
- **Glibc** 2.13 or newer
- **64-bit x86_64** CPU
@@ -65,7 +64,6 @@ To install build tools, paste at a terminal pro... | true |
Other | Homebrew | brew | ea95518d59a6b04f370b73954f4ffc851c1412df.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 | @@ -2987,6 +2987,8 @@ class Cask::Cask
def mdimporter(&block); end
+ def on_system_blocks_exist?(&block); end
+
def pkg(&block); end
def postflight(&block); end | false |
Other | Homebrew | brew | 4bc5f48654d7e6b1fcb6df3630d6f003d7d40c11.json | compare bytesize instead of shasum256 | Library/Homebrew/cmd/update.sh | @@ -756,14 +756,7 @@ EOS
mkdir -p "${HOMEBREW_CACHE}/api"
if [[ -f "${HOMEBREW_CACHE}/api/formula.json" ]]
then
- INITIAL_JSON_SHASUM="$(
- ruby <<EOSCRIPT
-require 'digest/sha2'
-digest = Digest::SHA256.new
-File.open('${HOMEBREW_CACHE}/api/formula.json') { |f| digest.update(f.read) }
-puts ... | false |
Other | Homebrew | brew | 504bdd2816815af45a62d2535265e3e41b4f61cb.json | bump-cask-pr: handle additional use cases | Library/Homebrew/cask/dsl.rb | @@ -87,6 +87,7 @@ class DSL
:discontinued?,
:livecheck,
:livecheckable?,
+ :on_system_blocks_exist?,
*ORDINARY_ARTIFACT_CLASSES.map(&:dsl_key),
*ACTIVATABLE_ARTIFACT_CLASSES.map(&:dsl_key),
*ARTIFACT_BLOCK_CLASSES.flat_map { |klass| [klass.dsl_key, klass.uninstall_dsl_key]... | true |
Other | Homebrew | brew | 504bdd2816815af45a62d2535265e3e41b4f61cb.json | bump-cask-pr: handle additional use cases | Library/Homebrew/dev-cmd/bump-cask-pr.rb | @@ -78,14 +78,14 @@ def bump_cask_pr
odie "This cask's tap is not a Git repository!" unless cask.tap.git?
new_version = args.version
- new_version = :latest if ["latest", ":latest"].include?(new_version)
+ new_version = :latest if ["latest", ":latest"].include? new_version
new_version = Cask::DSL... | true |
Other | Homebrew | brew | b3605020e3ec6452130b2cc9838082f7ff95693d.json | Update RBI files for elftools.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/gems/elftools@1.1.3.rbi | @@ -1,566 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `elftools` gem.
-# Please instead update this file by running `bin/tapioca gem elftools`.
-
-module ELFTools; end
-
-module ELFTools::Constants
- include ::ELFTools::Constants::DF
- include ::ELFToo... | true |
Other | Homebrew | brew | b3605020e3ec6452130b2cc9838082f7ff95693d.json | Update RBI files for elftools.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/gems/elftools@1.2.0.rbi | @@ -0,0 +1,930 @@
+# typed: true
+
+# DO NOT EDIT MANUALLY
+# This is an autogenerated file for types exported from the `elftools` gem.
+# Please instead update this file by running `bin/tapioca gem elftools`.
+
+module ELFTools; end
+
+module ELFTools::Constants
+ include ::ELFTools::Constants::DF
+ include ::ELFToo... | true |
Other | Homebrew | brew | b3605020e3ec6452130b2cc9838082f7ff95693d.json | Update RBI files for elftools.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/gems/mini_portile2@2.8.0.rbi | @@ -1,101 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `mini_portile2` gem.
-# Please instead update this file by running `bin/tapioca gem mini_portile2`.
-
-class MiniPortile
- def initialize(name, version, **kwargs); end
-
- def activate; end
- def a... | true |
Other | Homebrew | brew | b3605020e3ec6452130b2cc9838082f7ff95693d.json | Update RBI files for elftools.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -136,8 +136,190 @@ class BuildEnvironment
extend ::T::Private::Methods::SingletonMethodHooks
end
+class Bundler::APIResponseInvalidDependenciesError
+ def status_code(); end
+end
+
+class Bundler::APIResponseInvalidDependenciesError
+end
+
+class Bundler::CurrentRuby
+ def jruby_30?(); end
+
+ def jruby_31?... | true |
Other | Homebrew | brew | 5e31f41a52808fa09d6afecc4f6b92cf77980690.json | utils/gems: prevent lockfile modification during installation | Library/Homebrew/utils/gems.rb | @@ -129,6 +129,7 @@ def install_bundler_gems!(only_warn_on_failure: false, setup_path: true, groups:
old_gem_home = ENV.fetch("GEM_HOME", nil)
old_bundle_gemfile = ENV.fetch("BUNDLE_GEMFILE", nil)
old_bundle_with = ENV.fetch("BUNDLE_WITH", nil)
+ old_bundle_frozen = ENV.fetch("BUNDLE_FROZEN", nil)
... | false |
Other | Homebrew | brew | c87c97e4d7dc485753d39523ef9e6dd5f82333d7.json | utils/gems: install Bundler into vendor directory | Library/Homebrew/dev-cmd/tests.rb | @@ -208,12 +208,6 @@ def tests
puts "Randomized with seed #{seed}"
- # Let tests find `bundle` in the actual location.
- ENV["HOMEBREW_TESTS_GEM_USER_DIR"] = gem_user_dir
-
- # Let `bundle` in PATH find its gem.
- ENV["GEM_PATH"] = "#{ENV.fetch("GEM_PATH")}:#{gem_user_dir}"
-
# Sub... | true |
Other | Homebrew | brew | c87c97e4d7dc485753d39523ef9e6dd5f82333d7.json | utils/gems: install Bundler into vendor directory | Library/Homebrew/utils/gems.rb | @@ -17,14 +17,6 @@ def ruby_bindir
"#{RbConfig::CONFIG["prefix"]}/bin"
end
- def gem_user_dir
- ENV.fetch("HOMEBREW_TESTS_GEM_USER_DIR", nil) || Gem.user_dir
- end
-
- def gem_user_bindir
- "#{gem_user_dir}/bin"
- end
-
def ohai_if_defined(message)
if defined?(ohai)
$stderr.ohai messa... | true |
Other | Homebrew | brew | 5a4840dbc88bc4236cd37b3f10b61db2e03aa2dd.json | extend/os/mac: ensure writable file for codesign | Library/Homebrew/extend/os/mac/keg.rb | @@ -31,36 +31,59 @@ def codesign_patched_binary(file)
return unless Hardware::CPU.arm?
odebug "Codesigning #{file}"
- # Use quiet_system to squash notifications about resigning binaries
- # which already have valid signatures.
- return if quiet_system("codesign", "--sign", "-", "--force",
- ... | false |
Other | Homebrew | brew | dc37364248be9a858b20b06e7171c30aec040861.json | use ruby script instead of shasum command | Library/Homebrew/cmd/update.sh | @@ -756,7 +756,14 @@ EOS
mkdir -p "${HOMEBREW_CACHE}/api"
if [[ -f "${HOMEBREW_CACHE}/api/formula.json" ]]
then
- INITIAL_JSON_SHASUM="$(shasum -a 256 "${HOMEBREW_CACHE}"/api/formula.json)"
+ INITIAL_JSON_SHASUM="$(
+ ruby <<EOSCRIPT
+require 'digest/sha2'
+digest = Digest::SHA256.new
+F... | false |
Other | Homebrew | brew | f4156378d840c24ebc8d68e6f08d1e3a21e617f9.json | compare formula.json shasum to check brew updated | Library/Homebrew/cmd/update.sh | @@ -754,16 +754,26 @@ EOS
if [[ -n "${HOMEBREW_INSTALL_FROM_API}" ]]
then
mkdir -p "${HOMEBREW_CACHE}/api"
+ if [[ -f "${HOMEBREW_CACHE}/api/formula.json" ]]
+ then
+ INITIAL_JSON_SHASUM="$(shasum -a 256 "${HOMEBREW_CACHE}"/api/formula.json)"
+ fi
curl \
"${CURL_DISABLE_CURLRC_ARGS[... | false |
Other | Homebrew | brew | 88433641232e955c1dc0c592351885184bc0abb1.json | add error log of download formula.json | Library/Homebrew/cmd/update.sh | @@ -761,8 +761,11 @@ EOS
--time-cond "${HOMEBREW_CACHE}/api/formula.json" \
--user-agent "${HOMEBREW_USER_AGENT_CURL}" \
"https://formulae.brew.sh/api/formula.json"
- # TODO: we probably want to print an error if this fails.
- # TODO: set HOMEBREW_UPDATED or HOMEBREW_UPDATE_FAILED
+ exit_c... | false |
Other | Homebrew | brew | c54a59c3601b8667949dfe882341f0804e1d37ce.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 | @@ -983,29 +983,29 @@ class Cask::Config
end
class Cask::DSL
- def app(*args); end
+ def app(*args, **kwargs); end
- def artifact(*args); end
+ def artifact(*args, **kwargs); end
- def audio_unit_plugin(*args); end
+ def audio_unit_plugin(*args, **kwargs); end
- def binary(*args); end
+ def binary(*ar... | false |
Other | Homebrew | brew | 295d60b3a25cdf230f0c71f12be81f373ecb1662.json | Gemfile*,dev-cmd/typecheck: Use Spoom for `--suggest-typed`
- Spoom is the gem that's recommended for automatically changing `typed`
sigils in files now. It was recommended in the "migrate to Tapioca"
guide at
https://github.com/Shopify/tapioca/wiki/Migrating-to-Tapioca#things-that-do-not-need-to-happen. | Library/Homebrew/Gemfile | @@ -34,6 +34,7 @@ gem "warning", require: false
group :sorbet, optional: true do
gem "parlour", require: false
gem "sorbet-static-and-runtime", require: false
+ gem "spoom", require: false
gem "tapioca", require: false
end
| true |
Other | Homebrew | brew | 295d60b3a25cdf230f0c71f12be81f373ecb1662.json | Gemfile*,dev-cmd/typecheck: Use Spoom for `--suggest-typed`
- Spoom is the gem that's recommended for automatically changing `typed`
sigils in files now. It was recommended in the "migrate to Tapioca"
guide at
https://github.com/Shopify/tapioca/wiki/Migrating-to-Tapioca#things-that-do-not-need-to-happen. | Library/Homebrew/Gemfile.lock | @@ -236,6 +236,7 @@ DEPENDENCIES
simplecov-cobertura
sorbet-runtime
sorbet-static-and-runtime
+ spoom
tapioca
warning
| true |
Other | Homebrew | brew | 295d60b3a25cdf230f0c71f12be81f373ecb1662.json | Gemfile*,dev-cmd/typecheck: Use Spoom for `--suggest-typed`
- Spoom is the gem that's recommended for automatically changing `typed`
sigils in files now. It was recommended in the "migrate to Tapioca"
guide at
https://github.com/Shopify/tapioca/wiki/Migrating-to-Tapioca#things-that-do-not-need-to-happen. | Library/Homebrew/dev-cmd/typecheck.rb | @@ -70,35 +70,8 @@ def typecheck
safe_system "bundle", "exec", "tapioca", "todo"
if args.suggest_typed?
- result = system_command(
- "bundle",
- args: ["exec", "--", "srb", "tc", "--suggest-typed", "--typed=strict",
- "--isolate-error-... | true |
Other | Homebrew | brew | 5155c9073bb33bef1e0a20a44274d1744ad686d7.json | update*: enforce sane symlinks setting
Otherwise, a global `core.symlinks = false` setting, likely in a WSL context, breaks Aliases and any other places that use symlinks.
Also enforce consistency in `git config` settings across instances.
Ref: https://github.com/Homebrew/homebrew-core/issues/112539 | Library/Homebrew/cmd/update-reset.sh | @@ -56,6 +56,8 @@ homebrew-update-reset() {
opoo "No remote 'origin' in ${DIR}, skipping update and reset!"
continue
fi
+ git -C "${DIR}" config --bool core.autocrlf false
+ git -C "${DIR}" config --bool core.symlinks true
ohai "Fetching ${DIR}..."
git -C "${DIR}" fetch --force --tags... | true |
Other | Homebrew | brew | 5155c9073bb33bef1e0a20a44274d1744ad686d7.json | update*: enforce sane symlinks setting
Otherwise, a global `core.symlinks = false` setting, likely in a WSL context, breaks Aliases and any other places that use symlinks.
Also enforce consistency in `git config` settings across instances.
Ref: https://github.com/Homebrew/homebrew-core/issues/112539 | Library/Homebrew/cmd/update.sh | @@ -45,6 +45,7 @@ git_init_if_necessary() {
trap '{ rm -rf .git; exit 1; }' EXIT
git init
git config --bool core.autocrlf false
+ git config --bool core.symlinks true
if [[ "${HOMEBREW_BREW_DEFAULT_GIT_REMOTE}" != "${HOMEBREW_BREW_GIT_REMOTE}" ]]
then
echo "HOMEBREW_BREW_GIT_REMOTE se... | true |
Other | Homebrew | brew | cd6b81b28d7102b4b690c5551a28ac8de89e2064.json | os/mac/xcode: require Xcode 14.1 on Ventura | Library/Homebrew/os/mac/xcode.rb | @@ -23,7 +23,7 @@ module Xcode
def latest_version(macos: MacOS.version)
latest_stable = "13.4"
case macos
- when "13" then "14.0"
+ when "13" then "14.1"
when "12" then latest_stable
when "11" then "13.2.1"
when "10.15" then "12.4"
@@ -46,7 +46,7 @@ def ... | false |
Other | Homebrew | brew | d70d837687c130727168fd20013fc856ad9699f0.json | service: use default.target on Linux | Library/Homebrew/service.rb | @@ -401,7 +401,7 @@ def to_systemd_unit
Description=Homebrew generated unit for #{@formula.name}
[Install]
- WantedBy=multi-user.target
+ WantedBy=default.target
[Service]
EOS | false |
Other | Homebrew | brew | 89dd402e23b4ee770274106da813da6dd1d7284c.json | Update RBI files | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -3642,19 +3642,6 @@ class OpenSSL::BN
def negative?(); end
end
-module OpenSSL::KDF
-end
-
-class OpenSSL::KDF::KDFError
-end
-
-class OpenSSL::KDF::KDFError
-end
-
-module OpenSSL::KDF
- def self.pbkdf2_hmac(*arg); end
-end
-
class OpenSSL::OCSP::Request
def signed?(); end
end
@@ -6700,9 +6687,6 @@ clas... | false |
Other | Homebrew | brew | af234779af9a8d83b6a7e68292cee369d5527ca9.json | test: support non-master init.defaultbranch | Library/Homebrew/test/cmd/install_spec.rb | @@ -45,7 +45,7 @@
repo_path.join("bin").mkpath
repo_path.cd do
- system "git", "init"
+ system "git", "-c", "init.defaultBranch=master", "init"
system "git", "remote", "add", "origin", "https://github.com/Homebrew/homebrew-foo"
FileUtils.touch "bin/something.bin"
FileUtils.tou... | true |
Other | Homebrew | brew | af234779af9a8d83b6a7e68292cee369d5527ca9.json | test: support non-master init.defaultbranch | Library/Homebrew/test/dev-cmd/audit_spec.rb | @@ -927,7 +927,7 @@ def formula_gsub_origin_commit(before, after = "")
tap_path.cd do
system "git", "fetch"
- system "git", "reset", "--hard", "origin/master"
+ system "git", "reset", "--hard", "origin/HEAD"
end
end
| true |
Other | Homebrew | brew | af234779af9a8d83b6a7e68292cee369d5527ca9.json | test: support non-master init.defaultbranch | Library/Homebrew/test/dev-cmd/bottle_spec.rb | @@ -80,7 +80,7 @@
it "adds the bottle block to a formula that has none" do
core_tap.path.cd do
- system "git", "init"
+ system "git", "-c", "init.defaultBranch=master", "init"
setup_test_formula "testball"
system "git", "add", "--all"
system "git", "commit", "-m", ... | true |
Other | Homebrew | brew | af234779af9a8d83b6a7e68292cee369d5527ca9.json | test: support non-master init.defaultbranch | Library/Homebrew/test/download_strategies/git_spec.rb | @@ -23,7 +23,7 @@ def git_commit_all
end
def setup_git_repo
- system "git", "init"
+ system "git", "-c", "init.defaultBranch=master", "init"
system "git", "remote", "add", "origin", "https://github.com/Homebrew/homebrew-foo"
FileUtils.touch "README"
git_commit_all | true |
Other | Homebrew | brew | af234779af9a8d83b6a7e68292cee369d5527ca9.json | test: support non-master init.defaultbranch | Library/Homebrew/test/formula_spec.rb | @@ -1480,7 +1480,7 @@ def setup_tab_for_prefix(prefix, options = {})
testball_repo.cd do
FileUtils.touch "LICENSE"
- system("git", "init")
+ system("git", "-c", "init.defaultBranch=master", "init")
system("git", "add", "--all")
system("git", "commit", "-m", ... | true |
Other | Homebrew | brew | d0394762f965b017dcca24a4038b1f7da3d098a2.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 | @@ -2686,18 +2686,6 @@ class Homebrew::FormulaCreator
extend ::T::Private::Methods::SingletonMethodHooks
end
-class Homebrew::Livecheck::Strategy::ExtractPlist::Item
- def short_version(*args, &block); end
-
- def version(*args, &block); end
-end
-
-class Homebrew::Livecheck::Strategy::ExtractPlist::Item
- def... | false |
Other | Homebrew | brew | 9093180a7eb1dd98ce1d155d4debb22506f222a7.json | Update RBI files for zeitwerk.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/gems/zeitwerk@2.6.1.rbi | @@ -133,7 +133,7 @@ module Zeitwerk::Loader::Config
def collapse(*glob_patterns); end
def collapse_dirs; end
def collapse_glob_patterns; end
- def dirs; end
+ def dirs(namespaces: T.unsafe(nil)); end
def do_not_eager_load(*paths); end
def eager_load_exclusions; end
def enable_reloading; end | false |
Other | Homebrew | brew | 0ffe68795cadd590a31a7ffe3191fe10213ec906.json | Update RBI files for bindata.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/gems/bindata@2.4.12.rbi | @@ -456,9 +456,6 @@ class BinData::DelayedIO < ::BinData::Base
def do_num_bytes; end
def do_read(io); end
def do_write(io); end
- def eval_parameter(key, overrides = T.unsafe(nil)); end
- def eval_parameter_with_delayed_io(key, overrides = T.unsafe(nil)); end
- def eval_parameter_without_delayed_io(key, ove... | false |
Other | Homebrew | brew | 07ac5bf3b60278dbff15d13dbd798d342588347e.json | Update doc for `brew livecheck` | docs/Brew-Livecheck.md | @@ -1,27 +1,29 @@
# `brew livecheck`
-The `brew livecheck` command finds the newest version of a formula or cask's software by checking upstream. Livecheck has [strategies](https://rubydoc.brew.sh/Homebrew/Livecheck/Strategy.html) to identify versions from various sources, such as Git repositories, websites, etc.
+T... | false |
Other | Homebrew | brew | 020c50e588750151520296fe3b59d7de08de3de3.json | Warn linux users about using --cask | Library/Homebrew/cli/parser.rb | @@ -341,14 +341,20 @@ def parse(argv = ARGV.freeze, ignore_invalid_options: false)
@args_parsed = true
- if !ignore_invalid_options && @args.help?
- puts generate_help_text
- exit
+ unless ignore_invalid_options
+ if @args.help?
+ puts generate_help_text
... | true |
Other | Homebrew | brew | 020c50e588750151520296fe3b59d7de08de3de3.json | Warn linux users about using --cask | Library/Homebrew/extend/os/linux/parser.rb | @@ -0,0 +1,20 @@
+# typed: false
+# frozen_string_literal: true
+
+module Homebrew
+ module CLI
+ class Parser
+ undef validate_options
+
+ def validate_options
+ return unless @args.respond_to?(:cask?)
+ return unless @args.cask?
+
+ msg = "Casks are not supported on Linux"
+ ... | true |
Other | Homebrew | brew | 020c50e588750151520296fe3b59d7de08de3de3.json | Warn linux users about using --cask | Library/Homebrew/extend/os/parser.rb | @@ -0,0 +1,4 @@
+# typed: false
+# frozen_string_literal: true
+
+require "extend/os/linux/parser" if OS.linux? | true |
Other | Homebrew | brew | 020c50e588750151520296fe3b59d7de08de3de3.json | Warn linux users about using --cask | Library/Homebrew/test/cli/parser_spec.rb | @@ -562,4 +562,22 @@
expect { parser.parse(["--not-a-command"]) }.to raise_error(OptionParser::InvalidOption, /--not-a-command/)
end
end
+
+ describe "--cask on linux", :needs_linux do
+ subject(:parser) do
+ described_class.new do
+ switch "--cask"
+ end
+ end
+
+ it "throws a... | true |
Other | Homebrew | brew | 020c50e588750151520296fe3b59d7de08de3de3.json | Warn linux users about using --cask | Library/Homebrew/test/cmd/--cache_spec.rb | @@ -17,7 +17,7 @@
.and be_a_success
end
- it "prints the cache files for a given Cask", :integration_test do
+ it "prints the cache files for a given Cask", :integration_test, :needs_macos do
expect { brew "--cache", cask_path("local-caffeine") }
.to output(%r{#{HOMEBREW_CACHE}/downloads/[\da-... | true |
Other | Homebrew | brew | 020c50e588750151520296fe3b59d7de08de3de3.json | Warn linux users about using --cask | Library/Homebrew/test/cmd/home_spec.rb | @@ -34,7 +34,7 @@
.and be_a_success
end
- it "opens the homepage for a given Cask", :integration_test do
+ it "opens the homepage for a given Cask", :integration_test, :needs_macos do
expect { brew "home", local_caffeine_path, "HOMEBREW_BROWSER" => "echo" }
.to output(/#{local_caffeine_homepag... | true |
Other | Homebrew | brew | 8cca8c3b9e672e53edc21c4cf08e0501db452caa.json | Update RBI files for bindata.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/gems/bindata@2.4.11.rbi | @@ -456,6 +456,10 @@ class BinData::DelayedIO < ::BinData::Base
def do_num_bytes; end
def do_read(io); end
def do_write(io); end
+ def eval_parameter(key, overrides = T.unsafe(nil)); end
+ def eval_parameter_with_delayed_io(key, overrides = T.unsafe(nil)); end
+ def eval_parameter_without_delayed_io(key, ov... | false |
Other | Homebrew | brew | c01731a1f52176a229aa3656a171323a4a90365e.json | add installed time to `git info --json` output | Library/Homebrew/formula.rb | @@ -2130,6 +2130,7 @@ def to_hash
"used_options" => tab.used_options.as_flags,
"built_as_bottle" => tab.built_as_bottle,
"poured_from_bottle" => tab.poured_from_bottle,
+ "time" => Time.at(tab.time).strftime("%Y-%m-%d %H:%M:%S"),
"run... | false |
Other | Homebrew | brew | ad7561955401b051f716dcd2676ecbf99067b703.json | Remove unused function from bump-cask-pr | Library/Homebrew/dev-cmd/bump-cask-pr.rb | @@ -188,19 +188,6 @@ def bump_cask_pr
GitHub.create_bump_pr(pr_info, args: args)
end
- def fetch_cask(contents, config: nil)
- cask = Cask::CaskLoader.load(contents)
- cask.config = config if config.present?
- old_hash = cask.sha256.to_s
-
- cask_download = Cask::Download.new(cask, quarantine: tr... | false |
Other | Homebrew | brew | 8544e6b16b09e640efc86b2125b6cf97fa99c2d7.json | Update RBI files for regexp_parser.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/gems/regexp_parser@2.6.0.rbi | @@ -8,11 +8,16 @@ module Regexp::Expression; end
class Regexp::Expression::Alternation < ::Regexp::Expression::SequenceOperation
def alternatives; end
+ def human_name; end
def match_length; end
end
Regexp::Expression::Alternation::OPERAND = Regexp::Expression::Alternative
-class Regexp::Expression::Alter... | false |
Other | Homebrew | brew | 4b4b446828d2b37bb842d62cfaf3a1f24c8bca0e.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 | @@ -1598,8 +1598,6 @@ end
class Errno::EBADRPC
end
-Errno::ECAPMODE = Errno::NOERROR
-
Errno::EDEADLOCK = Errno::NOERROR
class Errno::EDEVERR
@@ -1620,13 +1618,6 @@ end
Errno::EIPSEC = Errno::NOERROR
-class Errno::ELAST
- Errno = ::T.let(nil, ::T.untyped)
-end
-
-class Errno::ELAST
-end
-
class Errno::EN... | false |
Other | Homebrew | brew | bd9c436d50c71eef58b3f9ba511e701cf27b377c.json | Remove unnecessary parameter from method
A boolean `resource` parameter was added to `#print_latest_version`
but its only purpose is to identify whether `info` corresponds to a
resource. This can be achieved using `info[:resource].present?`, so
this additional parameter isn't necessary and can be removed. | Library/Homebrew/livecheck/livecheck.rb | @@ -472,9 +472,9 @@ def status_hash(package_or_resource, status_str, messages = nil, full_name: fals
end
# Formats and prints the livecheck result for a formula/cask/resource.
- sig { params(info: Hash, verbose: T::Boolean, ambiguous_cask: T::Boolean, resource: T::Boolean).void }
- def print_latest_ve... | false |
Other | Homebrew | brew | fb653c00d8152da765b56c0bb1ae7bba5bf7002d.json | Improve consistency of *_version methods
Minimizing the differences between the `#resource_version` and
`#latest_version` methods will help to ease the process of potentially
merging them into one method in the future. | Library/Homebrew/livecheck/livecheck.rb | @@ -779,7 +779,6 @@ def latest_version(
version.to_s.include?(rejection)
end
end
-
next if match_version_map.blank?
if debug
@@ -878,7 +877,6 @@ def resource_version(
urls ||= checkable_urls(resource)
checked_urls = []
-
# rubocop:disable Metri... | false |
Other | Homebrew | brew | 7ffeba6380035e190efdf7eb7a003dd51e356cea.json | Convert some multiline code into a single line
Using a multiline format in these areas isn't necessary and we can
clean up these lines by converting them to a single line format. | Library/Homebrew/livecheck/livecheck.rb | @@ -872,10 +872,7 @@ def resource_version(
livecheck_strategy = livecheck.strategy
livecheck_strategy_block = livecheck.strategy_block
- livecheck_url_string = livecheck_url_to_string(
- livecheck_url,
- resource,
- )
+ livecheck_url_string = livecheck_url_to_string(livechec... | false |
Other | Homebrew | brew | 40b0070bebf6ef34435ebd521c14c5a3770fca34.json | Modify comments and other text
The `check_for_resources` code arguably speaks for itself, so it
doesn't feel like a necessary addition. Besides that, this cleans up
some other comments and text to better align with existing examples. | Library/Homebrew/livecheck/livecheck.rb | @@ -286,8 +286,6 @@ def run_checks(
version_info[:latest] if version_info.present?
end
- # Check current and latest resources (if "--resources" flag is given)
- # Only check current and latest versions if we have resources to check against
check_for_resources = check_resourc... | true |
Other | Homebrew | brew | 40b0070bebf6ef34435ebd521c14c5a3770fca34.json | Modify comments and other text
The `check_for_resources` code arguably speaks for itself, so it
doesn't feel like a necessary addition. Besides that, this cleans up
some other comments and text to better align with existing examples. | Library/Homebrew/livecheck/skip_conditions.rb | @@ -172,7 +172,7 @@ def cask_url_unversioned(cask, livecheckable, full_name: false, verbose: false)
:cask_url_unversioned,
].freeze
- # Skip conditions for resource.
+ # Skip conditions for resources.
RESOURCE_CHECKS = [
:package_or_resource_skip,
].freeze | true |
Other | Homebrew | brew | 40b0070bebf6ef34435ebd521c14c5a3770fca34.json | Modify comments and other text
The `check_for_resources` code arguably speaks for itself, so it
doesn't feel like a necessary addition. Besides that, this cleans up
some other comments and text to better align with existing examples. | Library/Homebrew/test/livecheck/livecheck_spec.rb | @@ -152,11 +152,11 @@
RUBY
end
- it "returns a URL string when given a livecheck_url string for formula" do
+ it "returns a URL string when given a livecheck_url string for a formula" do
expect(livecheck.livecheck_url_to_string(livecheck_url, f_livecheck_url)).to eq(livecheck_url)
end
... | true |
Other | Homebrew | brew | dd46cc40c7b3c45d3ceb632ca8d9dba20bc230f7.json | audit: improve error wording | Library/Homebrew/dev-cmd/audit.rb | @@ -143,7 +143,7 @@ def audit
end
if audit_formulae.empty? && audit_casks.empty?
- ofail "No audits to perform"
+ ofail "No matching formulae or casks to audit!"
return
end
| false |
Other | Homebrew | brew | d23d2244b8318c6d5eff7f1bbe86a7f956cb80cc.json | Update RBI files for rubocop-rspec.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.13.2.rbi | @@ -182,6 +182,7 @@ class RuboCop::Cop::RSpec::Capybara::SpecificFinders < ::RuboCop::Cop::RSpec::Ba
private
def attribute?(arg); end
+ def end_pos(node); end
def offense_range(node); end
def on_attr(node, arg); end
def on_id(node, arg); end
@@ -1235,6 +1236,7 @@ RuboCop::Cop::RSpec::NestedGroups::MSG... | true |
Other | Homebrew | brew | d23d2244b8318c6d5eff7f1bbe86a7f956cb80cc.json | Update RBI files for rubocop-rspec.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -4936,6 +4936,7 @@ module RuboCop::AST::NodePattern::Sets
SET_KEYS_VALUES_TO_H_TO_XML = ::T.let(nil, ::T.untyped)
SET_ON_INTEL_ON_ARM = ::T.let(nil, ::T.untyped)
SET_OR_NEWER_OR_OLDER = ::T.let(nil, ::T.untyped)
+ SET_PENDING_SKIP = ::T.let(nil, ::T.untyped)
SET_SYSTEM_SHELL_OUTPUT_PIPE_OUTPUT = ::T.let... | true |
Other | Homebrew | brew | 1d7856c4f11f92f0e2c26fbf99f4ef26a56c80ee.json | formula_auditor: fix false negatives in `audit_gcc_dependency`
This audit is mistakenly passing for formulae where
`variations_dependencies` is an empty array. We can fix that by checking
for `nil` instead.
See Homebrew/homebrew-core#111280. | Library/Homebrew/formula_auditor.rb | @@ -892,8 +892,9 @@ def linux_only_gcc_dep?(formula)
# This variation either:
# 1. does not exist
# 2. has no variation-specific dependencies
- # In either case, it matches Linux.
- return false if variation_dependencies.blank?
+ # In either case, it match... | false |
Other | Homebrew | brew | 1d9ee93e6ecdd85eb9c763c83ab7dca3ca3427b6.json | Apply suggestions from code review
Co-authored-by: Bo Anderson <mail@boanderson.me> | Library/Homebrew/extend/ENV/std.rb | @@ -59,9 +59,9 @@ def setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_a
begin
send(compiler)
- rescue CompilerSelectionError => e
+ rescue CompilerSelectionError
# We don't care if our compiler fails to build the formula during `brew test`.
- raise e unless tes... | false |
Other | Homebrew | brew | e526c65566fde66b38b045dabf7fa9c7e28fad20.json | extend/os/linux/development_tools: handle no /usr/bin/gcc
Fixes #13896. | Library/Homebrew/extend/os/linux/development_tools.rb | @@ -35,7 +35,10 @@ def build_system_too_old?
sig { returns(T::Boolean) }
def system_gcc_too_old?
- gcc_version("/usr/bin/gcc") < OS::LINUX_GCC_CI_VERSION
+ gcc = "/usr/bin/gcc"
+ return true unless File.exist?(gcc)
+
+ gcc_version(gcc) < OS::LINUX_GCC_CI_VERSION
end
sig { ret... | false |
Other | Homebrew | brew | b150c91240643e6d1e7b688c188835bdc5c7bc7e.json | Update RBI files for rubocop-rails.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.16.1.rbi | @@ -1728,16 +1728,21 @@ RuboCop::Cop::Rails::RootJoinChain::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Rails::RootJoinChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set)
class RuboCop::Cop::Rails::RootPathnameMethods < ::RuboCop::Cop::Base
+ include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCor... | false |
Other | Homebrew | brew | 07f5951b764e646307a412309d39dc8d42e34741.json | extend/os/linux/install: use ld.so.conf.d where possible | Library/Homebrew/extend/os/linux/install.rb | @@ -38,13 +38,13 @@ module Install
def perform_preinstall_checks(all_fatal: false, cc: nil)
generic_perform_preinstall_checks(all_fatal: all_fatal, cc: cc)
symlink_ld_so
- symlink_gcc_libs
+ setup_preferred_gcc_libs
end
def global_post_install
generic_global_post_install
... | false |
Other | Homebrew | brew | 957c2c983cc7b09221442ef976764c96e3b0ad83.json | linkage_checker: ignore broken linkage with LLVM libc++.
This linkage will be broken in LLVM 15, but this is typically harmless
since dyld will load `/usr/lib/libc++.1.dylib` instead. | Library/Homebrew/linkage_checker.rb | @@ -311,9 +311,12 @@ def sort_by_formula_full_name!(arr)
def harmless_broken_link?(dylib)
# libgcc_s_* is referenced by programs that use the Java Service Wrapper,
# and is harmless on x86(_64) machines
+ # dyld will fall back to Apple libc++ if LLVM's is not available.
[
"/usr/lib/libgcc_s_... | false |
Other | Homebrew | brew | 0a7063ac511df5f325b63588ef3524ca2b70d4fe.json | formulary: fix error with absolute alias paths
Fixes #13883. | Library/Homebrew/formulary.rb | @@ -670,7 +670,8 @@ def self.loader_for(ref, from: nil)
return TapLoader.new(ref, from: from)
end
- return FromPathLoader.new(ref) if File.extname(ref) == ".rb" && Pathname.new(ref).expand_path.exist?
+ pathname_ref = Pathname.new(ref)
+ return FromPathLoader.new(ref) if File.extname(ref) == ".rb... | false |
Other | Homebrew | brew | 66fa1f7e6aacaa84f9cc50e384a7bd8504b98a99.json | Use GCC 12 for runtime libraries | Library/Homebrew/extend/os/linux/compilers.rb | @@ -4,6 +4,6 @@
class CompilerSelector
sig { returns(String) }
def self.preferred_gcc
- OS::LINUX_PREFERRED_GCC_FORMULA
+ OS::LINUX_PREFERRED_GCC_COMPILER_FORMULA
end
end | true |
Other | Homebrew | brew | 66fa1f7e6aacaa84f9cc50e384a7bd8504b98a99.json | Use GCC 12 for runtime libraries | Library/Homebrew/extend/os/linux/dependency_collector.rb | @@ -34,7 +34,7 @@ def glibc_dep_if_needed(related_formula_names)
private
GLIBC = "glibc"
- GCC = CompilerSelector.preferred_gcc.freeze
+ GCC = OS::LINUX_PREFERRED_GCC_RUNTIME_FORMULA
sig { void }
def init_global_dep_tree_if_needed! | true |
Other | Homebrew | brew | 66fa1f7e6aacaa84f9cc50e384a7bd8504b98a99.json | Use GCC 12 for runtime libraries | Library/Homebrew/extend/os/linux/formula.rb | @@ -33,6 +33,7 @@ def add_global_deps_to_spec(spec)
dependency_collector = spec.dependency_collector
related_formula_names = Set.new([
name,
+ *aliases,
*versioned_formulae_names,
])
[ | true |
Other | Homebrew | brew | 66fa1f7e6aacaa84f9cc50e384a7bd8504b98a99.json | Use GCC 12 for runtime libraries | Library/Homebrew/extend/os/linux/install.rb | @@ -20,7 +20,8 @@ module Install
].freeze
private_constant :DYNAMIC_LINKERS
- GCC_VERSION_SUFFIX = OS::LINUX_GCC_CI_VERSION.delete_suffix(".0").freeze
+ PREFERRED_GCC_RUNTIME_VERSION = OS::LINUX_PREFERRED_GCC_RUNTIME_FORMULA.split("@").last.freeze
+ private_constant :PREFERRED_GCC_RUNTIME_VERSION
... | true |
Other | Homebrew | brew | 66fa1f7e6aacaa84f9cc50e384a7bd8504b98a99.json | Use GCC 12 for runtime libraries | Library/Homebrew/os.rb | @@ -50,7 +50,8 @@ def self.kernel_name
LINUX_GLIBC_CI_VERSION = "2.35"
LINUX_GLIBC_NEXT_CI_VERSION = "2.35"
LINUX_GCC_CI_VERSION = "11.0"
- LINUX_PREFERRED_GCC_FORMULA = "gcc@11"
+ LINUX_PREFERRED_GCC_COMPILER_FORMULA = "gcc@11" # https://packages.ubuntu.com/jammy/gcc
+ LINUX_PREFERRED_GCC_RUNTIME_FORMULA =... | true |
Other | Homebrew | brew | 46736c5e8101e8f4568303eacab6a0cfaaad9298.json | cask/audit: fix audit error when homepage is missing | Library/Homebrew/cask/audit.rb | @@ -793,6 +793,9 @@ def url_match_homepage?
else
host_uri.host
end
+
+ return false if homepage.blank?
+
home = homepage.downcase
if (split_host = host.split(".")).length >= 3
host = split_host[-2..].join(".") | false |
Other | Homebrew | brew | 75c5769e7550e42964d5f8fdee27e2395ea032bd.json | shellenv: add explanatory MANPATH comment
Resolves #13867 and (hopefully) future attempts to correct the intended functionality. | Library/Homebrew/cmd/shellenv.sh | @@ -9,6 +9,8 @@
# HOMEBREW_CELLAR and HOMEBREW_PREFIX are set by extend/ENV/super.rb
# HOMEBREW_REPOSITORY is set by bin/brew
+# Trailing colon in MANPATH adds default man dirs to search path in Linux, does no harm in macOS.
+# Please do not submit PRs to remove it!
# shellcheck disable=SC2154
homebrew-shellenv()... | false |
Other | Homebrew | brew | f068f74f55720c4052888d5e8c1103ed439e57b8.json | Move autoremove code to util and add tests | Library/Homebrew/cleanup.rb | @@ -579,6 +579,7 @@ def prune_prefix_symlinks_and_directories
end
def self.autoremove(dry_run: false)
+ require "utils/autoremove"
require "cask/caskroom"
# If this runs after install, uninstall, reinstall or upgrade,
@@ -593,7 +594,7 @@ def self.autoremove(dry_run: false)
end
... | true |
Other | Homebrew | brew | f068f74f55720c4052888d5e8c1103ed439e57b8.json | Move autoremove code to util and add tests | Library/Homebrew/formula.rb | @@ -1844,55 +1844,6 @@ def self.installed
end.uniq(&:name)
end
- # An array of all installed {Formula} with {Cask} dependents.
- # @private
- def self.formulae_with_cask_dependents(casks)
- casks.flat_map { |cask| cask.depends_on[:formula] }
- .compact
- .map { |f| Formula[f] }
- ... | true |
Other | Homebrew | brew | f068f74f55720c4052888d5e8c1103ed439e57b8.json | Move autoremove code to util and add tests | Library/Homebrew/test/formula_spec.rb | @@ -450,136 +450,6 @@
end
end
- shared_context "with formulae for dependency testing" do
- let(:formula_with_deps) do
- formula "zero" do
- url "zero-1.0"
- end
- end
-
- let(:formula_is_dep1) do
- formula "one" do
- url "one-1.1"
- end
- end
-
- let(:formula_... | true |
Other | Homebrew | brew | f068f74f55720c4052888d5e8c1103ed439e57b8.json | Move autoremove code to util and add tests | Library/Homebrew/test/utils/autoremove_spec.rb | @@ -0,0 +1,162 @@
+# typed: false
+# frozen_string_literal: true
+
+require "utils/autoremove"
+
+describe Utils::Autoremove do
+ shared_context "with formulae for dependency testing" do
+ let(:formula_with_deps) do
+ formula "zero" do
+ url "zero-1.0"
+
+ depends_on "three" => :build
+ end
... | true |
Other | Homebrew | brew | f068f74f55720c4052888d5e8c1103ed439e57b8.json | Move autoremove code to util and add tests | Library/Homebrew/utils/autoremove.rb | @@ -0,0 +1,68 @@
+# typed: false
+# frozen_string_literal: true
+
+module Utils
+ # Helper function for finding autoremovable formulae.
+ #
+ # @private
+ module Autoremove
+ module_function
+
+ # An array of all installed {Formula} with {Cask} dependents.
+ # @private
+ def formulae_with_cask_dependent... | true |
Other | Homebrew | brew | bebf01fc535aecdb7efff17642b038e8d7308469.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 | @@ -3556,6 +3556,7 @@ class Object
HOMEBREW_DEFAULT_PREFIX = ::T.let(nil, ::T.untyped)
HOMEBREW_DEFAULT_REPOSITORY = ::T.let(nil, ::T.untyped)
HOMEBREW_DEFAULT_TEMP = ::T.let(nil, ::T.untyped)
+ HOMEBREW_DOCS_WWW = ::T.let(nil, ::T.untyped)
HOMEBREW_GITHUB_PACKAGES_AUTH = ::T.let(nil, ::T.untyped)
HOMEB... | false |
Other | Homebrew | brew | 1ee0475a2215176bd06472c5465fa2bb2ea78fbd.json | Update RBI files for rubocop-rspec.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.13.1.rbi | @@ -6,6 +6,7 @@
module RuboCop; end
module RuboCop::Cop; end
+RuboCop::Cop::IgnoredMethods = RuboCop::Cop::AllowedMethods
RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern
module RuboCop::Cop::RSpec; end
@@ -50,12 +51,15 @@ RuboCop::Cop::RSpec::AnyInstance::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra... | true |
Other | Homebrew | brew | 1ee0475a2215176bd06472c5465fa2bb2ea78fbd.json | Update RBI files for rubocop-rspec.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -3556,6 +3556,7 @@ class Object
HOMEBREW_DEFAULT_PREFIX = ::T.let(nil, ::T.untyped)
HOMEBREW_DEFAULT_REPOSITORY = ::T.let(nil, ::T.untyped)
HOMEBREW_DEFAULT_TEMP = ::T.let(nil, ::T.untyped)
+ HOMEBREW_DOCS_WWW = ::T.let(nil, ::T.untyped)
HOMEBREW_GITHUB_PACKAGES_AUTH = ::T.let(nil, ::T.untyped)
HOMEB... | true |
Other | Homebrew | brew | 8090f7b8f009f2d00feb987d5483511ab651fdff.json | Update RBI files for activesupport.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/gems/activesupport@6.1.7.rbi | @@ -2784,7 +2784,6 @@ end
module ActiveSupport::VERSION; end
ActiveSupport::VERSION::MAJOR = T.let(T.unsafe(nil), Integer)
ActiveSupport::VERSION::MINOR = T.let(T.unsafe(nil), Integer)
-ActiveSupport::VERSION::PRE = T.let(T.unsafe(nil), String)
ActiveSupport::VERSION::STRING = T.let(T.unsafe(nil), String)
ActiveSu... | true |
Other | Homebrew | brew | 8090f7b8f009f2d00feb987d5483511ab651fdff.json | Update RBI files for activesupport.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -19,6 +19,10 @@ module ActiveSupport::ForkTracker::CoreExtPrivate
include ::ActiveSupport::ForkTracker::CoreExt
end
+module ActiveSupport::VERSION
+ PRE = ::T.let(nil, ::T.untyped)
+end
+
class Addrinfo
def connect_internal(local_addrinfo, timeout=T.unsafe(nil)); end
end
@@ -3556,6 +3560,7 @@ class Objec... | true |
Other | Homebrew | brew | 20d2bda9379bf03a9337e78754e5a853c6052603.json | Update RBI files for rubocop-performance.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.15.0.rbi | @@ -6,6 +6,7 @@
module RuboCop; end
module RuboCop::Cop; end
+RuboCop::Cop::IgnoredMethods = RuboCop::Cop::AllowedMethods
RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern
module RuboCop::Cop::Performance; end
@@ -494,6 +495,7 @@ class RuboCop::Cop::Performance::RedundantMatch < ::RuboCop::Cop::Base
... | true |
Other | Homebrew | brew | 20d2bda9379bf03a9337e78754e5a853c6052603.json | Update RBI files for rubocop-performance.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -3556,6 +3556,7 @@ class Object
HOMEBREW_DEFAULT_PREFIX = ::T.let(nil, ::T.untyped)
HOMEBREW_DEFAULT_REPOSITORY = ::T.let(nil, ::T.untyped)
HOMEBREW_DEFAULT_TEMP = ::T.let(nil, ::T.untyped)
+ HOMEBREW_DOCS_WWW = ::T.let(nil, ::T.untyped)
HOMEBREW_GITHUB_PACKAGES_AUTH = ::T.let(nil, ::T.untyped)
HOMEB... | true |
Other | Homebrew | brew | 2af5a974c215712eb96ed6d46b2c4c8ced315371.json | formula_auditor: fix false positive in `audit_gcc_dependency`.
Fixes Homebrew/homebrew-core#110178. | Library/Homebrew/formula_auditor.rb | @@ -881,11 +881,14 @@ def linux_only_gcc_dep?(formula)
bottle_tag = Utils::Bottles::Tag.new(system: macos_version, arch: arch)
next unless bottle_tag.valid_combination?
- variation = variations[bottle_tag.to_sym]
- # This variation does not exist, so it must match Linux.
- ... | false |
Other | Homebrew | brew | ae17d3cffd6ad1c7c855f456190e1474f8b774ff.json | autoremove: ignore build deps when built from src
Now the build dependencies of formula that were installed from
source will not be removed by `brew autoremove`. This is especially
helpful for those who've installed brew in an alternative prefix. | Library/Homebrew/cmd/leaves.rb | @@ -37,7 +37,7 @@ def installed_as_dependency?(formula)
def leaves
args = leaves_args.parse
- leaves_list = Formula.formulae_with_no_formula_dependents(Formula.installed)
+ leaves_list = Formula.installed - Formula.installed.flat_map(&:runtime_formula_dependencies)
leaves_list.select!(&method(:in... | true |
Other | Homebrew | brew | ae17d3cffd6ad1c7c855f456190e1474f8b774ff.json | autoremove: ignore build deps when built from src
Now the build dependencies of formula that were installed from
source will not be removed by `brew autoremove`. This is especially
helpful for those who've installed brew in an alternative prefix. | Library/Homebrew/formula.rb | @@ -1853,12 +1853,21 @@ def self.formulae_with_cask_dependents(casks)
.flat_map { |f| [f, *f.runtime_formula_dependencies].compact }
end
- # An array of all installed {Formula} without {Formula} dependents
+ # An array of all installed {Formula} without runtime {Formula}
+ # dependents for bottles and... | true |
Other | Homebrew | brew | c4e50d7728755ba693bbffc27466638d72f8ac38.json | Update RBI files for rubocop-rails.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.16.0.rbi | @@ -53,6 +53,7 @@ module RuboCop::Cop::EnforceSuperclass
end
end
+RuboCop::Cop::IgnoredMethods = RuboCop::Cop::AllowedMethods
RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern
module RuboCop::Cop::IndexMethod
@@ -125,6 +126,25 @@ end
module RuboCop::Cop::Rails; end
+class RuboCop::Cop::Rails::A... | true |
Other | Homebrew | brew | c4e50d7728755ba693bbffc27466638d72f8ac38.json | Update RBI files for rubocop-rails.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -4926,9 +4926,11 @@ module RuboCop::AST::NodePattern::Sets
SET_BUILD_RECOMMENDED_TEST_OPTIONAL = ::T.let(nil, ::T.untyped)
SET_DEPENDS_ON_USES_FROM_MACOS = ::T.let(nil, ::T.untyped)
SET_INCLUDE_WITH_WITHOUT = ::T.let(nil, ::T.untyped)
+ SET_KEYS_VALUES_TO_H_TO_XML = ::T.let(nil, ::T.untyped)
SET_ON_INTE... | true |
Other | Homebrew | brew | 8be90946228f742ad7f6c616f1c84935887cbf80.json | sponsors-maintainers-man-completions: update sponsors too. | .github/workflows/sponsors-maintainers-man-completions.yml | @@ -1,9 +1,9 @@
-name: Update maintainers, manpage and completions
+name: Update sponsors, maintainers, manpage and completions
on:
push:
paths:
- - .github/workflows/maintainers-man-completions.yml
+ - .github/workflows/sponsors-maintainers-man-completions.yml
- README.md
- Library/H... | false |
Other | Homebrew | brew | bf0d80409b88b4845fa6b61bd9667639bc1f682d.json | Update RBI files for rspec-sorbet.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/gems/rspec-sorbet@1.9.0.rbi | @@ -47,8 +47,9 @@ module RSpec::Sorbet::Doubles
private
- def call_validation_error_handler(_signature, opts); end
+ def call_validation_error_handler(signature, opts); end
def double_message_with_ellipsis?(message); end
+ def handle_call_validation_error(signature, opts); end
def inline_type_error_hand... | true |
Other | Homebrew | brew | bf0d80409b88b4845fa6b61bd9667639bc1f682d.json | Update RBI files for rspec-sorbet.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -1594,6 +1594,8 @@ end
class Errno::EBADRPC
end
+Errno::ECAPMODE = Errno::NOERROR
+
Errno::EDEADLOCK = Errno::NOERROR
class Errno::EDEVERR
@@ -1614,6 +1616,13 @@ end
Errno::EIPSEC = Errno::NOERROR
+class Errno::ELAST
+ Errno = ::T.let(nil, ::T.untyped)
+end
+
+class Errno::ELAST
+end
+
class Errno::EN... | true |
Other | Homebrew | brew | f363704573ad149044bebb94dcb67700ef729311.json | Update RBI files for rack.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/gems/rack@3.0.0.rbi | @@ -150,7 +150,7 @@ class Rack::Builder
def call(env); end
def freeze_app; end
def map(path, &block); end
- def run(app); end
+ def run(app = T.unsafe(nil), &block); end
def to_app; end
def use(middleware, *args, &block); end
def warmup(prc = T.unsafe(nil), &block); end
@@ -161,9 +161,9 @@ class Rac... | true |
Other | Homebrew | brew | f363704573ad149044bebb94dcb67700ef729311.json | Update RBI files for rack.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -1594,6 +1594,8 @@ end
class Errno::EBADRPC
end
+Errno::ECAPMODE = Errno::NOERROR
+
Errno::EDEADLOCK = Errno::NOERROR
class Errno::EDEVERR
@@ -1614,6 +1616,13 @@ end
Errno::EIPSEC = Errno::NOERROR
+class Errno::ELAST
+ Errno = ::T.let(nil, ::T.untyped)
+end
+
+class Errno::ELAST
+end
+
class Errno::EN... | true |
Other | Homebrew | brew | 8d60b3666a04f4fd106f471cad1fff4a1710b569.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 | @@ -1594,6 +1594,8 @@ end
class Errno::EBADRPC
end
+Errno::ECAPMODE = Errno::NOERROR
+
Errno::EDEADLOCK = Errno::NOERROR
class Errno::EDEVERR
@@ -1614,6 +1616,13 @@ end
Errno::EIPSEC = Errno::NOERROR
+class Errno::ELAST
+ Errno = ::T.let(nil, ::T.untyped)
+end
+
+class Errno::ELAST
+end
+
class Errno::EN... | false |
Other | Homebrew | brew | cbc895ce2bae84ac61fc9a5cfe5cdd3e708030f7.json | Add Pathname shim extension RBI definitions | Library/Homebrew/extend/os/linux/extend/pathname.rbi | @@ -0,0 +1,5 @@
+# typed: strict
+
+class Pathname
+ include ELFShim
+end | true |
Other | Homebrew | brew | cbc895ce2bae84ac61fc9a5cfe5cdd3e708030f7.json | Add Pathname shim extension RBI definitions | Library/Homebrew/extend/os/mac/extend/pathname.rbi | @@ -0,0 +1,5 @@
+# typed: strict
+
+class Pathname
+ include MachOShim
+end | true |
Other | Homebrew | brew | cbc895ce2bae84ac61fc9a5cfe5cdd3e708030f7.json | Add Pathname shim extension RBI definitions | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -3908,10 +3908,6 @@ class Parser::Ruby26
Racc_debug_parser = ::T.let(nil, ::T.untyped)
end
-class Pathname
- include ::MachOShim
-end
-
class PkgVersion
def major(*args, &block); end
| true |
Other | Homebrew | brew | e58d7d34560af3b5cb801dda57bce82009378e06.json | brew: improve Docker detection.
Needed for Ubuntu 22.04. | Library/Homebrew/brew.rb | @@ -120,8 +120,9 @@
# Unset HOMEBREW_HELP to avoid confusing the tap
with_env HOMEBREW_HELP: nil do
tap_commands = []
- cgroup = Utils.popen_read("cat", "/proc/1/cgroup")
- if %w[azpl_job actions_job docker garden kubepods].none? { |container| cgroup.include?(container) }
+ if File.exist... | true |
Other | Homebrew | brew | e58d7d34560af3b5cb801dda57bce82009378e06.json | brew: improve Docker detection.
Needed for Ubuntu 22.04. | Library/Homebrew/brew.sh | @@ -197,6 +197,7 @@ check-run-command-as-root() {
[[ "$(id -u)" == 0 ]] || return
# Allow Azure Pipelines/GitHub Actions/Docker/Concourse/Kubernetes to do everything as root (as it's normal there)
+ [[ -f /.dockerenv ]] && return
[[ -f /proc/1/cgroup ]] && grep -E "azpl_job|actions_job|docker|garden|kubepod... | true |
Other | Homebrew | brew | d0e83d39a028babe1a1509ea4d198c9b9d5be6ba.json | add empty line | Library/Homebrew/cask/installer.rb | @@ -98,6 +98,7 @@ def install
print caveats
fetch
uninstall_existing_cask if reinstall?
+
backup if force? && @cask.staged_path.exist? && @cask.metadata_versioned_path.exist?
oh1 "Installing Cask #{Formatter.identifier(@cask)}" | false |
Other | Homebrew | brew | 2c4ef98f0d880142766ed181743af7f8f2d7f724.json | fix additional quotes already handled by #inspect | Library/Homebrew/rubocops/lines.rb | @@ -441,7 +441,7 @@ def audit_formula(_node, _class_node, _parent_class_node, body_node)
elsif shell_parameter_stripped == "--shell="
:arg
else
- "\"#{shell_parameter_stripped}\""
+ shell_parameter_stripped
end
replacement_ar... | false |
Other | Homebrew | brew | ea4fb0fe09d033ca79bcaa908b2c0ad4baf25022.json | update command comparison to `*commands` vararg | Library/Homebrew/rubocops/lines.rb | @@ -521,9 +521,12 @@ def audit_formula(_node, _class_node, _parent_class_node, body_node)
return if offenses.blank?
T.must(offenses[0...-1]).each_with_index do |node, i|
- # executable and subcmd have to be the same to be combined
- if node.arguments.first != offenses[i + 1... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.