44356 Commits

Author SHA1 Message Date
Mike McQuaid
f5a53241a8
Merge pull request #19449 from Homebrew/non-utf8-manpages
keg: fix normalize_pod2man_outputs! for non-UTF-8 manpages
2025-03-10 08:55:47 +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
Mike McQuaid
9c11f1b637
Merge pull request #19445 from Homebrew/curl-headers-handle-post-requests
curl_headers: Handle POST requests
2025-03-09 19:15:12 +00: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
thibhero
96983ee4ef Specifying the plural of formula 2025-03-07 16:21:05 -05:00
thibhero
c1d80ecf54 resolving conversations from pull request 2025-03-07 16:18:17 -05:00
Patrick Linnane
a2d0aae9a1
Merge pull request #19438 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-feed61f9e9
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
2025-03-07 17:01:54 +00: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
thibhero
4d2e2839b7 Merge remote-tracking branch 'tyuwags/install-size' into install-size 2025-03-07 11:32:40 -05:00
thibhero
d7723fa6ed resolving conversations from pull request 2025-03-07 11:32:34 -05:00
Patrick Linnane
67dd869acf
Merge pull request #19440 from Homebrew/sponsors-maintainers-man-completions
Update manpage and completions.
2025-03-07 16:29:40 +00:00
Thibaut Hérault
548d87c9e8
Update Library/Homebrew/cmd/reinstall.rb comment
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2025-03-07 11:26:52 -05:00
BrewTestBot
3e7a583a93
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.

Signed-off-by: Patrick Linnane <patrick@linnane.io>
2025-03-07 08:17:59 -08:00
Mike McQuaid
f7add22ae5
Merge pull request #19441 from Homebrew/sorbet-files-update
global: revert changes to some variables.
2025-03-07 14:38:36 +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
Mike McQuaid
b53a79a3bc
Merge pull request #19439 from Homebrew/cask-dependency-opts
cask/installer: pass more options to cask dependencies
2025-03-07 12:36:10 +00:00
thibhero
6d3ca98207 correcting regex to match in any order and only once 2025-03-07 00:38:02 -05:00
thibhero
692174305d correcting regex to match in any order and only once 2025-03-06 23:54:19 -05:00
thibhero
640556df39 correcting big space while displaying 2025-03-06 23:52:12 -05:00
thibhero
9874f2bbb9 check for formula in any order 2025-03-06 23:30:22 -05:00
thibhero
909f2afd16 brew style --fix 2025-03-06 23:02:17 -05:00
thibhero
459741f683 include FileUtils for touch 2025-03-06 22:59:58 -05:00
thibhero
0b302dc3ad always include 2025-03-06 22:32:51 -05:00
thibhero
8506f1901a check only if formula is bottled for first formula 2025-03-06 22:20:52 -05:00
thibhero
e6d02658b2 adding installed up-to-date 2025-03-06 22:03:15 -05:00
thibhero
483aa26aaa checking also the formula itself 2025-03-06 22:02:45 -05:00
thibhero
2edc42e905 erratum testball and not testball1 2025-03-06 21:43:24 -05:00
thibhero
0ebbd118e4 test for reinstall 2025-03-06 21:27:35 -05:00
thibhero
c5b8dd91f1 test for upgrade 2025-03-06 21:27:25 -05:00
thibhero
99fad7797c modifying files with brew style 2025-03-06 21:27:13 -05:00
thibhero
f4d93e19b8 refactoring testball case to make it more readable 2025-03-06 20:59:56 -05:00
thibhero
fa4e2bad6e updating testball5-0.1.tbz to make it work 2025-03-06 20:59:33 -05:00
thibhero
e5e647d950 refactoring testball 2025-03-06 19:58:32 -05:00
thibhero
4651b961fa removing attributes from macOS 2025-03-06 19:57:44 -05:00
thibhero
16599b6e05 tests for install_spec.rb 2025-03-06 19:34:46 -05:00
thibhero
4e90aa527d moving testball3 to testball5 2025-03-06 19:34:25 -05:00
Eric Knibbe
c5ec1fa61b
cask/installer: pass more options to cask dependencies 2025-03-06 14:10:37 -05:00
Mike McQuaid
dac4c0cc6c
Merge pull request #19437 from Homebrew/cask-skip-livecheck_https_availability-audit-for-post
Cask: skip livecheck https audit for POST requests
2025-03-06 18:10:35 +00: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
4e996e01e6
Merge pull request #19436 from Homebrew/livecheck/xorg-fix-empty-error
Xorg: Handle nil `:content` value
2025-03-06 15:46:16 +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
thibhero
f0f2e59fb7 Merge branch 'master' into ask-test
# Conflicts:
#	Library/Homebrew/vendor/bundle/bundler/setup.rb
2025-03-06 00:12:32 -05:00
thibhero
885b7c6f4f checking other tests functions 2025-03-05 23:57:58 -05:00
Patrick Linnane
1f5448fc65
Merge pull request #19434 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
2025-03-06 02:55:27 +00:00
thibhero
0f919e8397 new files for integration_spec.rb for testball3 and 4 2025-03-05 21:32:48 -05:00