33593 Commits

Author SHA1 Message Date
Nanda H Krishna
1d35406905
livecheck: fix parent reference handling 2025-03-10 13:21:00 -04:00
Mike McQuaid
2f6db3757e
Merge pull request #19448 from gromgit/diagnostic/user_path_prereq
diagnostic: enforce user_path_1 prerequisite
2025-03-10 08:55:50 +00:00
Caleb Xu
7f28b979af
keg: fix normalize_pod2man_outputs! for non-UTF-8 manpages 2025-03-10 03:06:46 -04:00
Adrian Ho
86ec9c7c93 diagnostic: enforce user_path_1 prerequisite
Resolves #19447.
2025-03-10 10:14:47 +08:00
Sam Ford
8ba1b4400a
livecheck: Include Content-Length header for POST
Some servers will return an error response if a `Content-Length`
header isn't included in a `POST` request, so this adds it to the
`post_args` array when `post_form` or `post_json` are used.
2025-03-07 20:31:00 -05:00
Sam Ford
9096a111d7
curl_headers: Handle POST requests
`Livecheck::Strategy.page_headers` uses `Utils::Curl.curl_headers` but
the method only handles `HEAD` and `GET` requests. I recently added
`POST` support to livecheck but forgot to update `curl_headers` in the
process, so `livecheck` blocks using the `HeaderMatch` strategy along
with `post_form` or `post_json` will fail because curl doesn't allow
both `--head` and `--data`/`--json` arguments.

This addresses the issue by updating `curl_headers` to handle `POST`
requests and skip the `GET` retry logic.
2025-03-07 20:28:03 -05:00
BrewTestBot
f47562c874
brew vendor-gems: commit updates. 2025-03-07 16:40:07 +00:00
dependabot[bot]
2b156ad4c9
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
Dependabot couldn't find the original pull request head commit, 3c4ba633e80f0c1253d4e90744500456b71eb142.
2025-03-07 16:38:43 +00:00
BrewTestBot
564b03694a
global: revert changes to some variables.
Let's ensure these are always set again.
2025-03-07 14:11:39 +00:00
Eric Knibbe
c5ec1fa61b
cask/installer: pass more options to cask dependencies 2025-03-06 14:10:37 -05:00
Sam Ford
1ac70579eb
Cask: skip livecheck https audit for POST requests
We recently added `POST` request support to livecheck but related cask
checks are failing the `livecheck_https_availability` audit because it
calls `validate_url_for_https_availability` which calls
`Utils::Curl.curl_check_http_content` and that checks the URL using a
`GET` request. Adding `POST` request support to all of those methods
will take some work, so this adds a guard to skip the audit if the
`livecheck` block uses `post_form` or `post_json`. This isn't ideal
but it will allow us to add these `livecheck` blocks in the interim
time.

Co-authored-by: Douglas Eichelberger <d@eic.email>
2025-03-06 12:14:42 -05:00
Mike McQuaid
0ad3ae3ae5
Merge pull request #19421 from Homebrew/global_env_cleanup
global: cleanup environment variables.
2025-03-06 15:50:43 +00:00
Mike McQuaid
d22184d593
global: cleanup environment variables.
In the spirit of trying to cleanup e.g. `brew sh` or `brew bundle env`
environment variables: let's delete them instead of fetching them.

This avoids having `env` output all the environment variables that we're
just using to pass state from Bash to Ruby.
2025-03-06 15:38:28 +00:00
Sam Ford
67c333ec0a
Xorg: Handle nil :content value
The `Xorg.find_versions` method was recently updated to replace
`match_data[:content].blank?` with `match_data[:content].empty?` but
this is producing an `undefined method 'empty?' for nil` error, as
`:content` is not present when `PageMatch.find_versions` uses cached
content. This updates `Xorg.find_versions` to handle nil `:content`
values in a way that's similar to other `find_versions` methods.
2025-03-06 10:13:56 -05:00
BrewTestBot
e8ce2d6fdc
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2025-03-06 00:26:37 +00:00
Patrick Linnane
46eb7ec4d8
Merge pull request #19431 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-ee0c0a22ba
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
2025-03-05 20:07:39 +00:00
BrewTestBot
ca483bbed3
brew vendor-gems: commit updates. 2025-03-05 19:54:23 +00:00
Sean Molenaar
fc319f6793 feat: add tests for completion stanzas 2025-03-05 20:12:18 +01:00
Sean Molenaar
ab2b18f78c feat: add os_version for casks 2025-03-05 20:12:18 +01:00
Sean Molenaar
55b07d7fed feat: add cask shell completion 2025-03-05 20:12:18 +01:00
dependabot[bot]
1358883cd6
build(deps-dev): bump parallel_tests in /Library/Homebrew
Bumps [parallel_tests](https://github.com/grosser/parallel_tests) from 5.0.0 to 5.0.1.
- [Changelog](https://github.com/grosser/parallel_tests/blob/master/CHANGELOG.md)
- [Commits](https://github.com/grosser/parallel_tests/compare/v5.0.0...v5.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-05 18:02:47 +00:00
dependabot[bot]
d5c3b7fec7
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.11882 to 0.5.11888
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

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

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

Updates `sorbet-static` from 0.5.11882 to 0.5.11888
- [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-03-05 18:02:23 +00:00
Adrian Ho
7fe2f3b045 cmd/tap: don't stacktrace on user error
Resolves #19427.
2025-03-05 17:32:35 +08:00
BrewTestBot
f9f9430f8e
brew vendor-gems: commit updates. 2025-03-04 21:09:09 +00:00
dependabot[bot]
49cab95a53
build(deps-dev): bump rubocop-performance from 1.23.1 to 1.24.0 in /Library/Homebrew
Dependabot couldn't find the original pull request head commit, 8e90e064d6680169b95122594b9d997a21b299bc.
2025-03-04 21:07:20 +00:00
Douglas Eichelberger
c2a53bc209
Merge pull request #19328 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-md-2.0.0
build(deps-dev): bump rubocop-md from 1.2.4 to 2.0.0 in /Library/Homebrew
2025-03-04 20:46:36 +00:00
Patrick Linnane
79d750de47
Merge pull request #19425 from Homebrew/fix-strategic-require
fix: require strategic interface in each livecheck strategy
2025-03-04 20:41:25 +00:00
BrewTestBot
9ac2216068
brew vendor-gems: commit updates. 2025-03-04 12:07:17 -08:00
dependabot[bot]
3bb22ad9ac
build(deps-dev): bump rubocop-md in /Library/Homebrew
Bumps [rubocop-md](https://github.com/rubocop/rubocop-md) from 1.2.4 to 2.0.0.
- [Release notes](https://github.com/rubocop/rubocop-md/releases)
- [Changelog](https://github.com/rubocop/rubocop-md/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-md/compare/v1.2.4...v2.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-04 12:06:45 -08:00
Douglas Eichelberger
8301d39b99
fix: require strategic interface in each livecheck strategy 2025-03-04 11:48:54 -08:00
Patrick Linnane
287d8b4021
Merge pull request #19318 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-rspec-3.5.0
build(deps-dev): bump rubocop-rspec from 3.4.0 to 3.5.0 in /Library/Homebrew
2025-03-04 19:48:24 +00:00
BrewTestBot
30832168f1
Update RBI files for rubocop-rspec.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2025-03-04 19:37:33 +00:00
BrewTestBot
f030eb27f1
brew vendor-gems: commit updates. 2025-03-04 19:37:25 +00:00
Douglas Eichelberger
1494a471dd
remove lint_roller from tapioca exclusions 2025-03-04 11:36:01 -08:00
dependabot[bot]
1b73efa575
build(deps-dev): bump rubocop-rspec from 3.4.0 to 3.5.0 in /Library/Homebrew
Dependabot couldn't find the original pull request head commit, ac410e7e262a92178dcdb3a8d25fee8ab24d5424.
2025-03-04 11:30:36 -08:00
Patrick Linnane
d760e40919
Merge pull request #19420 from botantony/std_args
docs: add a bit more information about `std_*_args` to Formula Cookbook
2025-03-04 19:24:36 +00:00
Patrick Linnane
0c554fd7f4
Merge pull request #19423 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.73.2
build(deps-dev): bump rubocop from 1.73.1 to 1.73.2 in /Library/Homebrew
2025-03-04 19:21:27 +00:00
BrewTestBot
60d2db77f8
Update RBI files for rubocop.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2025-03-04 19:08:05 +00:00
BrewTestBot
7fdfddf697
brew vendor-gems: commit updates. 2025-03-04 19:07:55 +00:00
BrewTestBot
7e6727021d
brew vendor-gems: commit updates. 2025-03-04 19:07:43 +00:00
dependabot[bot]
d0df4385e4
build(deps-dev): bump rubocop from 1.73.1 to 1.73.2 in /Library/Homebrew
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.73.1 to 1.73.2.
- [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.73.1...v1.73.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-04 18:47:29 +00:00
dependabot[bot]
f203959831
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.11875 to 0.5.11882
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

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

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

Updates `sorbet-static` from 0.5.11875 to 0.5.11882
- [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-03-04 18:47:19 +00:00
botantony
bf7514f328
docs: add a bit more information about std_*_args to Formula Cookbook 2025-03-04 13:04:10 +01:00
Heath Stewart
222e8d129a
Document pwsh shell completion
Based on discussion in #19408, update the documentation to specify that `:pwsh` must be passed explicitly and that it will translate to a "powershell" argument, as is currently supported by Go's common `github.com/spf13/cobra` module and Rust's common `clap` (with `clap_complete`) crate.
2025-03-04 02:16:48 -08:00
Carlo Cabrera
807709622b
formula: remove pwsh from default completion shells
Fixes https://github.com/Homebrew/brew/pull/19407#issuecomment-2694083829
2025-03-03 20:07:13 +08:00
Mike McQuaid
e401eee162
Merge pull request #19407 from heaths/issue19403
Add PowerShell (pwsh) completion support
2025-03-03 08:31:03 +00:00
Douglas Eichelberger
fcf18912fe
Inline use of attr_predicate 2025-03-02 21:36:03 -08:00
Heath Stewart
15282dcdbd
Fix lint 2025-03-02 18:44:40 -08:00
Heath Stewart
42caf20fa4
Add PowerShell (pwsh) completion support
Resolves #19403
2025-03-02 18:17:38 -08:00
Mike McQuaid
64efed206d
Merge pull request #19391 from gibfahn/no_sorbet_even_if_dev
fix: HOMEBREW_NO_SORBET_RUNTIME should work even if developer
2025-03-02 19:32:54 +00:00