43894 Commits

Author SHA1 Message Date
Mike McQuaid
5ae29d324d
Merge pull request #19258 from Homebrew/brew_alias_import
Import `brew alias` and `brew unalias` commands
2025-02-07 19:32:14 +00:00
Mike McQuaid
743971bcc4
Merge pull request #19233 from Homebrew/livecheck/add-post-support
livecheck: Add support for POST requests
2025-02-07 19:31:49 +00:00
Mike McQuaid
890b2950c3
Merge pull request #19261 from Homebrew/dependabot/bundler/Library/Homebrew/ruby-lsp-0.23.9
build(deps-dev): bump ruby-lsp from 0.23.8 to 0.23.9 in /Library/Homebrew
2025-02-07 19:31:27 +00:00
dependabot[bot]
ec49a3e9f6
build(deps-dev): bump ruby-lsp in /Library/Homebrew
Bumps [ruby-lsp](https://github.com/Shopify/ruby-lsp) from 0.23.8 to 0.23.9.
- [Release notes](https://github.com/Shopify/ruby-lsp/releases)
- [Commits](https://github.com/Shopify/ruby-lsp/compare/v0.23.8...v0.23.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-07 18:31:02 +00:00
Mike McQuaid
8adc188992
Import brew alias and brew unalias commands
Import these from the homebrew/aliases tap and deprecate that tap.

This required a little messing around with class/module/constant names
to get `brew tests` and `brew typecheck` to play nicely.

I added also added Sorbet type signatures and integration tests.
2025-02-07 14:31:50 +00:00
Sam Ford
8997cccddf
Livecheck: Expand test coverage
This brings line coverage for the `Livecheck` DSL back to 100%, as we
had evidently overlooked part of the `#strategy` method.
2025-02-07 08:57:33 -05:00
Sam Ford
a16f5666a8
Sparkle: Add homebrew_curl support
`Sparkle` is the only strategy with a `find_versions` method that
calls `Strategy::page_content` (or `::page_headers`) and doesn't have
a `homebrew_curl` parameter. This adds the missing parameter and
passes the value to `page_content`, which brings it in line with the
other strategies.
2025-02-07 08:57:32 -05:00
Sam Ford
2187316262
Strategy: Expand test coverage
Between this commit and the previous one, this brings test coverage
for `Livecheck::Strategy` up to 98.18% line coverage and 97.22%
branch coverage. The only uncovered areas are some Sorbet `params`
calls (which I'm not sure how to cover) and a conditional `break` in
`page_headers` that will be refactored away in the future.

The increased coverage is primarily in areas that weren't covered
before because they call methods that make network requests. I worked
around this with stubs and doubles, so we can test this code to some
degree. I plan to expand this approach to other areas in livecheck
that aren't covered for the same reason and that should significantly
increase test coverage (along with some other test improvements that
I have lined up).
2025-02-07 08:57:32 -05:00
Sam Ford
b4757af656
livecheck: Add support for POST requests
livecheck currently doesn't support `POST` requests but it wasn't
entirely clear how best to handle that. I initially approached it as
a `Post` strategy but unfortunately that would have required us to
handle response body parsing (e.g., JSON, XML, etc.) in some fashion.
We could borrow some of the logic from related strategies but we would
still be stuck having to update `Post` whenever we add a strategy for
a new format.

Instead, this implements `POST` support by borrowing ideas from the
`using: :post` and `data` `url` options found in formulae. This uses
a `post_form` option to handle form data and `post_json` to handle
JSON data, encoding the hash argument for each into the appropriate
format. The presence of either option means that curl will use a
`POST` request.

With this approach, we can make a `POST` request using any strategy
that calls `Strategy::page_headers` or `::page_content` (directly or
indirectly) and everything else works the same as usual. The only
change needed in related strategies was to pass the options through
to the `Strategy` methods.

For example, if we need to parse a JSON response from a `POST`
request, we add a `post_data` or `post_json` hash to the `livecheck`
block `url` and use `strategy :json` with a `strategy` block. This
leans on existing patterns that we're already familiar with and
shouldn't require any notable maintenance burden when adding new
strategies, so it seems like a better approach than a `Post` strategy.
2025-02-07 08:53:47 -05:00
Mike McQuaid
94e2bdf668
Merge pull request #19257 from Homebrew/improve_brew_wrapper_error
brew.sh: improve HOMEBREW_FORCE_BREW_WRAPPER error message
2025-02-07 13:36:26 +00:00
Mike McQuaid
17bfef29f2
brew.sh: improve HOMEBREW_FORCE_BREW_WRAPPER error message
Rather than just explaining what is happening, let's explain a bit more
why this is happening and how to fix it.
2025-02-07 13:23:52 +00:00
Mike McQuaid
9e3ae9f3f9
Merge pull request #19251 from Homebrew/revert-json-v3-logic
Revert json v3 logic
2025-02-07 08:32:22 +00:00
apainintheneck
f916f27d82 remove all references to JSON v3
The logic has now been removed in previous commits. This just
removes some references to the `HOMEBREW_INTERNAL_JSON_V3`
environment variable along with reverting the changes to the
`Cachable` class that were originally added in
bd72ec812c3ed656dfcf8e24f77df142a1fe9cc1.
2025-02-06 21:04:08 -08:00
apainintheneck
eead014ceb cask/cask: remove unnecessary tests
The `compact:` option got removed from `Cask::Cask#artifacts_list`
in 042d6cc97e886c6f2817500083cda6c856b5350a.
2025-02-06 20:13:19 -08:00
Mike McQuaid
91acde379d
Merge pull request #19255 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-d92c6eb6ce
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
2025-02-06 22:50:44 +00:00
BrewTestBot
77b6c1722e
Update RBI files for sorbet.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2025-02-06 22:36:25 +00:00
BrewTestBot
c2960a4790
brew vendor-gems: commit updates. 2025-02-06 22:36:17 +00:00
dependabot[bot]
9a8bab28fa 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.11802 to 0.5.11805
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

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

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

Updates `sorbet-static` from 0.5.11802 to 0.5.11805
- [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-02-06 15:22:49 -05:00
Mike McQuaid
76198789ae
Merge pull request #19256 from Homebrew/dependabot/bundler/Library/Homebrew/rspec-core-3.13.3
build(deps-dev): bump rspec-core from 3.13.2 to 3.13.3 in /Library/Homebrew
2025-02-06 19:15:20 +00:00
dependabot[bot]
b4647c6f5a
build(deps-dev): bump rspec-core in /Library/Homebrew
Bumps [rspec-core](https://github.com/rspec/rspec-core) from 3.13.2 to 3.13.3.
- [Release notes](https://github.com/rspec/rspec-core/releases)
- [Changelog](https://github.com/rspec/rspec-core/blob/main/Changelog.md)
- [Commits](https://github.com/rspec/rspec-core/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-06 18:49:05 +00:00
Eric Knibbe
69beec68bd
Merge pull request #19253 from Homebrew/sponsors-maintainers-man-completions
Update manpage and completions.
2025-02-06 17:16:48 +00:00
BrewTestBot
59597035a0
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-02-06 17:03:07 +00:00
Mike McQuaid
bd7a3cc1df
Merge pull request #19252 from gromgit/update-python-resources/ignore-errors
update-python-resources: add option to ignore errors
2025-02-06 16:48:27 +00:00
Adrian Ho
956b71eeed update-python-resources: add option to ignore errors
This is particularly useful for third-party Python formulae that have a ton of resources, not all of which may adhere to homebrew/core's strict policies. See #19240 for context.

I've also added logic that ignores `--ignore-errors` on `homebrew/core`, although I personally think this new behavior is also useful for mainline formula creation.

Before: error out on a single non-conforming resource, zero resource blocks added to formula, scary stacktrace.

After: all conforming resources added, all non-conforming resources identified in comments, error message at end, `brew` exits non-zero without scary stacktrace:-
```
% brew update-python-resources --ignore-errors gromgit/test/auto-coder || echo OOPS
==> Retrieving PyPI dependencies for "auto-coder==0.1.243"...
==> Retrieving PyPI dependencies for excluded ""...
==> Getting PyPI info for "aiohappyeyeballs==2.4.4"
[200+ resource lines elided]
==> Getting PyPI info for "zhipuai==2.1.5.20250106"
==> Updating resource blocks
Error: Unable to resolve some dependencies. Please check /opt/homebrew/Library/Taps/gromgit/homebrew-test/Formula/auto-coder.rb for RESOURCE-ERROR comments.
OOPS

% brew cat gromgit/test/auto-coder | ggrep -C10 RESOURCE-ERROR
  license "Apache-2.0"

  depends_on "python@3.11"

  # Additional dependency
  # resource "" do
  #   url ""
  #   sha256 ""
  # end

  # RESOURCE-ERROR: Unable to resolve "azure-cognitiveservices-speech==1.42.0" (no suitable source distribution on PyPI)
  # RESOURCE-ERROR: Unable to resolve "ray==2.42.0" (no suitable source distribution on PyPI)

  resource "aiohappyeyeballs" do
    url "e4373e888f/aiohappyeyeballs-2.4.4.tar.gz"
    sha256 "5fdd7d87889c63183afc18ce9271f9b0a7d32c2303e394468dd45d514a757745"
  end

  resource "aiohttp" do
    url "952d49c730/aiohttp-3.11.12.tar.gz"
    sha256 "7603ca26d75b1b86160ce1bbe2787a0b706e592af5b2504e12caa88a217767b0"
  end
```
2025-02-06 21:20:55 +08:00
Mike McQuaid
fd92510c71
Merge pull request #19250 from Homebrew/ww/warn-pypi-info-no-dist
utils/pypi: warn when `pypi_info` fails due to missing sources
2025-02-06 09:35:35 +00:00
apainintheneck
839198d21e Remove JSON v3 formula logic 2025-02-05 23:36:57 -08:00
apainintheneck
042d6cc97e Remove JSON v3 cask logic 2025-02-05 23:32:32 -08:00
William Woodruff
46d67ba560
utils/pypi: warn when pypi_info fails due to missing sources
Signed-off-by: William Woodruff <william@yossarian.net>
2025-02-05 15:25:38 -05:00
Mike McQuaid
a600438123
Merge pull request #19249 from Homebrew/dependabot/bundler/Library/Homebrew/parser-3.3.7.1
build(deps-dev): bump parser from 3.3.7.0 to 3.3.7.1 in /Library/Homebrew
2025-02-05 19:41:01 +00:00
BrewTestBot
7d3c1e2541
Update RBI files for parser.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2025-02-05 19:26:53 +00:00
BrewTestBot
f4ed4729e0
brew vendor-gems: commit updates. 2025-02-05 19:23:33 +00:00
dependabot[bot]
21fcd902d2
build(deps-dev): bump parser in /Library/Homebrew
Bumps [parser](https://github.com/whitequark/parser) from 3.3.7.0 to 3.3.7.1.
- [Changelog](https://github.com/whitequark/parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/whitequark/parser/compare/v3.3.7.0...v3.3.7.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-05 18:42:26 +00:00
Michka Popoff
886f4aa40a
Merge pull request #19238 from Homebrew/glibc2
glibc: set next version
2025-02-05 18:12:36 +00:00
Douglas Eichelberger
fe7c76196c
Merge pull request #19215 from Homebrew/concurrency-test
Add test for concurrent fetching
2025-02-05 14:52:57 +00:00
Patrick Linnane
6674f2d4cb
Merge pull request #19243 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-a45751d429
build(deps): bump the sorbet group across 1 directory with 4 updates
2025-02-05 13:36:21 +00:00
Mike McQuaid
ce547ea656
Merge pull request #19220 from Homebrew/docs-manpage-fixes
docs: various manpage grammar fixes
2025-02-05 13:19:57 +00:00
BrewTestBot
135fff8e92
brew vendor-gems: commit updates. 2025-02-05 14:19:53 +01:00
dependabot[bot]
548f12a844
build(deps): bump the sorbet group across 1 directory with 4 updates
Bumps the sorbet group with 1 update in the /Library/Homebrew directory: [sorbet-static-and-runtime](https://github.com/sorbet/sorbet).


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

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

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

Updates `sorbet-static` from 0.5.11796 to 0.5.11802
- [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-02-05 14:19:52 +01:00
Mike McQuaid
b526a0664a
Merge pull request #19244 from gromgit/formula_creator/latest_python
formula_creator: depend on latest python
2025-02-05 13:16:12 +00:00
Patrick Linnane
3cb9ff1499
Merge pull request #19235 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.71.2
build(deps-dev): bump rubocop from 1.71.1 to 1.71.2 in /Library/Homebrew
2025-02-05 12:48:18 +00:00
Patrick Linnane
4c1f2b65bc
docs: run brew generate-man-completions
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2025-02-05 13:39:45 +01:00
Patrick Linnane
291edf5d30
docs: rewording
Co-authored-by: Carlo Cabrera <github@carlo.cab>
2025-02-05 13:39:27 +01:00
Eric Knibbe
99de228fc2
docs: various manpage grammar fixes 2025-02-05 13:38:39 +01:00
BrewTestBot
2235341778
Update RBI files for rubocop.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2025-02-05 12:32:21 +00:00
BrewTestBot
8f10275ac4
brew vendor-gems: commit updates. 2025-02-05 12:32:00 +00:00
Patrick Linnane
c8be339511
Merge pull request #19245 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
2025-02-05 12:31:49 +00:00
BrewTestBot
feb050ff13
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2025-02-05 12:04:41 +00:00
Patrick Linnane
78a2f4ca07
Merge pull request #19225 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-85ff93520d
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
2025-02-05 12:03:22 +00:00
Adrian Ho
fbf1d68222 formula_creator: depend on latest python
Followup to #19173, which causes `brew create` to error out on the literal `python@x.y` dependency.

Related to #19240.
2025-02-05 18:37:37 +08:00
Mike McQuaid
6a7bf8b054
Merge pull request #19237 from Homebrew/dependabot/bundler/Library/Homebrew/tapioca-0.16.9
build(deps-dev): bump tapioca from 0.16.8 to 0.16.9 in /Library/Homebrew
2025-02-05 09:12:12 +00:00