41103 Commits

Author SHA1 Message Date
Sam Ford
2cd95d482d
version: loosen Debian orig tarball regex
The regex to match Debian `orig` tarballs uses the standard regex for
versions like `1.2.3` but it won't match versions without a dot. The
`lcrack` formula uses a date-based version in the filename
(`lcrack_20040914.orig.tar.gz`) and `mkcue` uses a single number
(`mkcue_1.orig.tar.gz`), so we have to use a manual `version` in
these formulae.

This updates the regex to use the looser `NUMERIC_WITH_OPTIONAL_DOTS`
pattern, which will also match the aforementioned versions. I tested
this by checking versions of formulae before/after this change and
confirming that they remain the same after removing the `version`
calls from related formulae.
2024-07-24 11:39:09 -04:00
Carlo Cabrera
cfb4bf7670
Merge pull request #17841 from Homebrew/debrew-disable 2024-07-24 12:45:15 +02:00
Bo Anderson
93dbb9593d
Add env to disable Debrew 2024-07-24 06:16:18 +01:00
Bo Anderson
8e8ce4a2f7
Merge pull request #17835 from Homebrew/system_command-ebadf
system_command: fix EBADF on Ctrl+C
2024-07-23 20:32:35 +01:00
Carlo Cabrera
a0bd54c9a6
Merge pull request #17836 from Homebrew/git-advice 2024-07-23 20:45:11 +02:00
Bo Anderson
1ce88d4992
cmd/update: silence git advice where possible 2024-07-23 18:54:05 +01:00
Bo Anderson
5ab907f2fa
system_command: fix EBADF on Ctrl+C 2024-07-23 18:48:42 +01:00
William Woodruff
7b90452349
Merge pull request #17834 from Homebrew/attestation-backfill-404 2024-07-23 12:41:09 -04:00
Bo Anderson
131b930d89
attestation: only fallback to backfill on 404 2024-07-23 16:59:52 +01:00
Patrick Linnane
f56747b6c4
Merge pull request #17832 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.11492 2024-07-23 08:24:06 -07:00
Ruoyu Zhong
4285ca6b9f
Merge pull request #17830 from Homebrew/dependabot/bundler/Library/Homebrew/public_suffix-6.0.1
build(deps): bump public_suffix from 6.0.0 to 6.0.1 in /Library/Homebrew
2024-07-23 23:04:16 +08:00
BrewTestBot
688b16ee4c
brew vendor-gems: commit updates. 2024-07-23 14:54:21 +00:00
BrewTestBot
35a5ddb51d
brew vendor-gems: commit updates. 2024-07-23 14:52:58 +00:00
dependabot[bot]
da2045045c
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.11491 to 0.5.11492.
- [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-07-23 14:51:36 +00:00
dependabot[bot]
db367007a1
build(deps): bump public_suffix from 6.0.0 to 6.0.1 in /Library/Homebrew
Bumps [public_suffix](https://github.com/weppos/publicsuffix-ruby) from 6.0.0 to 6.0.1.
- [Changelog](https://github.com/weppos/publicsuffix-ruby/blob/main/CHANGELOG.md)
- [Commits](https://github.com/weppos/publicsuffix-ruby/compare/v6.0.0...v6.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-23 14:50:44 +00:00
Bo Anderson
feaa98f0bd
Merge pull request #17829 from Homebrew/apache-attic
download_strategy: fix handling of Apache projects moved to Attic
2024-07-23 15:47:32 +01:00
Bo Anderson
577f99baac
download_strategy: fix handling of Apache projects moved to Attic 2024-07-23 15:27:37 +01:00
Issy Long
96400e01e1
rubocops/text: Enforce bin/"formula" instead of "#{bin}/formula" 2024-07-23 12:43:15 +01:00
Issy Long
fdb661e2b9
cask/info: Bump to Sorbet typed: strict 2024-07-22 22:11:17 +01:00
Patrick Linnane
6b4e7bb2d0
Merge pull request #17824 from Homebrew/dependabot/github_actions/ruby/setup-ruby-1.188.0 2024-07-22 08:27:08 -07:00
dependabot[bot]
13ea729b87
build(deps): bump ruby/setup-ruby from 1.187.0 to 1.188.0
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.187.0 to 1.188.0.
- [Release notes](https://github.com/ruby/setup-ruby/releases)
- [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb)
- [Commits](161cd54b69...50ba3386b0)

---
updated-dependencies:
- dependency-name: ruby/setup-ruby
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-22 15:13:07 +00:00
Kevin
62ebd31942
Merge pull request #17822 from chenrui333/resource_auditor-require
resource_auditor: add missing require
2024-07-20 15:10:27 -07:00
Rui Chen
59633979dd
resource_auditor: add missing require
Signed-off-by: Rui Chen <rui@chenrui.dev>
2024-07-20 14:48:49 -04:00
Patrick Linnane
3914d29313
Merge pull request #17818 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.11491 2024-07-20 09:13:16 -07:00
BrewTestBot
8cb5b744b0
brew vendor-gems: commit updates. 2024-07-20 15:56:35 +00:00
dependabot[bot]
eb06c14d33
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.11487 to 0.5.11491.
- [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-07-20 15:55:01 +00:00
Kevin
d686be67c6
Merge pull request #17761 from eaze/cask-quiet-upgrade
Add better "--quiet" support to cask upgrade
2024-07-19 22:54:51 -07:00
Patrick Linnane
bb9661e5df
Merge pull request #17813 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.11487 2024-07-19 19:22:23 -07:00
BrewTestBot
850937acc9
brew vendor-gems: commit updates. 2024-07-20 02:11:09 +00:00
Eric Knibbe
61a4ac6ced
Merge pull request #17811 from Homebrew/dependabot/github_actions/github/codeql-action-3.25.13 2024-07-19 18:02:10 -04:00
dependabot[bot]
adb3fdd01e
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.11485 to 0.5.11487.
- [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-07-19 18:53:54 +00:00
dependabot[bot]
63fcd1d2d6
build(deps): bump github/codeql-action from 3.25.12 to 3.25.13
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.25.12 to 3.25.13.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](4fa2a79536...2d790406f5)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-19 18:47:33 +00:00
Eric Sampson
8bb1ba13be silence no-op upgrade warning in upgrade.rb 2024-07-19 09:26:05 -05:00
Nanda H Krishna
45f853ef61
Merge pull request #17793 from Homebrew/fix-frozen-array-modification-errors
Avoid frozen array errors in `brew upgrade`
2024-07-19 09:58:57 -04:00
Kevin
41e362f9e0
Merge pull request #17806 from samford/contributions-add-missing-requires
contributions, github: add missing requires, fix type errors
2024-07-18 22:21:45 -07:00
Kevin
e912dc83e9
Merge pull request #17809 from ah91086/ah_fix_uninitialized_constant_error_when_linking_against_non_existing_formula
Add missing_formula require to Homebrew::CLI::NamedArgs
2024-07-18 22:04:39 -07:00
Kevin
c7342c50a8
Merge pull request #17778 from kmontag/fix-missing-tap-requires
Fix missing requires for `tap-info` command
2024-07-18 21:50:23 -07:00
apainintheneck
5a37a77a7b Add tests for new sort_formulae_for_install method
These are integration tests but they should complete relatively
quickly anyway since we're not installing anything.
2024-07-18 21:38:43 -07:00
apainintheneck
52cf4e30fc Share attestation formula sorting and gh exe checking logic
This adds a new method to either move the `gh` formula to the front
of the formula list to be installed or checks that the `gh` formula
is already installed some other way.
2024-07-18 21:32:50 -07:00
Hector Aguilar
4b9b2a53b8 Add missing_formula require 2024-07-18 20:42:05 -07:00
Kevin Montag
06a50eaceb Lazy-load development_tools in fetch_json_api_file 2024-07-18 23:02:51 +02:00
Sam Ford
403b0bf3f1
contributions: resolve type errors
This updates the type signature for `#scan_repositories` to address a
runtime type error and to reflect the actual return type.

The logic in `#scan_repositories` to check for unsupported
repositories leads to a type error, as `#ofail` has a void return
type. To resolve this, I moved the repository verification code into
`#run` (after `repos` is defined but before it's used) and used
`#odie`, so the command will exit early with an error.

While I was at it, I updated the type for the `repos` parameter to
not be `nilable`, as it shouldn't be `nil` based on how we're
handling `repos` in `#run`.
2024-07-18 15:40:10 -04:00
Sam Ford
b4b984e968
contributions: move CSV require into #generate_csv
CSV generation is optional, so this moves the related `require` into
the method where `CSV` is used (following a pattern we've used for
other `require` calls throughout `brew`).
2024-07-18 15:40:07 -04:00
Sam Ford
a9f7da36e0
contributions, github: add missing requires
This resolves `unitialized constant` errors in `brew contributions`
(`Tap`, `GitHub`) and `Utils::GitHub` (`Utils::Curl`).

This also preemptively adds some requires to `Utils::GitHub` and
`GitHub::API`, to avoid similar errors.
2024-07-18 12:55:41 -04:00
Sam Ford
61f5e2b698
Merge pull request #17798 from muescha/patch-3
Update Brew-Livecheck.md: add examples for modify version information
2024-07-18 12:43:16 -04:00
Patrick Linnane
97829bb4ed
Merge pull request #17804 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.11485 2024-07-18 09:40:37 -07:00
Patrick Linnane
db3d5878ea
Merge pull request #17805 from Homebrew/ww/fix-comment 2024-07-18 09:18:52 -07:00
BrewTestBot
91fbb602c5
brew vendor-gems: commit updates. 2024-07-18 16:17:40 +00:00
dependabot[bot]
d7d2ab83e2
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.11481 to 0.5.11485.
- [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-07-18 16:15:51 +00:00
William Woodruff
493450a3ac
attestation: fix comment
Signed-off-by: William Woodruff <william@yossarian.net>
2024-07-18 12:06:37 -04:00