33509 Commits

Author SHA1 Message Date
dependabot[bot]
8b1a18e7df
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.11778 to 0.5.11780
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

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

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

Updates `sorbet-static` from 0.5.11778 to 0.5.11780
- [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-01-24 18:26:06 +00:00
Mike McQuaid
f4371b866d
Merge pull request #19116 from alebcay/utils-check-binary-linkage
utils: add check_binary_linkage function
2025-01-24 09:03:33 +00:00
Patrick Linnane
dcf744d729
Merge pull request #19141 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.71.0
build(deps-dev): bump rubocop from 1.70.0 to 1.71.0 in /Library/Homebrew
2025-01-23 22:45:13 +00:00
BrewTestBot
3ed5ccec8b
Update RBI files for rubocop.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2025-01-23 22:13:42 +00:00
BrewTestBot
8f3dd0e702
brew vendor-gems: commit updates. 2025-01-23 22:13:19 +00:00
BrewTestBot
9701ad3ce6
brew vendor-gems: commit updates. 2025-01-23 19:29:26 +00:00
dependabot[bot]
5168281895
build(deps-dev): bump rubocop from 1.70.0 to 1.71.0 in /Library/Homebrew
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.70.0 to 1.71.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.70.0...v1.71.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-23 18:48:34 +00:00
dependabot[bot]
0aa177731e
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.11770 to 0.5.11778
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

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

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

Updates `sorbet-static` from 0.5.11770 to 0.5.11778
- [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-01-23 18:48:07 +00:00
Mike McQuaid
1f55c1272d
Merge pull request #19139 from Homebrew/tests_no_force_brew_wrapper
dev-cmd/tests: disable forcing `brew` wrapper in tests.
2025-01-23 17:28:25 +00:00
Mike McQuaid
d0304b4816
Merge pull request #19137 from Homebrew/cleanup_improve_pinned
cleanup: improve cleanup version detection.
2025-01-23 16:38:20 +00:00
Mike McQuaid
9f319bc4a7
Merge pull request #19136 from Homebrew/skip_link
Add `brew install --skip-link`
2025-01-23 16:37:58 +00:00
Mike McQuaid
2eb6f4947d
Merge pull request #19138 from Homebrew/formula_cleanup_keepme
formula: add .keepme files to prevent cleanup
2025-01-23 16:37:35 +00:00
Caleb Xu
2373b6d586
utils: add check_binary_linkage function 2025-01-23 11:26:38 -05:00
Mike McQuaid
9cc9dd8760
dev-cmd/tests: disable forcing brew wrapper in tests.
Otherwise, various integration tests will fail under some
configurations.
2025-01-23 16:06:23 +00:00
Mike McQuaid
fa8ada31b8
cleanup: improve cleanup version detection.
We're using `formula.eligible_kegs_for_cleanup` to figure out which
formula should be kept or removed based on e.g. `brew pin` status but
we didn't use this sufficiently in `brew cleanup` to avoid cleaning up
all cached files related to a pinned keg.

Instead, let's use a (cached) call to
`formula.eligible_kegs_for_cleanup` to ensure that we check all
related resources, manifests, etc. for pinned bottles rather than just
the latest version.
2025-01-23 16:04:31 +00:00
Mike McQuaid
b49625a7dc
Add brew install --skip-link
We already have `--skip-post-install` and this adds similar behaviour
for e.g. `brew bundle` (and other users) to be able to install a
formula but skip the `brew link` stage afterwards.
2025-01-23 14:42:03 +00:00
Mike McQuaid
aeaeccc3b1
formula: add .keepme files to prevent cleanup
Allow the use of `.keepme` files inside a keg to prevent the cleanup.

Rather than having a binary state of "never cleanup if `.keepme` is
present" and "can cleanup without", instead a `.keepme` file is
essentially providing reference counting.

It can contain one or more lines which reference files on disk. If the
file exists, the `.keepme` file will prevent cleanup. If/when it does
not: `brew cleanup` will happily cleanup this keg (providing all other
conditions apply).
2025-01-23 14:29:48 +00:00
Mike McQuaid
e6b8ed8940
formula_installer: improve quiet output.
Quieten a few warnings, messages and caveats if we're passing `--quiet`
to `brew install`.

This also quiets an incorrect "Fetching" message that was being shown
when installing from a local bottle.
2025-01-23 14:06:39 +00:00
Rylan Polster
c023b70e8f
Mirror real installation directory structure for tests 2025-01-23 03:11:59 -05:00
Ruoyu Zhong
7134674bf8
Merge pull request #19133 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-8d889586d8
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
2025-01-23 05:56:46 +00:00
BrewTestBot
ade142adf0
Update RBI files for sorbet.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2025-01-22 22:45:59 +00:00
BrewTestBot
f6d6103297
brew vendor-gems: commit updates. 2025-01-22 22:45:48 +00:00
Issy Long
66e50846e2
Only need a single, more readable, print_stderr 2025-01-22 22:03:28 +00:00
Issy Long
34b4cc796f
Early return if Shell#profile's preferred is nil 2025-01-22 22:01:34 +00:00
Issy Long
f3a68b616c
Early return in Tty#color? for nil @stream 2025-01-22 22:01:34 +00:00
Issy Long
599616e8e0
Apply easy to understand Sorbet typing corrections
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2025-01-22 22:01:34 +00:00
Issy Long
7a88125df0
The Style/AvoidDoubleNegation RuboCop is insistent 2025-01-22 22:01:34 +00:00
Issy Long
975a707b3c
Bump some utils/ files to Sorbet typed: strict 2025-01-22 22:01:34 +00:00
dependabot[bot]
69dc74c435
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.11766 to 0.5.11770
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

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

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

Updates `sorbet-static` from 0.5.11766 to 0.5.11770
- [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-01-22 18:24:15 +00:00
Nanda H Krishna
55475cb11a
Merge pull request #19130 from Homebrew/matched-version-resource-bump
dev-cmd/bump-formula-pr: automatically bump matched-version resources
2025-01-22 09:36:10 +00:00
dependabot[bot]
fdcc5ca051 build(deps-dev): bump spoom from 1.5.1 to 1.5.2 in /Library/Homebrew
Bumps [spoom](https://github.com/Shopify/spoom) from 1.5.1 to 1.5.2.
- [Release notes](https://github.com/Shopify/spoom/releases)
- [Commits](https://github.com/Shopify/spoom/compare/v1.5.1...v1.5.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-21 16:57:31 -05:00
Nanda H Krishna
22da03e887
Fix type errors 2025-01-22 01:45:19 +05:30
Nanda H Krishna
f69478bc1d
dev-cmd/bump-formula-pr: automatically bump matched-version resources 2025-01-22 01:39:41 +05:30
dependabot[bot]
c4ebfab523
build(deps-dev): bump rbi from 0.2.3 to 0.2.4 in /Library/Homebrew
Bumps [rbi](https://github.com/Shopify/rbi) from 0.2.3 to 0.2.4.
- [Release notes](https://github.com/Shopify/rbi/releases)
- [Commits](https://github.com/Shopify/rbi/compare/v0.2.3...v0.2.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-21 18:01:33 +00:00
Mike McQuaid
0c44ff0785
Merge pull request #19126 from Kentzo/cask-relocate-sudo
sudo: Elevate priviliges before adding metadata after relocating a ca…
2025-01-21 08:44:57 +00:00
Patrick Linnane
a323887e5b
Merge pull request #19123 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-1220ae656f
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
2025-01-20 23:20:16 +00:00
BrewTestBot
85cfe1fc7e
Update RBI files for rubocop-rspec.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2025-01-20 23:10:07 +00:00
BrewTestBot
9cac0c4801
brew vendor-gems: commit updates. 2025-01-20 23:09:59 +00:00
BrewTestBot
7feb918075
brew vendor-gems: commit updates. 2025-01-20 23:09:39 +00:00
Ilya Kulakov
730a3de1b9 sudo: Elevate priviliges before adding metadata after relocating a cask, if necessary
Homebrew cannot assume that target location is writable for chmod and xattr.
2025-01-20 14:35:36 -08:00
dependabot[bot]
7e0976dcf1
build(deps-dev): bump rubocop-rspec in /Library/Homebrew
Bumps [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) from 3.3.0 to 3.4.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.3.0...v3.4.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>
2025-01-20 18:39:34 +00:00
dependabot[bot]
eef6020871
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.11763 to 0.5.11766
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

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

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

Updates `sorbet-static` from 0.5.11763 to 0.5.11766
- [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-01-20 18:39:05 +00:00
Adrian Ho
872bb92639 Update Library/Homebrew/diagnostic.rb
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2025-01-19 23:19:03 +08:00
Adrian Ho
2d02c3950f diagnostic: elide stray filenames in subdirs
Usually, the subdirectory name is sufficient info, and the full file list is just noise.

This reduces `brew doctor` output clutter, making it easier for user to paste, and maintainers to parse.

Before:
```
$ brew doctor
[...]
Unexpected header files:
  /usr/local/include/node/cppgc/allocation.h
  /usr/local/include/node/cppgc/common.h
  /usr/local/include/node/cppgc/custom-space.h
  /usr/local/include/node/cppgc/garbage-collected.h
  /usr/local/include/node/cppgc/heap.h
  /usr/local/include/node/cppgc/internal/accessors.h
  /usr/local/include/node/cppgc/internal/api-constants.h
  /usr/local/include/node/cppgc/internal/compiler-specific.h
  /usr/local/include/node/cppgc/internal/finalizer-trait.h
  /usr/local/include/node/cppgc/internal/gc-info.h
  /usr/local/include/node/cppgc/internal/logging.h
  /usr/local/include/node/cppgc/internal/persistent-node.h
  /usr/local/include/node/cppgc/internal/pointer-policies.h
  /usr/local/include/node/cppgc/internal/prefinalizer-handler.h
[about 500 more files]
```
After:
```
$ brew doctor
Unexpected header files:
  /usr/local/include/node/...
```
The full list of stray files can still be viewed with `brew doctor -v`.
2025-01-19 23:19:03 +08:00
Mike McQuaid
0c1abc11b4
Merge pull request #19111 from Homebrew/aarch64-linux
Add support for bottling Portable Ruby for ARM64 Linux
2025-01-19 14:48:42 +00:00
Sean Molenaar
32b9afd7cd feat: add linux tests 2025-01-19 12:32:55 +01:00
Sean Molenaar
c34b71655c feat: allow font install on linux
Apply suggestions from code review

Co-authored-by: Douglas Eichelberger <697964+dduugg@users.noreply.github.com>

feat: add linux appdir

Apply suggestions from code review

Co-authored-by: Douglas Eichelberger <697964+dduugg@users.noreply.github.com>
2025-01-19 11:14:24 +01:00
Ruoyu Zhong
a818b25a8b
Add support for bottling Portable Ruby for ARM64 Linux 2025-01-19 17:06:32 +08:00
Caleb Xu
9a61ad68d9
hardware: recognize 10 cores as deca 2025-01-18 18:40:21 -05:00
Patrick Linnane
637fd5be9d
Merge pull request #19114 from Homebrew/dependabot/bundler/Library/Homebrew/concurrent-ruby-1.3.5
build(deps): bump concurrent-ruby from 1.3.4 to 1.3.5 in /Library/Homebrew
2025-01-18 05:30:20 +00:00