6224 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
3e413b4521
Fix Cask artifact rename operation on Linux by making xattr metadata no-op
Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com>
2025-09-12 09:30:17 +01:00
Mike McQuaid
efc036f75a
Merge pull request #20613 from Homebrew/dug/typed-system-command
Enable strict typing in SystemCommand
2025-09-08 07:32:58 +00:00
Eric Knibbe
1c4cb6936e
command options: various --eval-all fixes 2025-09-05 08:53:44 +01:00
Douglas Eichelberger
fb6c51da07
Enable strict typing in SystemCommand 2025-09-02 10:26:40 -07:00
Bevan Kay
25ed81f14b
test/dev-cmd/unpack_spec: fix test 2025-09-02 15:55:09 +08:00
copilot-swe-agent[bot]
ac6f770cdc
Address review feedback: fix description, use if/else, enable quarantine, improve fetch efficiency, and use local test cask
Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com>
2025-09-02 15:55:08 +08:00
Patrick Linnane
45a2ef9159
unpack_spec: final newlines are hard for AI 2025-09-02 15:55:08 +08:00
copilot-swe-agent[bot]
88b7d2900a
Address fetching consistency concern and fix cask path handling
Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com>
2025-09-02 15:55:07 +08:00
copilot-swe-agent[bot]
a9cd0c4b5d
Add cask support to brew unpack command
Co-authored-by: p-linnane <105994585+p-linnane@users.noreply.github.com>
2025-09-02 15:55:07 +08:00
Rylan Polster
9c68b548e9
Include aliases and renames in FormulaStub 2025-08-26 17:02:57 -04:00
Issy Long
fee0e1543f
Merge pull request #20583 from Homebrew/encourage-adding-to-head-branch-allowlist
Encourage using a default branch for HEAD core formulae
2025-08-26 13:02:02 +00:00
Issy Long
577aec3f60
Encourage using a default branch for HEAD core formulae
- We don't mind if third-party taps have non-default HEAD branches - they have their reasons.
- But we want -core to be consistent, hence why there's the allowlist file.
- https://github.com/Homebrew/brew/pull/20402#discussion_r2292366323
2025-08-26 14:26:11 +02:00
Rylan Polster
9a93b15a7a
Fix WriteMkpathExtension tests 2025-08-26 03:12:40 -04:00
Rylan Polster
763531e821
Extract Pathname refinement from Formulary 2025-08-25 04:08:42 -04:00
Mike McQuaid
0eb0c11dc3
Merge pull request #20563 from Homebrew/dug/formula-support-rename
Rename formula_support to keg_only reason, refactor slightly
2025-08-25 07:31:51 +00:00
Rylan Polster
9153a22fc9
Fix utils/autoremove tests 2025-08-25 01:07:53 -04:00
Douglas Eichelberger
6a25de5daf
Rename formula_support to keg_only reason, refactor slightly 2025-08-24 14:57:19 -07:00
Mike McQuaid
74ec33d3d2
Merge pull request #20547 from Homebrew/mcp_dev_cmds
Improve MCP server with development commands.
2025-08-23 19:57:46 +00:00
Bevan Kay
2b151d30e7
rubocop: replace :unsigned automatically 2025-08-23 13:13:48 +10:00
Mike McQuaid
addff82ff4
Improve MCP server with development commands.
Add these extra commands, better argument handling, progress reporting
(for long-running commands), some basic refactoring and mention these
commands and flags in the Copilot instructions.
2025-08-22 15:51:14 +01:00
Mike McQuaid
3bbff84ff1
Merge pull request #20525 from Homebrew/utils_output
Move `o*` output methods to `Utils::Output`
2025-08-22 09:10:29 +00:00
Ruoyu Zhong
625a6c08eb
test/cli/parser: add one more test 2025-08-22 02:04:55 +08:00
Ruoyu Zhong
33a2f410af
cli/parser: convert switch env values to boolean
Since switch values are boolean, we should be returning the environment
variable's presence instead of its string value.

Fixes #20531.
2025-08-22 01:59:54 +08:00
Mike McQuaid
a1f112f3fe
Move o* output methods to Utils::Output
This reduces the surface area of our `Kernel` monkeypatch and removes
the need to `include Kernel` in a bunch of modules.

While we're here, also move `Kernel#require?` to `Homebrew` and fully
scope the calls to it.
2025-08-20 19:20:19 +01:00
copilot-swe-agent[bot]
8b10231085
Fix conflicts_with stanza odeprecated method call issue
Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com>
2025-08-19 17:07:37 +01:00
copilot-swe-agent[bot]
7f6b4bee93
Implement SHA256 architecture audit as RuboCop rule
Co-authored-by: p-linnane <105994585+p-linnane@users.noreply.github.com>
Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com>
2025-08-19 14:45:01 +01: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
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
b45f0ecd2e
test/cmd/update-report: fix test 2025-08-19 14:59:40 +08:00
Bevan Kay
69145c911d
cask/dsl/rename: add api support 2025-08-19 11:47:15 +10: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
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
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
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
Bevan Kay
97b1683466
cask: replace unsigned deprecation reason with fails_gatekeeper_check 2025-08-18 18:04:57 +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
Bo Anderson
b30d13c3ef
formulary: do not allow using the cache if explicitly forbidding paths 2025-08-18 05:33:02 +01:00
Sean Molenaar
b19ad2e796 feat: audit codeberg repos 2025-08-17 17:08:33 +02:00
Douglas Eichelberger
793da6e0be
Remove unused 'which_all' Kernel ext 2025-08-16 16:18:26 -07:00
Eric Knibbe
827480f06b
messages/comments: wording fixes 2025-08-16 00:57:59 -04:00
Eric Knibbe
e021953db4
messages/comments: formatting fixes 2025-08-16 00:54:50 -04:00
Mike McQuaid
0d4f3419ac
Merge pull request #20446 from Homebrew/copilot/fix-20427
Fix `brew upgrade` not linking newer versions when upgrade interrupted
2025-08-15 18:34:36 +00:00
copilot-swe-agent[bot]
42d4f3d8b9
Upgrade unlinked/unpinned kegs
Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com>
2025-08-15 19:18:52 +01:00
Mike McQuaid
523d743705
Merge pull request #20475 from Homebrew/better_formulary_debugging
formulary: provide ref and realpath when rejecting path.
2025-08-15 18:08:28 +00:00
Mike McQuaid
640f16860b
formulary: provide ref and realpath when rejecting path.
This should help further debugging.

Also, no need to formulae that aren't `*.rb` files as they'll be rejected
later anyway (and already were before we changed the
`Homebrew::EnvConfig.forbid_packages_from_paths?` defaults).
2025-08-15 17:52:56 +01:00
copilot-swe-agent[bot]
c3934c8d8b
Fix concurrent download error for duplicate URLs
Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com>
2025-08-15 17:13:30 +01:00
Ruoyu Zhong
b0b8e23856
Merge pull request #20463 from Homebrew/gnu-mirror-audit
Re-enable GNU mirror audit
2025-08-14 17:13:06 +00:00
Ruoyu Zhong
3f4d19e87b
Re-enable GNU mirror audit
Follow-up to Homebrew/brew#20461 and #233493.
2025-08-14 23:50:53 +08:00
Carlo Cabrera
5e17e569b3
Merge pull request #20462 from Homebrew/gnu-livecheck
livecheck/strategy/gnu: use `ftpmirror.gnu.org` too
2025-08-14 15:22:55 +00:00