34489 Commits

Author SHA1 Message Date
Mike McQuaid
d240eda154
os/linux/extend/ENV/super: add comment. 2025-03-19 12:30:59 +00:00
Mike McQuaid
d84fac5af4
Look for VSCode variants
We've had requests for this in Homebrew/bundle a few times so let's
implement it both for there and for `brew edit`.

Tested on my machine with `cursor` and working as expected.
2025-03-19 11:42:37 +00:00
Mike McQuaid
dea26d02b7
Import documentation for brew bundle
This was in the (soon to be archived) Homebrew/homebrew-bundle
repository's `README`. There's some good content here that doesn't
cleanly fit into the `brew` manpage so let's move it here.

While we're here, let's de-emphasize `whalebrew` as it's not
widely used and add commented-out deprecation warnings for its future
deprecation.
2025-03-19 10:53:00 +00:00
Mike McQuaid
1fa4128112
Merge pull request #19543 from Homebrew/bundle_services_installed
bundle: remove services_installed?
2025-03-19 10:50:01 +00:00
Mike McQuaid
a502ae2920
bundle/brew_services: use HOMEBREW_BREW_FILE.
This ensures the correct `brew` binary is always used.
2025-03-19 10:24:42 +00:00
Mike McQuaid
c7f6fc639b
bundle: remove services_installed?
`brew services` is now always "installed".
2025-03-19 10:14:56 +00:00
Mike McQuaid
f8baea29cb
Merge pull request #19540 from Homebrew/brew_bundle_cleanup
Cleanup some missing references to Homebrew Bundle.
2025-03-19 10:07:37 +00:00
Mike McQuaid
7a57af242e
Cleanup some missing references to Homebrew Bundle.
Let's just call it `brew bundle` from now on as it's a normal command.

Also, fix a reference to "Homebrew Services" while we're here.
2025-03-19 09:51:39 +00:00
Mike McQuaid
51388bf58a
Merge pull request #19539 from Homebrew/bundle_debugging
bundle/cask_installer: remove debugging output.
2025-03-19 09:37:07 +00:00
Mike McQuaid
2fb3f35634
Merge pull request #19535 from Homebrew/services-run-file
Support `--file` for `brew services run`
2025-03-19 09:08:02 +00:00
Carlo Cabrera
03bc77e600
Merge pull request #19528 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-dcdbf2bc1b
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
2025-03-19 09:04:23 +00:00
Mike McQuaid
7434dfcbb5
bundle/cask_installer: remove debugging output.
This was accidentally left in but should have been removed.
2025-03-19 09:02:12 +00:00
Mike McQuaid
81313133f1
Merge pull request #19487 from Homebrew/bundle
Migrate Homebrew/bundle to Homebrew/brew
2025-03-19 06:59:07 +00:00
Mike McQuaid
bdeca530ff
Migrate Homebrew/bundle to Homebrew/brew
Co-authored-by: Bo Anderson <mail@boanderson.me>
2025-03-19 06:47:01 +00:00
BrewTestBot
470a1f3f66
Update RBI files for sorbet.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2025-03-19 06:25:57 +00:00
BrewTestBot
5dc292a45e
brew vendor-gems: commit updates. 2025-03-19 06:25:46 +00:00
Bo Anderson
da003521c6
Support --file for brew services run 2025-03-19 06:13:34 +00:00
BrewTestBot
4fd1b9300e
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2025-03-19 00:27:34 +00:00
dependabot[bot]
4001394378
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
Bumps the sorbet group in /Library/Homebrew with 4 updates: [sorbet-static-and-runtime](https://github.com/sorbet/sorbet), [sorbet-runtime](https://github.com/sorbet/sorbet), [sorbet](https://github.com/sorbet/sorbet) and [sorbet-static](https://github.com/sorbet/sorbet).


Updates `sorbet-static-and-runtime` from 0.5.11933 to 0.5.11942
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Updates `sorbet-runtime` from 0.5.11933 to 0.5.11942
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Updates `sorbet` from 0.5.11933 to 0.5.11942
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Updates `sorbet-static` from 0.5.11933 to 0.5.11942
- [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
  dependency-group: sorbet
- dependency-name: sorbet-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: sorbet
- dependency-name: sorbet
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: sorbet
- dependency-name: sorbet-static
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: sorbet
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-18 21:12:21 +00:00
Eric Knibbe
e59fd841f1
Merge pull request #19531 from Homebrew/dependabot/bundler/Library/Homebrew/ruby-lsp-0.23.12
build(deps-dev): bump ruby-lsp from 0.23.11 to 0.23.12 in /Library/Homebrew
2025-03-18 21:01:05 +00:00
dependabot[bot]
7b2a9411dd
build(deps): bump setuptools in /Library/Homebrew/formula-analytics
Bumps [setuptools](https://github.com/pypa/setuptools) from 76.0.0 to 76.1.0.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v76.0.0...v76.1.0)

---
updated-dependencies:
- dependency-name: setuptools
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-18 18:37:58 +00:00
dependabot[bot]
07ef5b2dd7
build(deps-dev): bump ruby-lsp in /Library/Homebrew
Bumps [ruby-lsp](https://github.com/Shopify/ruby-lsp) from 0.23.11 to 0.23.12.
- [Release notes](https://github.com/Shopify/ruby-lsp/releases)
- [Commits](https://github.com/Shopify/ruby-lsp/compare/v0.23.11...v0.23.12)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-18 18:28:58 +00:00
dependabot[bot]
ee1f6573f3
build(deps-dev): bump rubocop-ast in /Library/Homebrew
Bumps [rubocop-ast](https://github.com/rubocop/rubocop-ast) from 1.38.1 to 1.39.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.38.1...v1.39.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>
2025-03-18 18:28:39 +00:00
Carlo Cabrera
19389448d2
Merge branch 'master' into sorbet-files-update 2025-03-19 01:49:15 +08:00
Carlo Cabrera
49dac599da
Merge branch 'master' into pac-bti 2025-03-19 01:32:54 +08:00
Mike McQuaid
3e5f7b95a5
Merge pull request #19526 from botantony/dmg-unpack
unpack `.dmg`: ignore `.HFS+ Private*` metadata directories
2025-03-18 12:10:19 +00:00
botantony
d3cfc3d193
unpack .dmg: ignore .HFS+ Private* metadata directories
Signed-off-by: botantony <antonsm21@gmail.com>
2025-03-18 12:59:21 +01:00
Mike McQuaid
3f6d30f885
Merge pull request #19517 from botantony/brew-doctor
fix: ignore broken kegs during gcc linkage test
2025-03-18 11:50:21 +00:00
Adrian Ho
c180d636ef linux/hardware/cpu: fix amd_k12 reference
AMD K12 was an planned ARM microarchitecture that never existed.

Ref: https://en.wikipedia.org/wiki/List_of_AMD_CPU_microarchitectures#Nomenclature
2025-03-18 18:45:46 +08:00
botantony
4b62b9d2c5
fix: ignore broken kegs during gcc linkage test
Signed-off-by: botantony <antonsm21@gmail.com>
Co-authored-by: Carlo Cabrera <github@carlo.cab>
2025-03-18 11:00:14 +01:00
Carlo Cabrera
ab59e2d5dc
Merge branch 'master' into arm64-linux-bottle-blocks 2025-03-18 17:25:00 +08:00
Carlo Cabrera
11827656a9
Fix bottle block generation and audit for arm64 Linux
Before this change, `brew bottle` would add the `:arm64_linux` bottle
lines last. This would make `brew style` complain because it wants the
`arm64_*` bottles listed first.

Let's fix this by retaining the existing style as closely as possible:
- macOS bottles are listed first
- for each OS, arm64 bottles are listed first (just as we do on macOS)

In particular, `brew bottle` will now insert `:arm64_linux` bottle lines
just above the `:x86_64_linux` bottle lines (but still below the macOS
bottle lines).

x86_64 may continue to be a more popular platform on Linux for quite
some time. However, users looking for those bottles can continue to look
in the same place as before this change (i.e., the last line of the
bottle block). Taking this together with the consistency on macOS
mentioned above, I think this is the right way forward here.

For concreteness, here are some examples of bottle blocks before and after
this change.

Before this change, immediately after `brew bottle`:

    bottle do
      sha256 arm64_sequoia: "1a57e04052f4bae4172d546a7927c645fc29d2ef5fafbec19d08ee1dddc542fb"
      sha256 arm64_sonoma:  "a58cf9af5d04d3d5709b5337f3793586087a79e178da51d1f3978c0c13b8cf34"
      sha256 ventura:       "6d8b90b2cbb31dcb78394c6540f5454cd57232fc309921173814f880e63718f0"
      sha256 x86_64_linux:  "cd5faac2834ba79e39429b9aac99e4f69d6e6023cbb1cbcd0b62e94cfc69bb2a"
      sha256 arm64_linux:   "457d3e9bd0c287483e27f29a488a18c90e1f55be076fc49b07942ef396c419be"
    end

Before this change, after doing `brew style --fix`:

    bottle do
      sha256 arm64_sequoia: "1a57e04052f4bae4172d546a7927c645fc29d2ef5fafbec19d08ee1dddc542fb"
      sha256 arm64_sonoma:  "a58cf9af5d04d3d5709b5337f3793586087a79e178da51d1f3978c0c13b8cf34"
      sha256 arm64_linux:   "457d3e9bd0c287483e27f29a488a18c90e1f55be076fc49b07942ef396c419be"
      sha256 ventura:       "6d8b90b2cbb31dcb78394c6540f5454cd57232fc309921173814f880e63718f0"
      sha256 x86_64_linux:  "cd5faac2834ba79e39429b9aac99e4f69d6e6023cbb1cbcd0b62e94cfc69bb2a"
    end

After this change:

    bottle do
      sha256 arm64_sequoia: "1a57e04052f4bae4172d546a7927c645fc29d2ef5fafbec19d08ee1dddc542fb"
      sha256 arm64_sonoma:  "a58cf9af5d04d3d5709b5337f3793586087a79e178da51d1f3978c0c13b8cf34"
      sha256 ventura:       "6d8b90b2cbb31dcb78394c6540f5454cd57232fc309921173814f880e63718f0"
      sha256 arm64_linux:   "457d3e9bd0c287483e27f29a488a18c90e1f55be076fc49b07942ef396c419be"
      sha256 x86_64_linux:  "cd5faac2834ba79e39429b9aac99e4f69d6e6023cbb1cbcd0b62e94cfc69bb2a"
    end
2025-03-18 16:10:43 +08:00
Bo Anderson
6fed6c10e2
Use PAC+BTI where possible on arm64 Linux 2025-03-18 06:14:16 +00:00
BrewTestBot
0429c858c0
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2025-03-18 00:27:00 +00:00
Patrick Linnane
a4ba96b1ca
Merge pull request #19509 from Homebrew/fix-livecheck-options-types
livecheck: update types to allow nested JSON hashes
2025-03-17 15:13:52 +00:00
Patrick Linnane
57054642d6
Merge pull request #19507 from Homebrew/cask-stanzas-arch-os-ordered
rubocops/cask/stanza_order: Ensure `arch` and `os` are adjacent
2025-03-17 15:06:48 +00:00
Carlo Cabrera
343eac915b
os/linux/diagnostic: skip error on arm64 when HOMEBREW_ARM64_TESTING is set
This[^1] will enable us to start testing arm64 bottle builds in
Homebrew/core when this environment variable is set.

[^1]: Along with some tweaks to the `dispatch-build-bottle` workflow.
2025-03-17 20:52:12 +08:00
Sean Molenaar
4f7e45881d feat: add linux support to bump-cask-pr 2025-03-17 12:08:27 +01:00
Sean Molenaar
7687ae3891 feat: add linux support to bump-cask-pr 2025-03-17 11:58:00 +01:00
Klaus Hipp
d993a8e04d
livecheck: update types to allow nested JSON hashes 2025-03-17 10:19:42 +01:00
Issy Long
089680c76f
rubocops/cask/stanza_order: Ensure arch and os are adjacent
- Because Patrick wanted this to be codified.
2025-03-16 21:36:07 +00:00
botantony
96eacb7fd9
std_go_args: add -tags flag
Signed-off-by: botantony <antonsm21@gmail.com>
2025-03-16 21:41:19 +01:00
Bo Anderson
3d8e895748
Merge pull request #19501 from botantony/ignore-gnu-homepage
Skip homepage audit for `www.gnu.org` and `www.nongnu.org` on GitHub runners
2025-03-16 03:32:57 +00:00
Anton
db130b65f3
Use one regex for gnu.org homepage
Co-authored-by: Bo Anderson <mail@boanderson.me>
2025-03-16 01:55:28 +01:00
botantony
da3cb65857
Skip homepage audit for www.gnu.org on GitHub runners
Signed-off-by: botantony <antonsm21@gmail.com>
2025-03-16 00:45:09 +01:00
Bo Anderson
7ba9e9a0fc
Merge pull request #19502 from jimeh/fix-brew-services-list
fix(services/list): correctly handle services with an error code
2025-03-15 23:30:46 +00:00
Bo Anderson
104fa68171
Merge pull request #19497 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
2025-03-15 23:14:56 +00:00
Jim Myhrberg
f969c05b20
fix(services/list): correctly handle services with an error code
The `brew services list` command was not correctly handling services
that had an error code status.

While the `#zero?` method returns a boolean, the `#nonzero?` method
confusingly returns self or nil. Hence a negated `#zero?` call to check
for a non-zero exit code fixes the error.

While here, `#pid?` method uses a negated `#zero?`, which is not
accurate, as a negative PID value would not be a valid PID. Hence I
changed it to use `#positive?` instead.

The tests for the `#error?` method were marked as needing systemd, but I
saw no obvious reason for that due to how they all use mocked values, so
I removed the systemd requirement.
2025-03-15 22:13:44 +00:00
Eric Knibbe
d8230eb740
download_strategy: compare cached size to Content-Length 2025-03-14 23:48:25 -04:00
Douglas Eichelberger
b131f47d75
fix: DownloadStrategy meta params should be untyped 2025-03-14 18:18:58 -07:00