36404 Commits

Author SHA1 Message Date
Eric Knibbe
b33443d655
Formula-Cookbook: document stable path variables 2025-08-19 09:04:12 -04:00
Mike McQuaid
a71d5e835f
More Sorbet typed: strict files
Add the necessary changes for Sorbet `typed: strict` in more files.

Co-authored-by: Ruoyu Zhong <zhongruoyu@outlook.com>
2025-08-19 13:03:08 +01:00
Ruoyu Zhong
1eb070e257
diagnostic: don't expand tildes in cask env vars
We double quote them so they don't get expanded. Also, use `sh_quote` to
quote the variable values properly.
2025-08-19 16:42:06 +08:00
Ruoyu Zhong
31598ca8ef
diagnostic: improve tilde expansion logic
This is a bit pedantic, but the tilde expansion only occurs if the tilde
is at the beginning of the string (if we only take the current user into
account) [1].

[1]: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html#tag_19_06_01
2025-08-19 16:42:06 +08:00
Ruoyu Zhong
b749cbcffd
diagnostic: fix cask env var output
With `each`, we don't actually output the processed values. We should
therefore be using `filter_map` instead.
2025-08-19 16:42:06 +08:00
Mike McQuaid
6db1f6a052
**/diagnostic.rb: add Sorbet strict sigil.
Making more files `typed: strict` slowly but surely.
2025-08-19 09:10:24 +01:00
Mike McQuaid
df589f47cb
Merge pull request #20511 from Homebrew/check_for_symlinked_home_doctor_only
os/linux/diagnostic: make check_for_symlinked_home doctor-only.
2025-08-19 07:45:58 +00:00
Mike McQuaid
dc8d920d37
Merge pull request #20510 from Homebrew/cask-env-var-diagnostic-fix
diagnostic: fix `check_cask_environment_variables` check
2025-08-19 07:42:27 +00:00
Rylan Polster
f4445d2fba
Merge pull request #20509 from Homebrew/formula-analytics-os-names
Fix `formula-analytics` pretty OS name logic
2025-08-19 07:30:46 +00:00
Mike McQuaid
59f0197450
os/linux/diagnostic: make check_for_symlinked_home doctor-only.
This avoids printing it every time a `brew install` is run.
2025-08-19 08:30:06 +01:00
Mike McQuaid
e29749fcc2
Merge pull request #20496 from Homebrew/update-report-desc-non-api
cmd/update-report: show new formula/cask desc for non-API users too
2025-08-19 07:25:39 +00:00
Ruoyu Zhong
10ec91cdeb
diagnostic: fix check_cask_environment_variables check
Fixes #20505.
2025-08-19 15:22:58 +08:00
Rylan Polster
4b4378943a
Fix formula-analytics pretty OS name logic 2025-08-19 03:12:32 -04:00
Ruoyu Zhong
b45f0ecd2e
test/cmd/update-report: fix test 2025-08-19 14:59:40 +08:00
Rylan Polster
b04b0971a1
Enable loading stubbed formulae 2025-08-19 02:47:07 -04:00
Ruoyu Zhong
c481e71092
cmd/update-report: rework 2025-08-19 14:27:05 +08:00
Bo Anderson
99cdd7d8c0
Merge pull request #20507 from Homebrew/api-source-forbid-fix
api/formula: use correct method for allowing source path loads
2025-08-19 05:48:01 +00:00
Carlo Cabrera
64e548fb80
Merge pull request #20508 from Homebrew/wrapper-source
utils/wrapper.sh: fix `source` calls
2025-08-19 04:50:40 +00:00
Carlo Cabrera
17435f583f
utils/wrapper.sh: fix source calls
We need to `source utils/helpers.sh` before calling `odie`. We also
don't need to `source utils/wrapper.sh` again here, because we are
already in `utils/wrapper.sh`.
2025-08-19 12:21:03 +08:00
Bo Anderson
1fa872f46b
api/formula: use correct method for allowing source path loads 2025-08-19 03:59:08 +01:00
Bo Anderson
60a75e87dd
Merge pull request #20506 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
2025-08-19 02:54:23 +00:00
Bevan Kay
69145c911d
cask/dsl/rename: add api support 2025-08-19 11:47:15 +10:00
BrewTestBot
53659cbaa0
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sorbet.yml) workflow.
2025-08-19 00:29:42 +00:00
Bo Anderson
a7e338d520
Merge pull request #20501 from Homebrew/formula-no-tab-fix
Fix formula installs without a tab
2025-08-18 20:23:33 +00:00
Bo Anderson
4d43063060
Fix formula installs without a tab 2025-08-18 20:23:19 +01:00
Mike McQuaid
3518983f42
Merge pull request #20499 from Homebrew/deprecate_conflicts_with_formula
Deprecate `conflicts_with formula:` in Cask DSL.
2025-08-18 18:48:42 +00:00
Ruoyu Zhong
7cec7586ff
cmd/update-report: remove unused methods 2025-08-19 02:39:26 +08:00
Ruoyu Zhong
ee515fd5e0
cmd/update-report: show new formula/cask desc for non-API users too
This will make non-API users like myself happy.
2025-08-19 02:35:44 +08:00
Mike McQuaid
d13aaf94db
Deprecate conflicts_with formula: in Cask DSL.
This is outside of our usual deprecation process but it's a no-op method
that does, and has always done, nothing so it doesn't make sense to wait
another 2.5 months before deprecating it.

While we're here, make `conflicts_with` `typed: strict` in Sorbet.
2025-08-18 19:25:54 +01:00
Mike McQuaid
1101689af2
Merge pull request #20500 from Homebrew/bump-pr-tap
dev-cmd/bump-*-pr: automatically tap core taps if needed.
2025-08-18 17:09:40 +00:00
Mike McQuaid
93807db8c2
dev-cmd/bump-*-pr: automatically tap core taps if needed.
If the tap isn't tapped already, automatically tap it.
2025-08-18 17:49:06 +01:00
Mike McQuaid
2dfc1b4eb8
Merge pull request #20498 from Homebrew/analytics_pretty_name
Move formula analytics pretty name logic to `MacOSVersion`.
2025-08-18 16:16:53 +00:00
Mike McQuaid
435158884d
Move formula analytics pretty name logic to MacOSVersion.
This makes sense to centralize these so when we support new macOS
versions we can just add them to the
`VERSIONS_TO_ANALYTICS_PRETTY_NAMES` hash.
2025-08-18 16:57:20 +01:00
Mike McQuaid
0cadd6d0c1
Merge pull request #20487 from Homebrew/formulary-forbid-cache
formulary: do not allow using the cache when forbidding paths
2025-08-18 15:54:34 +00:00
Mike McQuaid
1e989a89b2
Merge pull request #20495 from Homebrew/keg_relocate_more
keg_relocate: add more /usr/local relocation pairs.
2025-08-18 15:34:14 +00:00
Mike McQuaid
8b0b8a8b1c
Merge pull request #20494 from Homebrew/keg_relocate_typed_strict
**/keg_relocate.rb: add set Sorbet `typed: strict`
2025-08-18 15:01:55 +00:00
Bo Anderson
b1b28fb2f4
formulary: forbid cache paths 2025-08-18 15:24:02 +01:00
Bevan Kay
9a60526c47
test/cask: speed up tests 2025-08-19 00:11:51 +10:00
Mike McQuaid
8a7cebfbb0
keg_relocate: add more /usr/local relocation pairs.
This should get more of the cases where we install things into
HOMEBREW_PREFIX but scoping them to the formula's name to avoid
accidental unneccessary relocations preventing `cellar :any` bottles.
2025-08-18 15:06:17 +01:00
Mike McQuaid
22fdb11e00
**/keg_relocate.rb: add set Sorbet typed: strict
Other files have been changed where required.
2025-08-18 15:02:15 +01:00
Carlo Cabrera
145c65d811
Merge remote-tracking branch 'origin/main' into stricter-brew-wrappers 2025-08-18 18:41:19 +08:00
Carlo Cabrera
83d8a4118b
Move all wrapper checks to utils/wrapper.sh 2025-08-18 18:29:52 +08:00
Bevan Kay
ee7b71935e
Merge pull request #20488 from Homebrew/rosetta-audit-fix
cask/audit: correctly filter artifact types in audit
2025-08-18 08:27:49 +00:00
Bevan Kay
869bdfa10a
cask/dsl: remap unsigned to fails_gatekeeper_check 2025-08-18 18:04:58 +10:00
Bevan Kay
6c567067fd
deprecate_disable: remap unsigned to fails_gatekeeper_check 2025-08-18 18:04:57 +10:00
Bevan Kay
97b1683466
cask: replace unsigned deprecation reason with fails_gatekeeper_check 2025-08-18 18:04:57 +10:00
Bevan Kay
c566ba00c7
cask/audit: correctly filter artifact types in test 2025-08-18 18:02:50 +10:00
Mike McQuaid
24057cc9a5
Merge pull request #20485 from SMillerDev/feat/audit/codeberg_audit
feat: audit codeberg repos
2025-08-18 07:50:25 +00:00
Mike McQuaid
de68a0c3a1
Merge pull request #20482 from Homebrew/dug/no-which_all
Remove unused 'which_all' Kernel ext
2025-08-18 07:49:13 +00:00
Mike McQuaid
4ae4bd491a
Merge pull request #20481 from Homebrew/dug/typed-ologger
Type remaining Kernel logging extensions
2025-08-18 07:48:55 +00:00