39924 Commits

Author SHA1 Message Date
BrewTestBot
021e75f793
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.
2024-05-07 11:30:41 +00:00
Mike McQuaid
310c75fab1
Merge pull request #17233 from Homebrew/deprecate_disable_remove
Homebrew 4.3.0 deprecation/disable/removals.
2024-05-07 12:30:03 +01:00
Mike McQuaid
222fe8ef0b
Homebrew 4.3.0 deprecation/disable/removals.
The usual pass of deprecating/disabling/removing code for the next
minor Homebrew release.
2024-05-07 12:18:04 +01:00
Mike McQuaid
6aeb9cd5d3
Merge pull request #17245 from Homebrew/forbid_install_tap
tap: allow/forbid installation of taps from environment variables.
2024-05-07 11:14:16 +01:00
Mike McQuaid
ab845ef22e
tap: allow/forbid installation of taps from environment variables.
Extend the allow/forbid of taps during formula installation to allow or
forbid the installation of taps themselves based on the values of the
`HOMEBREW_ALLOWED_TAPS` and `HOMEBREW_FORBIDDEN_TAPS` environment
variables.

Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2024-05-07 10:52:19 +01:00
Mike McQuaid
d20cb9794d
Merge pull request #17244 from Homebrew/verbose_flag_fixes
brew.sh: shift `-v` to the end of the parameter list earlier.
2024-05-07 10:03:02 +01:00
Mike McQuaid
621dce827e
Merge pull request #17243 from Homebrew/sponsors-maintainers-man-completions
Update manpage and completions.
2024-05-07 09:53:46 +01:00
Mike McQuaid
d77dbe8b89
Merge pull request #17241 from Homebrew/cask-audit-sourceforge
cask/audit: tune sourceforge.net URL regex
2024-05-07 09:06:50 +01:00
Mike McQuaid
7a61b03e72
brew.sh: shift -v to the end of the parameter list earlier.
Fixes #17240
2024-05-07 08:57:57 +01:00
BrewTestBot
3c2865015d
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.
2024-05-07 07:48:54 +00:00
Mike McQuaid
fc13eb83c8
Merge pull request #17213 from Homebrew/allowed-taps
env_config: add `HOMEBREW_ALLOWED_TAPS`
2024-05-07 08:47:57 +01:00
apainintheneck
ffc503f1d0 Fix cask source file path loading issues
There are two big changes here. Both have to do with how we want
to load casks in different scenarios. One also is related to formulae.

1. Prevent loading casks & formulae outside of taps for specific commands.

There are certain commands like `bump`, `bump-*-pr`, `livecheck` and `audit`
where it really makes no sense to try and run things if the specified formulae
or cask is not in a tap. A new `#to_formulae_and_casks_with_taps` method was
added to the `CLI::NamedArgs` class to allow us to easily grab and validate
formulae and casks from named arguments.

2. Always load the source file path when loading casks with the path loader.

There was an edge case where all JSON cask files were being loaded without
setting the source file path because most of the work was handed off to the
API loader where that normally would make more sense. Now we set that when
calling the API loader which solves the problem. This improves the user
experience of people using the `--cache` and `fetch` commands in certain
edge cases. Hopefully it makes the user experience a bit more consistent.

A regression test was added for this point.
2024-05-06 23:34:23 -07:00
Eric Knibbe
4932fb7fd0
rubocops/urls: remove dead link 2024-05-06 22:57:23 -04:00
Eric Knibbe
d1d0bfc0ba
cask/audit: tune sourceforge.net URL regex 2024-05-06 22:56:28 -04:00
Patrick Linnane
55167f2965
Merge pull request #17238 from Homebrew/dependabot/bundler/Library/Homebrew/prism-0.28.0 2024-05-06 10:02:25 -07:00
Patrick Linnane
d7c23d321a
Merge pull request #17237 from Homebrew/dependabot/bundler/Library/Homebrew/rbi-0.1.13 2024-05-06 09:59:38 -07:00
BrewTestBot
2ff35c0e75
Update RBI files for prism.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-05-06 16:48:40 +00:00
BrewTestBot
f6ee965c4f
Update RBI files for rbi.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-05-06 16:48:38 +00:00
BrewTestBot
57e7cf4bd6
brew vendor-gems: commit updates. 2024-05-06 16:48:02 +00:00
BrewTestBot
3a389c31d1
brew vendor-gems: commit updates. 2024-05-06 16:48:00 +00:00
dependabot[bot]
cff2252fad
build(deps-dev): bump prism from 0.27.0 to 0.28.0 in /Library/Homebrew
Bumps [prism](https://github.com/ruby/prism) from 0.27.0 to 0.28.0.
- [Release notes](https://github.com/ruby/prism/releases)
- [Changelog](https://github.com/ruby/prism/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ruby/prism/compare/v0.27.0...v0.28.0)

---
updated-dependencies:
- dependency-name: prism
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 16:47:10 +00:00
dependabot[bot]
5987bc95dc
build(deps-dev): bump rbi from 0.1.12 to 0.1.13 in /Library/Homebrew
Bumps [rbi](https://github.com/Shopify/rbi) from 0.1.12 to 0.1.13.
- [Release notes](https://github.com/Shopify/rbi/releases)
- [Commits](https://github.com/Shopify/rbi/compare/v0.1.12...v0.1.13)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 16:46:58 +00:00
Carlo Cabrera
be29afa5f7
Fix brew style 2024-05-06 15:26:29 +01:00
Carlo Cabrera
3b794fc6e8
formula_installer, cask/installer: add tests for HOMEBREW_ALLOWED_TAPS 2024-05-06 15:22:48 +01:00
Carlo Cabrera
078a328e8e
tap: avoid class vars
Avoiding them also allows us to write proper tests.
2024-05-06 15:05:06 +01:00
Mike McQuaid
82c2e743a5
Merge pull request #17228 from Homebrew/replace-formula-text-audits-with-rubocops
Replace `FormulaTextAuditor` usage
4.2.21
2024-05-06 08:46:28 +01:00
Mike McQuaid
80b35e8a55
Merge pull request #17223 from reitermarkus/resource-sig
Add `resource` signature.
2024-05-06 08:40:59 +01:00
Mike McQuaid
3d31594e39
Merge pull request #17220 from woodruffw-forks/ww/refine-gh-auth
attestations: improve authentication techniques
2024-05-06 08:38:07 +01:00
Carlo Cabrera
34387bfc8a
cask/installer: update to match formula_installer 2024-05-05 14:00:02 +01:00
Carlo Cabrera
3555d09c1d
formula_installer: fix failing test 2024-05-05 13:59:36 +01:00
Issy Long
9f915a6a62
Replace FormulaTextAuditor usage
- Only two audits were using this: `audit_keg_only_reason` and `audit_text`,
  and they weren't using any of its text processing methods, so there's little
  reason to keep it around.
- The "`keg_only_reason` shouldn't contain 'HOMEBREW_PREFIX'" audit can easily
  be replaced with a RuboCop since that's "just" text parsing.
- The "tests should invoke binaries with `bin/<command>`" audit had to stay as
  a FormulaAudit because it requires accessing attributes about the Formula
  like its name, aliases, which RuboCop can't get to, but it was easy to move the
  singular "read the text in the file" line from `FormulaTextAuditor`.
2024-05-04 22:14:55 +01:00
Kevin
7e0c137955
Merge pull request #17227 from Homebrew/tweak-core-tap-warning
tap: tweak core tap warning
2024-05-04 10:37:18 -07:00
apainintheneck
373b7d1dbb tap: tweak core tap warning
Most users don't need the core taps to be installed locally but the
current message doesn't communicate that they're sometimes necessary
for local development. This just tweaks the message to be more
informative.

```console
$ brew tap homebrew/cask
Error: Tapping homebrew/cask is no longer typically necessary.
Add --force if you are sure you need it for local development.
```
2024-05-04 09:59:47 -07:00
Eric Knibbe
3cea82ce1e
Merge pull request #17225 from Homebrew/generate-cask-renames
cmd/generate-cask-api: include cask renames
2024-05-03 22:24:24 -04:00
Eric Knibbe
3d985d082e
cmd/generate-cask-api: include cask renames 2024-05-03 19:16:32 -04:00
Markus Reiter
e39a421bb0
Add resource signature. 2024-05-03 22:29:50 +02:00
Carlo Cabrera
f92b2f21c0
github_runner_matrix: add -x86_64 to Intel runner names
See Homebrew/ci-orchestrator#15.

Needs Homebrew/ci-orchestrator#15.
2024-05-03 20:22:07 +01:00
William Woodruff
7e43e5aafe
attestation_spec: another auth case
Signed-off-by: William Woodruff <william@yossarian.net>
2024-05-03 13:17:31 -04:00
William Woodruff
2aa3d77f72
attestation_spec: fixup
Signed-off-by: William Woodruff <william@yossarian.net>
2024-05-03 13:01:02 -04:00
William Woodruff
18a8b12f7a
attestations: improve authentication techniques
Signed-off-by: William Woodruff <william@yossarian.net>
2024-05-03 12:37:01 -04:00
Carlo Cabrera
1084485c3a
github_runner_matrix: support orchestrator long build queues
This is needed after Homebrew/ci-orchestrator#13.
2024-05-03 16:29:22 +01:00
Carlo Cabrera
5222c9e32d
Improve error message for allowed and forbidden taps 2024-05-03 16:15:37 +01:00
Carlo Cabrera
7c9e8927e9
tap: memoize allowed and forbidden taps 2024-05-03 16:08:22 +01:00
Mike McQuaid
dfbf26910d
Merge pull request #17218 from samford/livecheck/pypi-update-strategy-regex
Pypi: Update strategy regex
2024-05-03 15:41:22 +01:00
Patrick Linnane
afe9ec9d6a
Merge pull request #17216 from Homebrew/dependabot/bundler/Library/Homebrew/multi-5c08dc554c 2024-05-03 07:23:29 -07:00
Patrick Linnane
8abb3e62dc
Merge pull request #17217 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-rspec-2.29.2 2024-05-03 07:22:26 -07:00
Sam Ford
78c7ad747a
Pypi: Update strategy regex
livecheck is returning an `Unable to get versions` error for the
`ansible-lint`, `aws-sam-cli`, and `pyqt-builder` formulae. These use
the `Pypi` strategy without a `livecheck` block, so they use the
generated regex from the strategy. The `Pypi` strategy matches the
version from the tarball link on the pypi.org package page but this
fails for these packages because the formula's `stable` tarball uses
hyphens in the filename (e.g., `ansible-lint-...`) but the current
tarball filename uses underscores (e.g., `ansible_lint-...`).

This addresses the issue by updating the strategy regex to replace
[escaped] `-` or `_` characters in the package name with `[_-]`, so
the regex will match regardless of the delimiter used in the formula
filename.
2024-05-03 10:21:03 -04:00
Patrick Linnane
b65b881219
Merge pull request #17215 from Homebrew/dependabot/github_actions/ruby/setup-ruby-1.176.0 2024-05-03 07:18:07 -07:00
BrewTestBot
5229499cca
Update RBI files for rubocop-rspec.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-05-03 14:10:32 +00:00
BrewTestBot
a32b817321
brew vendor-gems: commit updates. 2024-05-03 14:10:20 +00:00