33509 Commits

Author SHA1 Message Date
dependabot[bot]
25476527fb
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.11625 to 0.5.11630.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-31 19:04:00 +00:00
dependabot[bot]
790072cd04
build(deps-dev): bump ruby-lsp in /Library/Homebrew
Bumps [ruby-lsp](https://github.com/Shopify/ruby-lsp) from 0.20.1 to 0.21.1.
- [Release notes](https://github.com/Shopify/ruby-lsp/releases)
- [Commits](https://github.com/Shopify/ruby-lsp/compare/v0.20.1...v0.21.1)

---
updated-dependencies:
- dependency-name: ruby-lsp
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-31 18:31:26 +00:00
Michael Cho
f18e1ea86a
Merge pull request #18614 from Homebrew/inreplace-non-global
utils/inreplace: allow non-global substitution
2024-10-31 14:05:27 -04:00
Mike McQuaid
f5b211efaa
os/linux/diagnostic: remove XDG_DATA_DIRS. 2024-10-31 12:43:36 +00:00
Carlo Cabrera
f780e93360
Merge pull request #18678 from Homebrew/native-ruby-uname 2024-10-31 15:48:25 +08:00
Carlo Cabrera
bc21cf366e
os: use native ruby calls for uname
This avoids the overhead of shelling out.
2024-10-31 15:35:58 +08:00
Carlo Cabrera
a7548f009e
Merge pull request #18674 from Homebrew/kernel-major-versions 2024-10-31 15:34:35 +08:00
Carlo Cabrera
42dd0acdc9
macos_version: define a method instead 2024-10-31 15:15:02 +08:00
Mike McQuaid
e7159d733c
Revert "cmd/shellenv: set XDG_DATA_DIRS on Linux" 2024-10-30 18:27:54 -07:00
Mike McQuaid
90c043ee0e
Merge pull request #18663 from Homebrew/python-reduce-pth
language/python: reduce dependencies added to pth file
2024-10-30 18:23:40 -07:00
Ruoyu Zhong
702bfe1281
Merge pull request #18670 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-static-and-runtime-0.5.11625
build(deps-dev): bump sorbet-static-and-runtime from 0.5.11620 to 0.5.11625 in /Library/Homebrew
2024-10-31 02:55:49 +08:00
BrewTestBot
ece445a147
brew vendor-gems: commit updates. 2024-10-30 18:43:04 +00:00
BrewTestBot
a9dac0f4d6
brew vendor-gems: commit updates. 2024-10-30 18:43:03 +00:00
Carlo Cabrera
5ae4f254b6
macos_version: add KERNEL_MAJOR_VERSIONS map
This will be used by `llvm` (and, presumably, in the future, versioned
LLVM formulae). The idea is that we will write a config file for each OS
version pointing to the correct SDKROOT so that `llvm` does not require
rebuilding/reinstalling when a user upgrades to a new major version of
macOS.

See Homebrew/homebrew-core#196094.
2024-10-31 02:39:38 +08:00
dependabot[bot]
d77052257b
build(deps-dev): bump json from 2.7.4 to 2.7.5 in /Library/Homebrew
Bumps [json](https://github.com/ruby/json) from 2.7.4 to 2.7.5.
- [Release notes](https://github.com/ruby/json/releases)
- [Changelog](https://github.com/ruby/json/blob/master/CHANGES.md)
- [Commits](https://github.com/ruby/json/compare/v2.7.4...v2.7.5)

---
updated-dependencies:
- dependency-name: json
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-30 18:05:22 +00:00
dependabot[bot]
d80bf30539
build(deps-dev): bump sorbet-static-and-runtime in /Library/Homebrew
Bumps [sorbet-static-and-runtime](https://github.com/sorbet/sorbet) from 0.5.11620 to 0.5.11625.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet-static-and-runtime
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-30 18:04:44 +00:00
hyuraku
c60e80f0a9 remove Cask::Config.explicit_s spec 2024-10-30 22:20:56 +09:00
hyuraku
9069d42550 remove Cask::Config.explicit_s 2024-10-30 21:08:17 +09:00
Michael Cho
fdabc2fd03
language/python: reduce dependencies added to pth file 2024-10-29 23:22:16 -04:00
Michael Cho
f82c58383c
utils/inreplace: allow non-global substitution
Also increase test coverage
2024-10-29 20:15:47 -04:00
Patrick Linnane
0e24ee2c08
Merge pull request #18657 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.11620 2024-10-29 11:47:13 -07:00
BrewTestBot
b489c9b0e2
Update RBI files for rubocop-ast.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-10-29 18:36:22 +00:00
BrewTestBot
cef9db1ccf
brew vendor-gems: commit updates. 2024-10-29 18:36:14 +00:00
BrewTestBot
01d9e4758f
brew vendor-gems: commit updates. 2024-10-29 18:36:04 +00:00
dependabot[bot]
c26f79bebb
build(deps-dev): bump rubocop-ast in /Library/Homebrew
Bumps [rubocop-ast](https://github.com/rubocop/rubocop-ast) from 1.32.3 to 1.33.0.
- [Release notes](https://github.com/rubocop/rubocop-ast/releases)
- [Changelog](https://github.com/rubocop/rubocop-ast/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-ast/compare/v1.32.3...v1.33.0)

---
updated-dependencies:
- dependency-name: rubocop-ast
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-29 18:26:05 +00:00
dependabot[bot]
e38f5e3de1
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.11618 to 0.5.11620.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-29 18:25:06 +00:00
Sutou Kouhei
0c3e207b24 dev-cmd/bump-formula-pr: fix type error
The error message:

    Error: Parameter 'formula': Expected type String, got type Formulary::FormulaNamespace87ec47e7f9dec2f39e30adcc9fdea28fb57606eab88d4f83e8ebec591964143c::ApacheArrow with value #<Formula apache-arrow (sta...ore/Formula/a/apache-arrow.rb>
    Caller: /opt/homebrew/Library/Homebrew/dev-cmd/bump-formula-pr.rb:152
    Definition: /opt/homebrew/Library/Homebrew/dev-cmd/bump-formula-pr.rb:417 (Homebrew::DevCmd::BumpFormulaPr#check_for_mirrors)
    /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11618/lib/types/configuration.rb:296:in `call_validation_error_handler_default'
    /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11618/lib/types/configuration.rb:303:in `call_validation_error_handler'
    /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11618/lib/types/private/methods/call_validation.rb:310:in `report_error'
    /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11618/lib/types/private/methods/call_validation.rb:218:in `block in validate_call'
    /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11618/lib/types/private/methods/signature.rb:213:in `each_args_value_type'
    /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11618/lib/types/private/methods/call_validation.rb:215:in `validate_call'
    /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11618/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
    /opt/homebrew/Library/Homebrew/dev-cmd/bump-formula-pr.rb:152:in `run'
    /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11618/lib/types/private/methods/call_validation.rb:270:in `bind_call'
    /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11618/lib/types/private/methods/call_validation.rb:270:in `validate_call'
    /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11618/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
    /opt/homebrew/Library/Homebrew/brew.rb:94:in `<main>'
    Please report this issue:
      https://docs.brew.sh/Troubleshooting

This happened when I use the following command line:

    brew bump-formula-pr \
         --commit \
         --no-audit \
         --sha256="abcf1934cd0cdddd33664e9f2d9a251d6c55239d1122ad0ed223b13a583c82a9" \
         --url="https://www.apache.org/dyn/closer.lua?path=arrow/arrow-18.0.0/apache-arrow-18.0.0.tar.gz" \
         --verbose \
         --write-only \
         apache-arrow
2024-10-29 06:42:29 +09:00
Ruoyu Zhong
841117aa75
Merge pull request #18649 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.11618
build(deps-dev): bump sorbet from 0.5.11615 to 0.5.11618 in /Library/Homebrew
2024-10-29 04:09:16 +08:00
BrewTestBot
075fc0f6ad
Update RBI files for rubocop-rspec.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-10-28 19:56:35 +00:00
BrewTestBot
1f0f127f49
brew vendor-gems: commit updates. 2024-10-28 19:56:26 +00:00
BrewTestBot
6f9ad46720
brew vendor-gems: commit updates. 2024-10-28 19:56:26 +00:00
dependabot[bot]
e961c8c4eb
build(deps-dev): bump rubocop-rspec in /Library/Homebrew
Bumps [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v3.1.0...v3.2.0)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 18:21:41 +00:00
dependabot[bot]
4ae5981182
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.11615 to 0.5.11618.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 18:21:33 +00:00
Bo Anderson
91f3671b16
Merge pull request #18639 from Homebrew/improve_parallel_tests
spec_helper: improve parallel test handling.
2024-10-27 16:34:49 +00:00
Bo Anderson
46cb9ec947
spec_helper: clarify comment and scope to all OS 2024-10-27 15:45:46 +00:00
Mike McQuaid
e4fb33928f
Merge pull request #18613 from pkryger/allow_homebrew_prefix_in_external_patches
Allow HOMEBREW_PREFIX replacement in external patches
2024-10-27 07:11:17 -07:00
Mike McQuaid
92fee908ba
spec_helper: improve parallel test handling.
- Clarify the comment of why we have SimpleCov special logic for
  parallel tests
- use a nicer ParallelTests API for checking which process to output
  the coverage format on
2024-10-26 11:20:37 +01:00
Ruoyu Zhong
59d56f84ac
Merge pull request #18629 from Homebrew/env-config-test-timeout
Add `HOMEBREW_TEST_TIMEOUT_SECS` env var
2024-10-26 17:42:26 +08:00
Ruoyu Zhong
d2cdd99591
Add HOMEBREW_TEST_TIMEOUT_SECS env var
Intended mainly for third-party formulae, this allows formula tests to
be run with a customised timeout.

This is a private, undocumented API and subject to change.

Co-authored-by: Carlo Cabrera <github@carlo.cab>
2024-10-26 17:32:41 +08:00
Mike McQuaid
368d0868dc
Merge pull request #18622 from Homebrew/livecheck/error-on-invalid-url-symbol
livecheck: error on invalid url symbol
2024-10-26 10:30:09 +01:00
Bo Anderson
b34e6ee20e
Merge pull request #18638 from Homebrew/keg_relocate-type-fix
keg_relocate: fix error when dylib_id doesn't need changing
2024-10-26 06:45:57 +01:00
Bo Anderson
28f19878e3
keg_relocate: fix error when dylib_id doesn't need changing 2024-10-26 06:31:05 +01:00
Eric Knibbe
a4afbafe16
Merge pull request #18635 from Homebrew/dependabot/bundler/Library/Homebrew/json-2.7.4
build(deps-dev): bump json from 2.7.3 to 2.7.4 in /Library/Homebrew
2024-10-26 00:25:32 -04:00
Bo Anderson
529eadd6cc
os/mac/keg_relocate: don't change Swift stdlib dylib IDs 2024-10-25 20:55:21 +01:00
dependabot[bot]
66617cc7a4
build(deps-dev): bump json from 2.7.3 to 2.7.4 in /Library/Homebrew
Bumps [json](https://github.com/ruby/json) from 2.7.3 to 2.7.4.
- [Release notes](https://github.com/ruby/json/releases)
- [Changelog](https://github.com/ruby/json/blob/master/CHANGES.md)
- [Commits](https://github.com/ruby/json/compare/v2.7.3...v2.7.4)

---
updated-dependencies:
- dependency-name: json
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-25 18:59:15 +00:00
Przemysław Kryger
2225af5bef Revert "Disable audit_result in inreplace"
This reverts commit f31e93a73aab025e60a4a798031c73327cef45cb.
2024-10-25 15:26:03 +01:00
Sam Ford
bfdb84f676
Expand #checkable_urls test coverage
This expands tests for `#checkable_urls` to cover everything except
branches that shouldn't ever be reached.
2024-10-25 09:55:22 -04:00
Sam Ford
d7b515bf73
livecheck: error on invalid url symbol
Up to now, we haven't been accounting for `#url` symbol arguments in
`livecheck` blocks that don't reference a checkable URL. This can
either be an invalid symbol (e.g., using the `:stable` formula symbol
in a cask) or a valid symbol where the referenced URL doesn't exist
(e.g., using `:head` when there's no `head` URL). [Almost all of the
valid symbols are required URLs but `head` is optional.]

Over the years, we've had a handful of slips where we've used `:url`
in formulae (when it's only valid in casks) and `:stable` in casks
(when it's only valid in formulae). In this scenario,
`livecheck_url_string` is `nil`, so livecheck falls back to
`#checkable_urls`. In this scenario, `stable` and `url` are the first
checkable URLs for formulae and casks (respectively), so the checks
ended up working as expected merely by chance. This isn't obvious in
the output and even the debug output looks normal. It only becomes
apparent that livecheck isn't working as expected if it iterates
through more than one checkable URL before reaching one that works
(not the case in those instances).

With that in mind, this adds an error when a `#url` symbol is used
but it doesn't correspond to a checkable URL. This will account for
both of the mentioned scenarios (invalid symbols and valid ones
referencing a non-existent URL) and prevent livecheck from quietly
proceeding in an unexpected manner.
2024-10-25 09:54:28 -04:00
Mike McQuaid
bbe5a858d5
Merge pull request #18615 from Neved4/go-gcflags
Go: Add `-gcflags` to `std_go_args`
2024-10-25 13:45:58 +01:00
Przemysław Kryger
f31e93a73a Disable audit_result in inreplace
This is to allow migration of existing users of @@HOMEBREW_PREFIX@@ tag in external patches. Once the automatic
replacement of the tag is in stable branch and existing users are fixed (inreplace calls removed), this commit can be
reverted.
2024-10-25 13:37:15 +01:00