33185 Commits

Author SHA1 Message Date
Douglas Eichelberger
4bbad3c995 Add documentation for OptionsType 2024-08-19 09:47:16 -07:00
Mike McQuaid
4bf0a7f20f
brew.sh: bump minimum version.
We know we're definitely on at least 4.3.0 now, so let's update this.
2024-08-19 16:02:57 +01:00
Mike McQuaid
378f7f8f72
brew.sh: further improve git describe cache.
- Use a safe fallback in case git rev-parse fails, e.g. if this is not
  considered a safe git directory. For hopefully obvious reasons: be
  super careful and strict with the inputs we'll accept here.
- Better handle more permission errors when reading or writing to/from
  the git describe cache. We don't care about these errors because they
  are likely a result of a multiuser configuration where Homebrew is run
  as several different users and this is just a (small) performance
  improvement.
2024-08-19 16:02:57 +01:00
Mike McQuaid
a2a92fa46d
Merge pull request #18027 from Homebrew/make-brew-typecheck-work-with-taps 2024-08-19 12:56:12 +01:00
Mike McQuaid
c6ddb9cedb
brew.sh: hide ignorable permission errors.
`GIT_DESCRIBE_CACHE` is a performance optimisation that doesn't clean
up consistently when run with different Homebrew users. Instead of
doing user detection: let's just hide these errors that we don't care
about.

Reported in:
https://github.com/orgs/Homebrew/discussions/5479
2024-08-19 09:17:21 +01:00
Carlo Cabrera
3e725e747d
Merge pull request #18080 from Homebrew/installer-safety 2024-08-19 15:22:15 +08:00
Douglas Eichelberger
3943ff1406 Strict type Homebrew::CLI::Args 2024-08-18 20:30:58 -07:00
Patrick Linnane
a3600d07a2
Apply suggestions from code review
Co-authored-by: Bo Anderson <mail@boanderson.me>
2024-08-18 21:20:23 -06:00
Patrick Linnane
d992a4f923
hardware.rb: use typed: strict
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-08-18 20:28:02 -06:00
Douglas Eichelberger
fb2fdc5249 Minor type safety improvements 2024-08-18 18:16:39 -07:00
Douglas Eichelberger
f4e04c8951 Make Cask::Artifact::Installer typesafe 2024-08-18 16:10:35 -07:00
Patrick Linnane
444d4caef5
cleaner: use typed: strict
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-08-18 19:03:26 -04:00
BrewTestBot
95824e04c4
Update RBI files for vernier.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-08-18 15:35:09 +00:00
BrewTestBot
b369c4fd88
brew vendor-gems: commit updates. 2024-08-18 15:34:55 +00:00
dependabot[bot]
dd24023ed1
build(deps-dev): bump vernier from 1.1.1 to 1.1.2 in /Library/Homebrew
Bumps [vernier](https://github.com/jhawthorn/vernier) from 1.1.1 to 1.1.2.
- [Commits](https://github.com/jhawthorn/vernier/compare/v1.1.1...v1.1.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-18 15:33:12 +00:00
BrewTestBot
b2d1f78281
Update RBI files for minitest.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-08-18 03:24:51 +00:00
BrewTestBot
6cec69c0e0
brew vendor-gems: commit updates. 2024-08-18 03:24:36 +00:00
dependabot[bot]
5a2989e660
build(deps-dev): bump minitest in /Library/Homebrew
Bumps [minitest](https://github.com/minitest/minitest) from 5.25.0 to 5.25.1.
- [Changelog](https://github.com/minitest/minitest/blob/master/History.rdoc)
- [Commits](https://github.com/minitest/minitest/compare/v5.25.0...v5.25.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-18 03:23:14 +00:00
Carlo Cabrera
a61ac99b03
Merge pull request #18074 from cho-m/xdg-string 2024-08-18 10:27:36 +08:00
Patrick Linnane
04ec340c13
Merge pull request #18073 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.11528 2024-08-17 21:59:51 -04:00
Michael Cho
1dbedddc58
diagnostic: check for strings in XDG_DATA_DIRS 2024-08-17 21:59:49 -04:00
BrewTestBot
1b8739622d
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-08-18 01:31:37 +00:00
BrewTestBot
e98ec7f170
brew vendor-gems: commit updates. 2024-08-18 01:31:31 +00:00
BrewTestBot
65583a7764
brew vendor-gems: commit updates. 2024-08-18 01:31:21 +00:00
dependabot[bot]
26f6e2cdbe
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.11525 to 0.5.11528.
- [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-08-18 01:27:49 +00:00
dependabot[bot]
7577fae6af
build(deps-dev): bump rubocop-ast in /Library/Homebrew
Bumps [rubocop-ast](https://github.com/rubocop/rubocop-ast) from 1.32.0 to 1.32.1.
- [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.0...v1.32.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-18 01:27:23 +00:00
Issy Long
4e37436c3a
dev-cmd/typecheck: Disallow --fix when in taps too
- This could autocorrect files in Homebrew/brew when
  we should be targetting the tap, because of the
  weird hierarchy thing
  (https://github.com/Homebrew/brew/pull/18027#issuecomment-2294896044).

Co-authored-by: Bo Anderson <mail@boanderson.me>
2024-08-17 22:04:20 +01:00
Issy Long
feedc5c84e
dev-cmd/typecheck: Use Sorbet's --dir to set the tap path
- This means we don't have to copy config files around,
  and users get instant results rather than having
  to run `srb init`.
2024-08-17 17:18:59 +01:00
Carlo Cabrera
92ddc02005
Merge pull request #18067 from Homebrew/dependabot/bundler/Library/Homebrew/parallel-1.26.3 2024-08-17 02:25:17 +08:00
BrewTestBot
0b01f28445
brew vendor-gems: commit updates. 2024-08-16 18:14:03 +00:00
BrewTestBot
987aa05ab6
brew vendor-gems: commit updates. 2024-08-16 18:13:32 +00:00
dependabot[bot]
f552548652
build(deps-dev): bump parallel in /Library/Homebrew
Bumps [parallel](https://github.com/grosser/parallel) from 1.26.2 to 1.26.3.
- [Commits](https://github.com/grosser/parallel/compare/v1.26.2...v1.26.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-16 18:04:27 +00:00
dependabot[bot]
b5784afc6e
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.11520 to 0.5.11525.
- [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-08-16 18:04:06 +00:00
Mike McQuaid
f719090446
Add a bunch more UNDEFINED_CONSTANTS for startup.
This should avoid these getting included globally in future.

I found this list from a combination of
https://github.com/Homebrew/brew/pull/17707/files, looking at the
Gemfile and just looking around myself.
2024-08-16 12:33:26 +01:00
BrewTestBot
cb92a77779
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2024-08-16 00:22:20 +00:00
Carlo Cabrera
fc8b80accf
Merge pull request #18059 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.11520 2024-08-16 04:03:46 +08:00
BrewTestBot
c51941c56f
brew vendor-gems: commit updates. 2024-08-15 19:52:18 +00:00
Carlo Cabrera
0294ca3c34
Merge pull request #18062 from Homebrew/dependabot/bundler/Library/Homebrew/tapioca-0.16.1 2024-08-16 03:50:47 +08:00
BrewTestBot
c29ad43ace
Update RBI files for tapioca.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-08-15 19:38:24 +00:00
BrewTestBot
86efe95e35
brew vendor-gems: commit updates. 2024-08-15 19:38:02 +00:00
Rylan Polster
f3a6aef809
Merge pull request #18057 from Homebrew/rdbg-followup 2024-08-15 14:59:28 -04:00
dependabot[bot]
b2497e9091
build(deps-dev): bump tapioca from 0.16.0 to 0.16.1 in /Library/Homebrew
Bumps [tapioca](https://github.com/Shopify/tapioca) from 0.16.0 to 0.16.1.
- [Release notes](https://github.com/Shopify/tapioca/releases)
- [Commits](https://github.com/Shopify/tapioca/compare/v0.16.0...v0.16.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-15 18:51:34 +00:00
dependabot[bot]
2a76f581d6
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.11519 to 0.5.11520.
- [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-08-15 18:50:41 +00:00
Ruoyu Zhong
fbbdc1e1fa
Merge pull request #18052 from Homebrew/dependabot/bundler/Library/Homebrew/minitest-5.25.0
build(deps-dev): bump minitest from 5.24.1 to 5.25.0 in /Library/Homebrew
2024-08-16 01:09:50 +08:00
BrewTestBot
bf48d8b7a6
Update RBI files for ruby-lsp.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-08-15 16:56:53 +00:00
BrewTestBot
2b3c5d9800
Update RBI files for minitest.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-08-15 16:56:48 +00:00
BrewTestBot
45502656ff
brew vendor-gems: commit updates. 2024-08-15 16:56:37 +00:00
BrewTestBot
733166b96c
brew vendor-gems: commit updates. 2024-08-15 16:56:30 +00:00
dependabot[bot]
f019d2f947
build(deps-dev): bump ruby-lsp in /Library/Homebrew
Bumps [ruby-lsp](https://github.com/Shopify/ruby-lsp) from 0.17.12 to 0.17.13.
- [Release notes](https://github.com/Shopify/ruby-lsp/releases)
- [Commits](https://github.com/Shopify/ruby-lsp/compare/v0.17.12...v0.17.13)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-15 16:55:22 +00:00
dependabot[bot]
13fa087689
build(deps-dev): bump minitest in /Library/Homebrew
Bumps [minitest](https://github.com/minitest/minitest) from 5.24.1 to 5.25.0.
- [Changelog](https://github.com/minitest/minitest/blob/master/History.rdoc)
- [Commits](https://github.com/minitest/minitest/compare/v5.24.1...v5.25.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-08-15 16:55:22 +00:00