44010 Commits

Author SHA1 Message Date
dependabot[bot]
2ced12a3c1
build(deps): bump github/codeql-action from 3.28.1 to 3.28.5
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.1 to 3.28.5.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](b6a472f63d...f6091c0113)

---
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>
2025-01-27 18:14:41 +00:00
dependabot[bot]
0c31bf7286
build(deps): bump docker/build-push-action from 6.11.0 to 6.13.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.11.0 to 6.13.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](b32b51a8ed...ca877d9245)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-27 18:14:34 +00:00
dependabot[bot]
bc4eacd6eb
build(deps): bump ruby/setup-ruby from 1.213.0 to 1.214.0
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.213.0 to 1.214.0.
- [Release notes](https://github.com/ruby/setup-ruby/releases)
- [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb)
- [Commits](28c4deda89...1287d2b408)

---
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>
2025-01-27 18:14:31 +00:00
dependabot[bot]
35cdf2b027
build(deps): bump codecov/codecov-action from 5.1.2 to 5.3.1
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5.1.2 to 5.3.1.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](1e68e06f1d...13ce06bfc6)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-27 18:14:27 +00:00
dependabot[bot]
3c1ee7b62f
build(deps): bump actions/attest-build-provenance from 2.1.0 to 2.2.0
Bumps [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/actions/attest-build-provenance/releases)
- [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md)
- [Commits](7668571508...520d128f16)

---
updated-dependencies:
- dependency-name: actions/attest-build-provenance
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-27 18:14:16 +00:00
Mike McQuaid
23facb219d
Merge pull request #19155 from Homebrew/revert-19153-env_var_consistency
Use `~` instead of `${HOME}`
4.4.19
2025-01-27 15:36:06 +00:00
Mike McQuaid
7ff99e2353
Use ~ instead of ${HOME}
Partial revert of Homebrew/brew#19153
See https://github.com/Homebrew/brew/pull/19153#discussion_r1930678587
2025-01-27 15:19:59 +00:00
Mike McQuaid
e21cbd627e
Merge pull request #19153 from Homebrew/env_var_consistency
Use environment variables consistently
4.4.18
2025-01-27 14:32:23 +00:00
Mike McQuaid
bbf5a9f479
env_config: use environment variables consistently
- use e.g. `$HOMEBREW_*` for cases where only the environment variable
  is the entire backtick-quoted string
- use e.g. `${HOMEBREW_*}` for cases where the environment variable is
  part of a backtick-quoted string to make clear what parts are variable
  and what parts are not
- use `export HOMEBREW_*=...` for cases where we're talking about
  setting the environment variable (because it likely needs to be
  exported to work how they want)

Inspired by https://github.com/Homebrew/homebrew-bundle/pull/1579 making
similar changes for Homebrew/homebrew-bundle.
2025-01-27 14:21:27 +00:00
Mike McQuaid
9fd2b27a35
Merge pull request #19151 from Homebrew/fix_case_commands
Fix handling of case-mistyped commands
2025-01-27 09:13:53 +00:00
Carlo Cabrera
3060224b93
Merge pull request #19152 from Homebrew/sponsors-maintainers-man-completions
Update manpage and completions.
2025-01-27 09:10:19 +00:00
BrewTestBot
b7ec021ffe
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.
2025-01-27 08:59:49 +00:00
Mike McQuaid
7bf1b82112
Merge pull request #19148 from Homebrew/rubocops-more-typed-strict
Bump more Cask RuboCops to Sorbet `typed: strict`
2025-01-27 08:55:56 +00:00
Mike McQuaid
d555ec9218
Fix handling of case-mistyped commands
- hide warnings when requiring files repeatedly on a case-insensitive
  filesystem and add reference to Ruby bugs
- add another case to check for command require failures
- also handle commands with `-` in them

Fixes #19125
2025-01-27 08:42:49 +00:00
Kevin
de294f314f
Merge pull request #19149 from Homebrew/days
analytics: fix type error
2025-01-26 21:08:07 +00:00
Michka Popoff
d436eb2e51
analytics: fix type error
Fixes:
Error: Parameter 'days': Expected type String, got type Integer with value 30
Caller: /opt/homebrew/Library/Homebrew/utils/analytics.rb:273
Definition: /opt/homebrew/Library/Homebrew/utils/analytics.rb:412 (Utils::Analytics.table_output)
2025-01-26 16:30:30 +01:00
Issy Long
867e982300
T.cast some Nodes to SendNodes
- In these cases we've already checked it's not a BlockNode,
  so we can safely cast to a SendNode and use `SendNode` methods.
2025-01-25 22:34:10 +00:00
Issy Long
06441f1337
Generic RuboCop::AST::Node for stanza method nodes
- These can be either BlockNode, SendNode or AsgnNode,
  which are all a type of Node.
- This causes errors in other places because we call
  BlockNode or SendNode methods on a Node now. Still TODO.
2025-01-25 22:20:08 +00:00
Issy Long
9a97456767
Bump more Cask RuboCops to Sorbet typed: strict
- This includes a new Tapioca compiler for
  `RuboCop::Cask::AST::Stanza` dynamic methods like
  `caveats?`.
2025-01-25 18:45:24 +00:00
Eric Knibbe
3ebcbbb6b8
Merge pull request #19145 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-f9ea5fc951
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
2025-01-24 19:47:34 +00:00
BrewTestBot
16bee05891
brew vendor-gems: commit updates. 2025-01-24 19:36:52 +00:00
dependabot[bot]
8b1a18e7df
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
Bumps the sorbet group in /Library/Homebrew with 4 updates: [sorbet-static-and-runtime](https://github.com/sorbet/sorbet), [sorbet-runtime](https://github.com/sorbet/sorbet), [sorbet](https://github.com/sorbet/sorbet) and [sorbet-static](https://github.com/sorbet/sorbet).


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

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

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

Updates `sorbet-static` from 0.5.11778 to 0.5.11780
- [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-group: sorbet
- dependency-name: sorbet-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: sorbet
- dependency-name: sorbet
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: sorbet
- dependency-name: sorbet-static
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: sorbet
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-24 18:26:06 +00:00
Mike McQuaid
a4501e4ff5
Merge pull request #19143 from Homebrew/sponsors-maintainers-man-completions
Update manpage and completions.
2025-01-24 09:26:19 +00:00
BrewTestBot
9704a74037
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.
2025-01-24 09:16:00 +00:00
Mike McQuaid
f4371b866d
Merge pull request #19116 from alebcay/utils-check-binary-linkage
utils: add check_binary_linkage function
2025-01-24 09:03:33 +00:00
BrewTestBot
b7a92f4cac
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.
2025-01-24 00:07:49 +00:00
Patrick Linnane
dcf744d729
Merge pull request #19141 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.71.0
build(deps-dev): bump rubocop from 1.70.0 to 1.71.0 in /Library/Homebrew
2025-01-23 22:45:13 +00:00
BrewTestBot
3ed5ccec8b
Update RBI files for rubocop.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2025-01-23 22:13:42 +00:00
BrewTestBot
8f3dd0e702
brew vendor-gems: commit updates. 2025-01-23 22:13:19 +00:00
Douglas Eichelberger
e3e13da684
Merge pull request #19140 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-cbeab1daa0
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
2025-01-23 19:45:09 +00:00
BrewTestBot
9701ad3ce6
brew vendor-gems: commit updates. 2025-01-23 19:29:26 +00:00
dependabot[bot]
5168281895
build(deps-dev): bump rubocop from 1.70.0 to 1.71.0 in /Library/Homebrew
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.70.0 to 1.71.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.70.0...v1.71.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-23 18:48:34 +00:00
dependabot[bot]
0aa177731e
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
Bumps the sorbet group in /Library/Homebrew with 4 updates: [sorbet-static-and-runtime](https://github.com/sorbet/sorbet), [sorbet-runtime](https://github.com/sorbet/sorbet), [sorbet](https://github.com/sorbet/sorbet) and [sorbet-static](https://github.com/sorbet/sorbet).


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

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

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

Updates `sorbet-static` from 0.5.11770 to 0.5.11778
- [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-group: sorbet
- dependency-name: sorbet-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: sorbet
- dependency-name: sorbet
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: sorbet
- dependency-name: sorbet-static
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: sorbet
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-23 18:48:07 +00:00
Mike McQuaid
1f55c1272d
Merge pull request #19139 from Homebrew/tests_no_force_brew_wrapper
dev-cmd/tests: disable forcing `brew` wrapper in tests.
2025-01-23 17:28:25 +00:00
Mike McQuaid
d0304b4816
Merge pull request #19137 from Homebrew/cleanup_improve_pinned
cleanup: improve cleanup version detection.
2025-01-23 16:38:20 +00:00
Mike McQuaid
9f319bc4a7
Merge pull request #19136 from Homebrew/skip_link
Add `brew install --skip-link`
2025-01-23 16:37:58 +00:00
Mike McQuaid
2eb6f4947d
Merge pull request #19138 from Homebrew/formula_cleanup_keepme
formula: add .keepme files to prevent cleanup
2025-01-23 16:37:35 +00:00
Caleb Xu
2373b6d586
utils: add check_binary_linkage function 2025-01-23 11:26:38 -05:00
Mike McQuaid
9cc9dd8760
dev-cmd/tests: disable forcing brew wrapper in tests.
Otherwise, various integration tests will fail under some
configurations.
2025-01-23 16:06:23 +00:00
Mike McQuaid
fa8ada31b8
cleanup: improve cleanup version detection.
We're using `formula.eligible_kegs_for_cleanup` to figure out which
formula should be kept or removed based on e.g. `brew pin` status but
we didn't use this sufficiently in `brew cleanup` to avoid cleaning up
all cached files related to a pinned keg.

Instead, let's use a (cached) call to
`formula.eligible_kegs_for_cleanup` to ensure that we check all
related resources, manifests, etc. for pinned bottles rather than just
the latest version.
2025-01-23 16:04:31 +00:00
Mike McQuaid
b49625a7dc
Add brew install --skip-link
We already have `--skip-post-install` and this adds similar behaviour
for e.g. `brew bundle` (and other users) to be able to install a
formula but skip the `brew link` stage afterwards.
2025-01-23 14:42:03 +00:00
Mike McQuaid
a3b0f9e536
Merge pull request #19135 from Homebrew/improve_quiet_output
formula_installer: improve quiet output.
2025-01-23 14:40:02 +00:00
Mike McQuaid
aeaeccc3b1
formula: add .keepme files to prevent cleanup
Allow the use of `.keepme` files inside a keg to prevent the cleanup.

Rather than having a binary state of "never cleanup if `.keepme` is
present" and "can cleanup without", instead a `.keepme` file is
essentially providing reference counting.

It can contain one or more lines which reference files on disk. If the
file exists, the `.keepme` file will prevent cleanup. If/when it does
not: `brew cleanup` will happily cleanup this keg (providing all other
conditions apply).
2025-01-23 14:29:48 +00:00
Mike McQuaid
e6b8ed8940
formula_installer: improve quiet output.
Quieten a few warnings, messages and caveats if we're passing `--quiet`
to `brew install`.

This also quiets an incorrect "Fetching" message that was being shown
when installing from a local bottle.
2025-01-23 14:06:39 +00:00
Mike McQuaid
0a422daf68
Merge pull request #19134 from Homebrew/improve-test-directory-structure
Mirror real installation directory structure for tests
2025-01-23 08:44:34 +00:00
Rylan Polster
c023b70e8f
Mirror real installation directory structure for tests 2025-01-23 03:11:59 -05:00
Ruoyu Zhong
7134674bf8
Merge pull request #19133 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-8d889586d8
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
2025-01-23 05:56:46 +00:00
BrewTestBot
ade142adf0
Update RBI files for sorbet.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2025-01-22 22:45:59 +00:00
BrewTestBot
f6d6103297
brew vendor-gems: commit updates. 2025-01-22 22:45:48 +00:00
Issy Long
fa40d2f2fd
Merge pull request #19094 from Homebrew/utils-sorbet-strict
Bump some `utils/` files to Sorbet `typed: strict`
2025-01-22 22:27:46 +00:00