31923 Commits

Author SHA1 Message Date
Mike McQuaid
3a796203d8
Merge pull request #17323 from Homebrew/rubocop-3.3
rubocop: target Ruby 3.3.
2024-05-17 18:45:29 +09:00
Mike McQuaid
a408da65fc
Hide default gems warnings for Ruby 3.4.
These omit warnings with Ruby 3.3 and are required for Ruby 3.4. We'll
fix them when we're upgrading to 3.4 instead.
2024-05-17 14:42:44 +09:00
Mike McQuaid
9586473f77
brew style --fix 2024-05-17 14:25:54 +09:00
Mike McQuaid
cc11da6bdd
extend/pathname/rmtree: improve comment.
Clarify that this can't easily be `odeprecated` but keep the wording
around so that we remember to do this on the next minor release.

Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2024-05-17 14:22:42 +09:00
Mike McQuaid
ddf9426faf
rubocop: target Ruby 3.3.
Portable Ruby is at 3.3.1 now so may as well bump RuboCop too.
2024-05-17 13:21:30 +09:00
Mike McQuaid
a8bf5112eb
Merge pull request #17317 from Homebrew/list_speedup
Speed up `brew list`
2024-05-17 12:49:39 +09:00
Mike McQuaid
7073258a6a
Speed up brew list
Similarly to have we have with other commands, use Bash to speed it up.

Before:
```
$ hyperfine "brew list"
Benchmark 1: brew list
  Time (mean ± σ):     559.9 ms ± 122.8 ms    [User: 176.2 ms, System: 126.2 ms]
  Range (min … max):   503.2 ms … 907.3 ms    10 runs
```

After:
```
$ hyperfine "brew list"
Benchmark 1: brew list
  Time (mean ± σ):     223.7 ms ±  31.9 ms    [User: 35.0 ms, System: 53.4 ms]
  Range (min … max):   198.1 ms … 302.4 ms    10
```

Petty after comparison because someone on Homebrew/discussions compared
them:
```
$ hyperfine "brew list" "pip3 list"
Benchmark 1: brew list
  Time (mean ± σ):     213.1 ms ±  22.8 ms    [User: 34.2 ms, System: 49.2 ms]
  Range (min … max):   191.2 ms … 272.3 ms    13 runs

Benchmark 2: pip3 list
  Time (mean ± σ):     271.7 ms ±   4.6 ms    [User: 191.9 ms, System: 40.0 ms]
  Range (min … max):   264.7 ms … 281.4 ms    10 runs

Summary
  brew list ran
    1.28 ± 0.14 times faster than pip3 list
```

---

While we're here, also add the `HOMEBREW_CASKROOM` environment variable
to make things a bit cleaner and use `--caskroom` in documentation.

Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2024-05-17 12:38:16 +09:00
Bo Anderson
727cf5e917
extend/pathname: restore old rmtree behaviour 2024-05-17 12:32:29 +09:00
Bo Anderson
7452350919
test/cask/artifact/shared_examples/uninstall_zap: fix for Ruby 3.2+ 2024-05-17 01:31:47 +01:00
Mike McQuaid
bde9afa70e
Portable Ruby 3.3.1
Use the latest version of Portable Ruby.
2024-05-17 00:23:36 +01:00
Patrick Linnane
2ded26d50a
Merge pull request #17321 from Homebrew/dependabot/bundler/Library/Homebrew/minitest-5.23.0 2024-05-16 10:16:17 -07:00
Patrick Linnane
90b97819f0
Merge pull request #17320 from Homebrew/dependabot/bundler/Library/Homebrew/rexml-3.2.8 2024-05-16 10:14:55 -07:00
BrewTestBot
365a8baf31
Update RBI files for minitest.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-05-16 17:03:10 +00:00
BrewTestBot
279a59b8b4
brew vendor-gems: commit updates. 2024-05-16 17:02:58 +00:00
BrewTestBot
32a1d9eb55
brew vendor-gems: commit updates. 2024-05-16 17:02:43 +00:00
BrewTestBot
9f15c7834f
brew vendor-gems: commit updates. 2024-05-16 17:02:09 +00:00
dependabot[bot]
660f3bc61f
build(deps-dev): bump minitest in /Library/Homebrew
Bumps [minitest](https://github.com/minitest/minitest) from 5.22.3 to 5.23.0.
- [Changelog](https://github.com/minitest/minitest/blob/master/History.rdoc)
- [Commits](https://github.com/minitest/minitest/compare/v5.22.3...v5.23.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-16 17:01:56 +00:00
dependabot[bot]
c056311da4
build(deps-dev): bump rexml from 3.2.6 to 3.2.8 in /Library/Homebrew
Bumps [rexml](https://github.com/ruby/rexml) from 3.2.6 to 3.2.8.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.2.6...v3.2.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-16 17:01:48 +00:00
dependabot[bot]
67f6e816ae
build(deps): bump sorbet-static-and-runtime and sorbet-runtime
Bumps [sorbet-static-and-runtime](https://github.com/sorbet/sorbet) and [sorbet-runtime](https://github.com/sorbet/sorbet). These dependencies needed to be updated together.

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

Updates `sorbet-runtime` from 0.5.11376 to 0.5.11380
- [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-name: sorbet-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-16 17:01:05 +00:00
Patrick Linnane
773dbfa92a
docs: update for Homebrew/cask-fonts deprecation
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-05-16 09:21:14 -07:00
Mike McQuaid
1fac68348a
Merge pull request #17311 from bevanjkay/cask-sharding-fix
cask/audit: fix sharding for font-* casks
2024-05-16 11:58:50 +09:00
Mike McQuaid
03bf6db08c
utils/gems: handle undefined HOMEBREW_CACHE.
Some call paths can result in this not being defined so let's handle
that better.
2024-05-16 11:08:51 +09:00
Bevan Kay
1b286befed
tap: fix sharding for font-* casks 2024-05-16 11:29:59 +10:00
Bevan Kay
db4099d977
cask/audit: fix sharding for font-* casks 2024-05-16 11:29:58 +10:00
BrewTestBot
72bac0261c
Update RBI files for regexp_parser.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-05-15 18:02:25 +00:00
BrewTestBot
0a943fb7c3
brew vendor-gems: commit updates. 2024-05-15 18:02:11 +00:00
dependabot[bot]
de4bf2c70e
build(deps-dev): bump regexp_parser in /Library/Homebrew
Bumps [regexp_parser](https://github.com/ammar/regexp_parser) from 2.9.1 to 2.9.2.
- [Changelog](https://github.com/ammar/regexp_parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ammar/regexp_parser/compare/v2.9.1...v2.9.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-15 18:01:19 +00:00
Patrick Linnane
fa5d8d3811
Merge pull request #17308 from Homebrew/dependabot/bundler/Library/Homebrew/multi-ad331a4c7b 2024-05-15 10:34:33 -07:00
Patrick Linnane
fa52f27886
Merge pull request #17307 from Homebrew/dependabot/bundler/Library/Homebrew/tapioca-0.14.2 2024-05-15 10:26:08 -07:00
BrewTestBot
a2450aea75
Update RBI files for tapioca.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-05-15 17:14:56 +00:00
BrewTestBot
14be0a1f67
brew vendor-gems: commit updates. 2024-05-15 17:14:53 +00:00
BrewTestBot
48c2e57a69
brew vendor-gems: commit updates. 2024-05-15 17:14:36 +00:00
dependabot[bot]
71ecd651ba
build(deps): bump sorbet-static-and-runtime and sorbet-runtime
Bumps [sorbet-static-and-runtime](https://github.com/sorbet/sorbet) and [sorbet-runtime](https://github.com/sorbet/sorbet). These dependencies needed to be updated together.

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

Updates `sorbet-runtime` from 0.5.11375 to 0.5.11376
- [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-name: sorbet-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-15 17:13:55 +00:00
dependabot[bot]
2c5b6186fc
build(deps-dev): bump tapioca from 0.14.1 to 0.14.2 in /Library/Homebrew
Bumps [tapioca](https://github.com/Shopify/tapioca) from 0.14.1 to 0.14.2.
- [Release notes](https://github.com/Shopify/tapioca/releases)
- [Commits](https://github.com/Shopify/tapioca/compare/v0.14.1...v0.14.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-15 17:13:32 +00:00
Carlo Cabrera
cc65e5419d
linkage_checker: remove gcc from @indirect_deps on Linux
Closes #17303.
2024-05-16 00:47:21 +08:00
Carlo Cabrera
56db99ee9f
Merge pull request #17304 from Homebrew/bundler_cache
utils/gems: use HOMEBREW_CACHE for bundler cache.
2024-05-15 22:41:04 +08:00
Mike McQuaid
cb86847d95
utils/gems: use HOMEBREW_CACHE for bundler cache.
Fixes #17276
2024-05-15 22:17:02 +09:00
Patrick Linnane
1f603d381b
Merge pull request #17302 from Homebrew/ww/redact-env 2024-05-14 14:01:26 -07:00
William Woodruff
f78a8882d9
attestation: redact secret in environment
Signed-off-by: William Woodruff <william@yossarian.net>
2024-05-14 14:32:23 -04:00
BrewTestBot
3f7a651d9d
brew vendor-gems: commit updates. 2024-05-14 16:43:40 +00:00
dependabot[bot]
be494cff4a
build(deps): bump sorbet-runtime and sorbet-static-and-runtime
Bumps [sorbet-runtime](https://github.com/sorbet/sorbet) and [sorbet-static-and-runtime](https://github.com/sorbet/sorbet). These dependencies needed to be updated together.

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

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

---
updated-dependencies:
- dependency-name: sorbet-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
- 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-05-14 16:42:46 +00:00
Mike McQuaid
a37864da0f
Add HOMEBREW_ARTIFACT_DOMAIN_NO_FALLBACK
This fits the use-case I've heard multiple times where people want to
rely exclusively on their artifact provider.

Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2024-05-14 21:45:37 +09:00
Mike McQuaid
801c737e1b
Merge pull request #17292 from Homebrew/homebrew_version_cache
brew.sh: cache HOMEBREW_VERSION on disk.
2024-05-14 16:05:28 +09:00
Mike McQuaid
a18e43c67c
Merge pull request #17287 from alebcay/messages-strict-typing
messages: enable strict typing
2024-05-14 15:52:50 +09:00
Mike McQuaid
41bf51e211
brew.sh: avoid shelling out when possible. 2024-05-14 15:46:33 +09:00
Mike McQuaid
2b363b904c
brew.sh: cache HOMEBREW_VERSION on disk.
This is a (relatively, for this Bash script) expensive operation that
can be trivially cached so: let's do so.

Speedup on my machine:

```
$ hyperfine "brew --version" "HOMEBREW_VERSION_CACHE=1 brew --version"
Benchmark 1: brew --version
  Time (mean ± σ):     173.4 ms ±   5.1 ms    [User: 28.7 ms, System: 67.0 ms]
  Range (min … max):   167.3 ms … 182.9 ms    15 runs

Benchmark 2: HOMEBREW_VERSION_CACHE=1 brew --version
  Time (mean ± σ):     145.9 ms ±   4.0 ms    [User: 22.4 ms, System: 33.9 ms]
  Range (min … max):   140.0 ms … 154.5 ms    17 runs

Summary
  HOMEBREW_VERSION_CACHE=1 brew --version ran
    1.19 ± 0.05 times faster than brew --version
```

Co-authored-by: Bo Anderson <mail@boanderson.me>
2024-05-14 15:46:32 +09:00
Mike McQuaid
1c6549517d
linkage_checker: test indirect dependencies.
Check for indirect dependencies with linkage with linkage in strict
test mode.

This should be done to ensure we accurately declare dependencies in
homebrew/core.
2024-05-14 12:12:19 +09:00
Patrick Linnane
8ec44f279b
github.rb: fix grammar
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-05-13 14:57:08 -07:00
Patrick Linnane
992b50a413
various: fix minor typos
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-05-13 14:30:06 -07:00
Caleb Xu
00ba3930d6
messages: enable strict typing 2024-05-13 08:48:41 -04:00