44229 Commits

Author SHA1 Message Date
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
Mike McQuaid
2462e40ca5
Merge pull request #19506 from botantony/go-tags
std_go_args: add `-tags` flag
2025-03-17 09:01:20 +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
c4fe6f2c29
Merge pull request #19503 from Homebrew/sponsors-maintainers-man-completions
Update sponsors.
2025-03-16 03:33:05 +00: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
BrewTestBot
e0efd2d9a5
Update sponsors.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2025-03-16 00:08:38 +00: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
Mike McQuaid
4d55e48a16
Merge pull request #19460 from Homebrew/cache-consider-file-size
download_strategy: compare cached file size to Content-Length
2025-03-15 09:12:07 +00:00
Eric Knibbe
d8230eb740
download_strategy: compare cached size to Content-Length 2025-03-14 23:48:25 -04:00
Douglas Eichelberger
c67f24b7a8
Merge pull request #19499 from Homebrew/fix-meta-param
fix: DownloadStrategy meta params should be untyped
2025-03-15 01:31:53 +00:00
Douglas Eichelberger
b131f47d75
fix: DownloadStrategy meta params should be untyped 2025-03-14 18:18:58 -07:00
BrewTestBot
b28d170972
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2025-03-15 00:26:29 +00:00
Douglas Eichelberger
c9a6bd6438
Merge pull request #19475 from Homebrew/typed-system-command
refactor: Enable strict typing in download_strategy
2025-03-14 22:34:17 +00:00
Eric Knibbe
752120772c
Merge pull request #19494 from Homebrew/dependabot/bundler/Library/Homebrew/spoom-1.6.1
build(deps-dev): bump spoom from 1.6.0 to 1.6.1 in /Library/Homebrew
2025-03-14 21:48:34 +00:00
dependabot[bot]
ba940f864d
build(deps-dev): bump spoom from 1.6.0 to 1.6.1 in /Library/Homebrew
Bumps [spoom](https://github.com/Shopify/spoom) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/Shopify/spoom/releases)
- [Commits](https://github.com/Shopify/spoom/compare/v1.6.0...v1.6.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-14 21:09:05 +00:00
Eric Knibbe
9b8c177150
Merge pull request #19493 from Homebrew/dependabot/bundler/Library/Homebrew/rbi-0.3.1
build(deps-dev): bump rbi from 0.3.0 to 0.3.1 in /Library/Homebrew
2025-03-14 20:49:27 +00:00
BrewTestBot
9e18d6b14f
Update RBI files for rbi.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2025-03-14 20:34:10 +00:00
BrewTestBot
25d8002310
brew vendor-gems: commit updates. 2025-03-14 20:34:01 +00:00
dependabot[bot]
776b9ee38a
build(deps-dev): bump rbi from 0.3.0 to 0.3.1 in /Library/Homebrew
Bumps [rbi](https://github.com/Shopify/rbi) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/Shopify/rbi/releases)
- [Commits](https://github.com/Shopify/rbi/compare/v0.3.0...v0.3.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-14 20:14:01 +00:00
Eric Knibbe
4b4d9d7e73
Merge pull request #19492 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-7d64cd566f
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
2025-03-14 19:18:55 +00:00
BrewTestBot
90ab32b7da 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-14 15:07:40 -04:00
BrewTestBot
1ebe31713c brew vendor-gems: commit updates. 2025-03-14 15:07:40 -04:00
dependabot[bot]
2473507b0b 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.11930 to 0.5.11933
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

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

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

Updates `sorbet-static` from 0.5.11930 to 0.5.11933
- [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-14 15:07:40 -04:00
Carlo Cabrera
8f2c28c2f6
Merge pull request #19495 from BenBergman/patch-1
Fix typo in Installation.md
2025-03-14 18:44:57 +00:00
Benjamin Bergman
b378ec91fe
Fix typo in Installation.md 2025-03-14 13:25:21 -05:00
Mike McQuaid
a20b5c5d67
Merge pull request #19491 from Homebrew/service_any_installed_prefix
formula: use any_installed_prefix for service paths
2025-03-14 17:28:51 +00:00
Mike McQuaid
8060ce8e54
Merge pull request #19490 from Homebrew/fix_services_types
Fix services types
2025-03-14 17:24:10 +00:00
Mike McQuaid
805cd6f54f
formula: use any_installed_prefix for service paths
This fixes some edge cases where these paths cannot be found if a keg is
not linked.
2025-03-14 17:17:27 +00:00
Mike McQuaid
c82518032e
Fix services types
Some of the typing/`T.must` usage when moving the
Homebrew/homebrew-services code to Homebrew/brew was not quite correct.

Rather than trying to make everything `strict` and import at the same
time: let's mostly loosen the typing to fix a few bugs and allow us to
add more later.
2025-03-14 16:53:07 +00:00
Mike McQuaid
0344030256
Merge pull request #19488 from Homebrew/sponsors-maintainers-man-completions
Update manpage and completions.
2025-03-14 08:55:32 +00:00
BrewTestBot
9dcc35ced0
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2025-03-14 08:43:39 +00:00
Sean Molenaar
0e80446543
Merge pull request #19459 from Homebrew/feat/fetch/cask_on_linux
fix: allow fetching casks on Linux
2025-03-14 08:40:43 +00:00
Mike McQuaid
191c8cea04
Merge pull request #19385 from botantony/services
services: migrate external tap to main repo
2025-03-14 08:31:01 +00:00
Bo Anderson
02cd7a63c8
Move Services module to Homebrew namespace 2025-03-14 08:19:11 +00:00
Sean Molenaar
756ba2ba59 Add Linux dependency check in cask.rb 2025-03-13 21:47:17 +01:00
Sean Molenaar
9f6b421ad6 fix: check OS for macos dependency 2025-03-13 21:28:40 +01:00
Sean Molenaar
a137426839 feat: generate cask API for linux 2025-03-13 21:28:40 +01:00
Sean Molenaar
2fb5d52b95 fix: allow fetching casks on Linux 2025-03-13 21:28:40 +01:00
Patrick Linnane
68cead54fe
Merge pull request #19484 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.74.0
build(deps-dev): bump rubocop from 1.73.2 to 1.74.0 in /Library/Homebrew
2025-03-13 19:30:25 +00:00
botantony
25b9000c77
spec_helper: add :needs_systemd
Signed-off-by: botantony <antonsm21@gmail.com>
2025-03-13 20:29:26 +01:00
Douglas Eichelberger
0152b70bb7
Merge pull request #19482 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-acdb773b42
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
2025-03-13 19:18:12 +00:00
Douglas Eichelberger
39843b5d40
Resolve violations 2025-03-13 12:16:11 -07:00
Douglas Eichelberger
7f18c341d3
Merge pull request #19483 from Homebrew/dependabot/bundler/Library/Homebrew/minitest-5.25.5
build(deps-dev): bump minitest from 5.25.4 to 5.25.5 in /Library/Homebrew
2025-03-13 19:11:56 +00:00
BrewTestBot
437120d875
Update RBI files for rubocop.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2025-03-13 19:00:08 +00:00
BrewTestBot
086f2a904f
brew vendor-gems: commit updates. 2025-03-13 18:59:40 +00:00
BrewTestBot
3a915b48ab
Update RBI files for minitest.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2025-03-13 18:59:36 +00:00