39728 Commits

Author SHA1 Message Date
Markus Reiter
480e264d9a
Lint Ruby docs. 2024-05-01 11:35:21 +02:00
Markus Reiter
9b6fb3d4df
Add redcarpet gem. 2024-05-01 11:35:21 +02:00
Markus Reiter
caf87c0336
Warn about undocumented non-private APIs. 2024-05-01 11:35:20 +02:00
Mike McQuaid
7c0b989740
Merge pull request #17153 from apainintheneck/new-formula-json-dependencies-format
New formula internal json v3 dependencies format
2024-05-01 08:45:18 +01:00
Mike McQuaid
8ec845e452
Merge pull request #17195 from Homebrew/sponsors-maintainers-man-completions
Update manpage and completions.
2024-05-01 08:42:11 +01:00
apainintheneck
6ad02b8e34 formula: internal json v3 dependencies: address feedback
- rename #dependencies_list to #internal_dependencies_hash
  - the initial implementation returned an array but now it doesn't
- simplify usage of #tap in #internal_dependencies_hash
- remove safe navigation operator usages in #internal_dependencies_hash
- better document why implicit dependencies are not included in the API JSON
- add new test fixture formula to better test generation of uses from
  macos bounds with the new internal json format
2024-04-30 23:44:25 -07:00
BrewTestBot
372c8b38b0
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-01 00:07:15 +00:00
Ruoyu Zhong
6c3acf6266
Merge pull request #17194 from Homebrew/dependabot/bundler/Library/Homebrew/spoom-1.3.1
build(deps-dev): bump spoom from 1.3.0 to 1.3.1 in /Library/Homebrew
2024-05-01 02:22:12 +08:00
BrewTestBot
41a2dcb451
Update RBI files for spoom.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-04-30 18:09:50 +00:00
BrewTestBot
028415967c
brew vendor-gems: commit updates. 2024-04-30 18:09:33 +00:00
dependabot[bot]
bd39e5c9d5
build(deps-dev): bump spoom from 1.3.0 to 1.3.1 in /Library/Homebrew
Bumps [spoom](https://github.com/Shopify/spoom) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/Shopify/spoom/releases)
- [Commits](https://github.com/Shopify/spoom/compare/v1.3.0...v1.3.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 18:08:27 +00:00
Carlo Cabrera
2862bc2ac6
Merge pull request #17192 from Homebrew/fix_brew_sh_args
brew.sh: fix argument handling for a few commands.
2024-04-30 17:08:41 +01:00
Mike McQuaid
de8266b4bc
brew.sh: fix argument handling for a few commands.
These need moved to the later `case` because they optionally take
arguments.
2024-04-30 16:58:11 +01:00
Mike McQuaid
fe4392dad5
Merge pull request #17190 from trail-of-forks/remove-cert-identity
Remove the signing workflow for backfill attestation checks
2024-04-30 16:13:41 +01:00
Joseph Sweeney
3ccc6b2521 fixup comment 2024-04-30 10:52:36 -04:00
Joseph Sweeney
9fff688bbe Make comment more explicit 2024-04-30 10:51:11 -04:00
Mike McQuaid
d8693edc1b
Merge pull request #17189 from Homebrew/sponsors-maintainers-man-completions
Update manpage and completions.
2024-04-30 15:46:34 +01:00
BrewTestBot
3c0240b6c0
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-04-30 14:33:46 +00:00
Mike McQuaid
bfb8bb7bb1
Merge pull request #17188 from Homebrew/more_command_optimisation
Optimise more command handling/speed
2024-04-30 15:32:46 +01:00
Joseph Sweeney
883c1e9907 Update attestation tests 2024-04-30 10:16:57 -04:00
Joseph Sweeney
0f5d19220c Add comment explaining lack of signing workflow 2024-04-30 10:10:43 -04:00
Joseph Sweeney
65a90582b4 Remove a flag for backfill attestation checks
Some backfilled bottle signatures were signed from a branch, and others
from main, so the signing workflow is slightly different which causes
some bottles to incorrectly fail when checking their attestation (apr
for example). The simplest way to solve this is just removing the
backfill repo `cert-identity` check and just rely on the repository and
attestation date falling before our cutoff. This shouldn't meaningfully
affect security because if somehow someone could generate false backfill
attestations from a different workflow (the only case this protects
against), we will still catch it because the attestation would have been
generated after our cutoff date.
2024-04-30 09:52:04 -04:00
Mike McQuaid
97ad3567d1
Optimise more command handling/speed
- in `brew.sh` split the `case` into those cases that take a single or
  no arguments and those that take multiple arguments or handle
  multiple commands. This considerably speeds up the
  `brew shellenv bash` case that wasn't being handled here before.
- add `setup-ruby` to the list of commands that can be called quickly
  by `brew.sh` without additional setup. This speeds up the
  `brew setup-ruby` no-op case by ~10x.
- add a parameter to `setup-ruby` to avoid running Bundler if the
  command doesn't need it. This makes many more cases for
  `brew setup-ruby` to be no-op cases.
- Remove the (now) unused `HOMEBREW_RUBY3` check in `setup-ruby`.
- Improve argument handling in `command_path.sh` to allow it to be
  used as a function in `setup-ruby.sh`.
- Add a new RuboCop to check usage of `install_bundler_gems!` is only
  inside `dev-cmd` (or a few other acceptable places).
- Use new `processed_source.file_path` API in `formula_cop.rb`
2024-04-30 12:48:29 +01:00
Mike McQuaid
60657d382b
Merge pull request #17185 from Homebrew/install_bundler_gems_consistently
Call `Homebrew.install_bundler_gems!` more consistently.
2024-04-30 12:17:24 +01:00
Mike McQuaid
45e0ce0635
Merge pull request #17186 from Homebrew/command_command_optimisation
Various improvements for `brew command`
2024-04-30 11:48:50 +01:00
Mike McQuaid
4ffcd8a110
Various improvements for brew command
- Add a (large) speedup by moving some logic to Bash for the typical
  case of a normal or dev-cmd, Bash or Ruby command.
- Make `brew command` a non-developer command, I don't think it makes
  sense to consider it something needed for developing Homebrew.
- Update the manpage/tests/RBI accordingly.

Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2024-04-30 11:38:19 +01:00
Mike McQuaid
c9c8806be8
Merge pull request #17184 from reitermarkus/unneeded-extend
Remove disabled `extend`.
2024-04-30 10:48:58 +01:00
Mike McQuaid
aa6ea4be83
Call Homebrew.install_bundler_gems! more consistently.
- Call `Homebrew.install_bundler_gems!` as early as possible
- Always call `Homebrew.install_bundler_gems!` in `dev-cmd` rather than
  in `Library/Homebrew` helpers method (to ensure we don't accidentally
  call this for non-dev-cmd commands)
2024-04-30 10:39:35 +01:00
Mike McQuaid
d474060eab
Merge pull request #17178 from Homebrew/gems_change_privilege
install-bundler-gems: `change_privilege` when necessary.
2024-04-30 10:08:03 +01:00
Markus Reiter
f7361c8d29
Remove disabled extend. 2024-04-30 11:01:12 +02:00
Mike McQuaid
65f3df92d2
install-bundler-gems: change_privilege when necessary.
This ensures that gems are able to be installed when using e.g.
`ruby -I` in their installation scripts.
2024-04-30 09:21:12 +01:00
Mike McQuaid
11348b348e
Merge pull request #17176 from mohawk2/patch-1
Cookbook document what `Operation not permitted` means
2024-04-30 09:05:27 +01:00
Carlo Cabrera
25d8c07a31
Merge pull request #17179 from Homebrew/auto_update_tap 2024-04-30 09:02:53 +01:00
Carlo Cabrera
7690eb3e61
Merge pull request #17182 from boblail/lail/warn+continue-when-unable-to-find-related-issues 2024-04-30 07:15:26 +01:00
Bob
461f49dcb6 fix: Display a warning but continue execution when dumping an exception and unable to find related issues
Occasionally, when failing to `brew install` or `brew upgrade` a formula, users will get an error message and the last line of it will be:
```
Error: Validation Failed: [{"message"=>"The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.", "resource"=>"Search", "field"=>"q", "code"=>"invalid"}]
```

Here's an old public example: https://gitlab.com/tabos/rogerrouter/-/issues/21

At Square, this error can be caused by a transient issue with a user's GitHub credentials.

My proposal is that any error which prevents `brew` from showing related issues should:
1. Not cause `brew` to exit early (vs. printing diagnostic checks and doing any other cleanup)
2. Be clearly differentiated from the original failure (so it doesn't become a red herring for users troubleshooting their broken formula)
2024-04-29 11:47:01 -07:00
Mike McQuaid
ef1e365e43
Merge pull request #17180 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-sorbet-0.8.3
build(deps-dev): bump rubocop-sorbet from 0.8.2 to 0.8.3 in /Library/Homebrew
2024-04-29 19:21:43 +01:00
Mike McQuaid
40fc47512f
Merge pull request #17181 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-ast-1.31.3
build(deps-dev): bump rubocop-ast from 1.31.2 to 1.31.3 in /Library/Homebrew
2024-04-29 19:21:30 +01:00
BrewTestBot
6616363fe4
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-04-29 18:11:05 +00:00
BrewTestBot
dbce7a8064
brew vendor-gems: commit updates. 2024-04-29 18:10:46 +00:00
BrewTestBot
16a7e56074
brew vendor-gems: commit updates. 2024-04-29 18:10:21 +00:00
dependabot[bot]
3fe63ed300
build(deps-dev): bump rubocop-ast in /Library/Homebrew
Bumps [rubocop-ast](https://github.com/rubocop/rubocop-ast) from 1.31.2 to 1.31.3.
- [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.31.2...v1.31.3)

---
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-04-29 18:09:45 +00:00
dependabot[bot]
55e5253ea3
build(deps-dev): bump rubocop-sorbet in /Library/Homebrew
Bumps [rubocop-sorbet](https://github.com/shopify/rubocop-sorbet) from 0.8.2 to 0.8.3.
- [Release notes](https://github.com/shopify/rubocop-sorbet/releases)
- [Commits](https://github.com/shopify/rubocop-sorbet/compare/v0.8.2...v0.8.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 18:09:18 +00:00
Mike McQuaid
abd1b48e91
Merge pull request #17177 from Homebrew/bootsnap_raise_load_error
startup/bootsnap: raise repeated `LoadError`.
2024-04-29 17:52:47 +01:00
Mike McQuaid
ef49b5a537
brew.sh: auto-update 3rd-party taps more often.
When doing an `install`, `outdated` or `upgrade` and referring to a
formula or cask in a specific tap: you probably want to get the latest
version of that formula/cask more often than the default 1 or 24 hours.

Let's check for arguments for these commands that look appropriate and
auto-update every 5 minutes in that case.
2024-04-29 17:42:51 +01:00
Mike McQuaid
279f42a39c
startup/bootsnap: improve syntax.
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2024-04-29 17:42:34 +01:00
Mike McQuaid
c55a5e30dd
startup/bootsnap: raise repeated LoadError.
If `HOMEBREW_BOOTSNAP_RETRY` was set then we should raise the
`LoadError` the second time so that the failures are user visible for
debugging.
2024-04-29 17:30:27 +01:00
mohawk2
cba3943ade
Cookbook document what Operation not permitted means 2024-04-29 14:30:15 +01:00
Carlo Cabrera
c076a46c19
Merge pull request #17169 from Homebrew/no-oso_prefix-configure 2024-04-29 10:57:37 +01:00
Mike McQuaid
db22da9b50
Merge pull request #17168 from reitermarkus/tab-for-keg
Document `Tab.for_keg` and use `Keg#tab` where possible.
2024-04-29 08:35:17 +01:00
Patrick Linnane
c2ed3327c6
Merge pull request #17172 from Homebrew/dependabot/bundler/Library/Homebrew/parser-3.3.1.0 4.2.20 2024-04-28 20:05:42 -07:00