Carlo Cabrera
a76c33f7bb
extend/kernel: tighten up some type signatures
...
Allowing either `Formula`e or `String`s in these methods leads to errors
at runtime when one hasn't done `require "formula"` yet.
Let's tighten these up so that they only accept `Formula` arguments to
guarantee that `require "formula"` has been done before they are called.
For callers that need to pass a `String`, we update them to call a
version of these methods that accepts only `String`s.
See discussion at #20352 .
2025-08-02 01:59:46 +08:00
Mike McQuaid
d746234dcd
Merge pull request #20351 from Homebrew/fix_pathname_types
...
extend/pathname: fix type signature for write_env_script.
2025-08-01 14:43:19 +00:00
Mike McQuaid
ea53fdc096
extend/pathname: fix type signature for write_env_script.
...
It needs to be more permissive.
2025-08-01 15:28:53 +01:00
Mike McQuaid
53b900663a
Merge pull request #20349 from Homebrew/odisabled_fix
...
extend/kernel: fix odisabled call.
2025-08-01 11:36:21 +00:00
Carlo Cabrera
f5bddacf0c
Merge pull request #20345 from Homebrew/assertions-typecheck
...
formula_assertions: fix typechecking error in `{shell,pipe}_output`
2025-08-01 10:09:39 +00:00
Mike McQuaid
f405f7316c
extend/kernel: fix odisabled call.
...
This must set `disable` to `true` to have correct behaviour.
Also, don't allow setting it to `false` to avoid confusion as
that's what `odeprecated` is for.
2025-08-01 08:47:38 +01:00
Ruoyu Zhong
52de18f60f
Merge pull request #20347 from Homebrew/sorbet-files-update
...
sorbet: Update RBI files.
2025-08-01 02:26:54 +00:00
Ruoyu Zhong
13c54cd0b7
Merge pull request #20346 from Homebrew/sponsors-maintainers-man-completions
...
Update manpage and completions.
2025-08-01 02:04:01 +00:00
BrewTestBot
d62bb61c7f
sorbet: Update RBI files.
...
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sorbet.yml ) workflow.
2025-08-01 00:37:45 +00:00
BrewTestBot
5dc0193523
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-08-01 00:10:48 +00:00
Carlo Cabrera
4c024adba6
formula_assertions: fix typechecking error in {shell,pipe}_output
...
`cmd` can be a `Pathname` (see the type signature), but `ohai` seems to
expect only `String`s now.
While we're here, let's assert that `cmd` exists whenever it is a
`Pathname`, to avoid passing arguments like `bin/"cmd --version"` (which
is not a valid `Pathname`).
See, for example, Homebrew/homebrew-core#231882 .
2025-08-01 05:58:46 +08:00
Rylan Polster
46b8ef4b96
Merge pull request #20344 from Homebrew/extend_sorbet_typing_pathname_cleanup
...
Cleanup some `extend/*` types/locations
2025-07-31 18:56:36 +00:00
Mike McQuaid
ec56bbf289
Improve extend/* Sorbet typing
2025-07-31 17:31:27 +01:00
Mike McQuaid
bcdb1d3af6
Merge pull request #20343 from Homebrew/fix_uri_parser_warning
...
Fix URI parser warning
2025-07-31 13:38:39 +00:00
Mike McQuaid
0df52b91de
Merge pull request #20342 from Homebrew/document_homebrew_download_concurrency
...
Document `HOMEBREW_DOWNLOAD_CONCURRENCY` environment variable
2025-07-31 12:06:32 +00:00
Mike McQuaid
8217fe5bcf
Merge pull request #20331 from Homebrew/deprecate_disable_remove_4.6
...
Deprecate/disable/remove code for Homebrew 4.6
2025-07-31 11:40:29 +00:00
Mike McQuaid
34bc30d639
Fix URI parser warning
2025-07-31 12:21:19 +01:00
Mike McQuaid
0af23e9dc9
Document HOMEBREW_DOWNLOAD_CONCURRENCY environment variable
...
We're going to be ready in 4.6.0 for users to try this out (but not
yet for it to be the default).
2025-07-31 12:18:08 +01:00
Mike McQuaid
e3c3f5a356
Deprecate/disable/remove code for Homebrew 4.6
...
The next minor release will be Homebrew 4.6.0 so let's do the usual
deprecation/disable/remove code cycle.
2025-07-31 12:13:01 +01:00
Carlo Cabrera
70bb266d91
Merge pull request #20340 from Homebrew/test-bot-style-fix
...
utils/gems: use Homebrew-specific gem spec cache
2025-07-31 06:46:37 +00:00
Carlo Cabrera
e9442f5417
Merge pull request #20341 from Homebrew/api-source-fix
...
api: fix handling of source downloads
2025-07-31 06:45:59 +00:00
Bo Anderson
888746ef54
utils/gems: use Homebrew-specific gem spec cache
2025-07-31 05:42:40 +01:00
Bo Anderson
c1c58741d6
api: fix handling of source downloads
2025-07-31 05:40:40 +01:00
Eric Knibbe
4d0c3fa4df
Merge pull request #20337 from Homebrew/sponsors-maintainers-man-completions
...
Update manpage and completions.
2025-07-31 00:44:13 +00:00
BrewTestBot
ad96b58c27
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-07-30 22:17:30 +00:00
Patrick Linnane
0162cdeffe
Merge pull request #20333 from agowa/patch-1
...
`brew upgrade --help` missing HOMEBREW_UPGRADE_GREEDY
2025-07-30 21:58:47 +00:00
Klaus Frank
a7da303481
fix: Add missing env var mention on upgrade help page
...
Add missing env defaults note for `--greedy` to `brew upgrade --help` output
2025-07-30 21:37:23 +00:00
Douglas Eichelberger
7fb928ccf4
Merge pull request #20325 from Homebrew/dug/typed-cask-audit
...
Enable strict typing in Cask::Audit
2025-07-30 20:23:18 +00:00
Douglas Eichelberger
157992be17
Enable strict typing in Cask::Audit
2025-07-30 12:43:32 -07:00
Mike McQuaid
ff4ee5d0b5
Merge pull request #20328 from Homebrew/download_queue_cask
...
Add Cask install/upgrade/reinstall support for download queue
2025-07-30 07:42:29 +00:00
Mike McQuaid
58e5dc1177
workflows/tests: set download concurrency to auto.
2025-07-30 08:19:12 +01:00
Mike McQuaid
bafc57cfe1
Add Cask install/upgrade/reinstall support for download queue
...
This will allow installing/upgrading/reinstalling casks and all their
dependencies in parallel.
2025-07-30 08:18:35 +01:00
Mike McQuaid
cb1fe9ac0c
Merge pull request #20330 from Homebrew/empty_caveats
...
cmd/info: don't print empty caveats.
2025-07-30 06:45:05 +00:00
Rylan Polster
fe0a9c4a3d
Merge pull request #20327 from Homebrew/download_queue_source_download
...
formula*: add source download support for download queue.
2025-07-30 03:26:40 +00:00
Mike McQuaid
a947ad6e6d
Merge pull request #20329 from Homebrew/download_concurrency_auto
...
env_config: add `auto` option for `download_concurrency`
2025-07-29 16:11:44 +00:00
Mike McQuaid
10eb5491dc
cmd/info: don't print empty caveats.
...
The existing logic was insufficient so let's check the actual string.
2025-07-29 15:18:24 +01:00
Mike McQuaid
d15a0cd9eb
env_config: add auto option for download_concurrency
...
This will allow the user to set `HOMEBREW_DOWNLOAD_CONCURRENCY` to
`auto` to have Homebrew use the number of cores on the machine * 2.
2025-07-29 15:15:37 +01:00
Mike McQuaid
d90a421467
Merge pull request #20297 from Homebrew/test_bot_download_concurrency
...
workflows/tests: set HOMEBREW_DOWNLOAD_CONCURRENCY for test-bot tests.
2025-07-29 13:32:57 +00:00
Mike McQuaid
5d01b22d38
formula*: add source download support for download queue.
...
This should allow downloading the formula files from GitHub in
parallel too.
2025-07-29 13:48:43 +01:00
Mike McQuaid
b63669c92b
download_queue: fix bottle manifest handling.
...
These should be ignored upon failures.
2025-07-29 12:42:13 +01:00
Mike McQuaid
0c09ed71d4
formula_installer: fix fetch deps and local pour for download queue.
2025-07-29 12:19:39 +01:00
Mike McQuaid
d3a9525fd7
retryable_download: ensure HOMEBREW_CELLAR exists.
2025-07-29 12:19:38 +01:00
Mike McQuaid
9255a1fd84
workflows/tests: set HOMEBREW_DOWNLOAD_CONCURRENCY for test-bot tests.
...
This should give us some basic integration testing for the new download
concurrency code before we enabled/test it in homebrew-core's CI.
2025-07-29 12:19:13 +01:00
Mike McQuaid
3b61b44c8a
Merge pull request #20324 from Homebrew/dug/low-shape-service
...
Reduce shape variations in Homebrew::Service
2025-07-29 07:52:15 +00:00
Mike McQuaid
d6111a2f7b
Merge pull request #20322 from Homebrew/vendor-gems-dependabot
...
workflows/vendor-gems: push to PRs from dependabot.
2025-07-29 07:50:52 +00:00
Mike McQuaid
aaefb351b4
workflows/vendor-gems: push to PRs from dependabot.
...
This should avoid maintainers needing to run with `workflow_dispatch`
for dependabot PRs.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-29 08:23:48 +01:00
Douglas Eichelberger
0a4b064059
Fix specs
2025-07-28 21:14:23 -07:00
Douglas Eichelberger
5177db7dc9
Remove redundant yard tags
2025-07-28 17:14:03 -07:00
Douglas Eichelberger
c4b02465f5
Reduce shape variations in Homebrew::Service
2025-07-28 17:03:43 -07:00
Mike McQuaid
00c528bc54
Merge pull request #20319 from Homebrew/dug/fix-readall-type
...
Fix type error in Readall.valid_tap?
2025-07-28 16:21:54 +00:00