Mike McQuaid
5f4e42a2c8
Merge pull request #20656 from Homebrew/copilot/fix-cask-rename-issue-linux
...
Fix Cask artifact rename operation on Linux by making xattr metadata no-op
2025-09-12 08:49:14 +00:00
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
copilot-swe-agent[bot]
6297f98d06
Fix symlinked tap loading issue in cask loader
...
Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com>
2025-09-12 09:02:43 +01: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
Bevan Kay
69145c911d
cask/dsl/rename: add api support
2025-08-19 11:47:15 +10:00
Bevan Kay
9a60526c47
test/cask: speed up tests
2025-08-19 00:11:51 +10:00
copilot-swe-agent[bot]
d0ad96a9b3
Fix audit_signing to check quarantine availability and attributes
...
Co-authored-by: bevanjkay <40621599+bevanjkay@users.noreply.github.com>
2025-08-14 19:09:57 +10:00
Mike McQuaid
7dd47ca89a
Merge pull request #20421 from Homebrew/cask-rename-stanza
...
cask/dsl/rename: add new `rename` dsl
2025-08-14 08:51:45 +00:00
Bevan Kay
9cb2b65319
cask/dsl/rename: add new rename
dsl
2025-08-12 23:24:20 +10:00
copilot-swe-agent[bot]
cbe347782c
Implement formula conflict detection for cask binary artifacts
...
While we're at it, update copilot instructions.
Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com>
2025-08-12 10:42:51 +01:00
Rylan Polster
8aabee74a6
Store cask API data for use in to_hash_with_variations
2025-08-11 22:06:07 -04: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
e10d4c43c2
Optionally use DownloadQueue for reinstall, upgrade.
...
Follow up on `DownloadQueue` for download concurrency on `brew fetch`
and `brew install` to also add support for `brew reinstall` and
`brew upgrade`.
This required a fair bit of refactoring to make this work so I've also
made `install.rb`, `reinstall.rb` and `upgrade.rb` `typed: strict` to
add some extra guardrails from Sorbet here.
Co-authored-by: Carlo Cabrera <github@carlo.cab>
2025-07-24 15:41:03 +01:00
botantony
5450e730ed
Audit no_autobump!
reason for new packages
...
Signed-off-by: botantony <antonsm21@gmail.com>
2025-07-17 17:12:33 +02:00
Patrick Linnane
4513a43d53
Fix RuboCop failures.
...
Co-authored-by: Patrick Linnane <patrick@linnane.io>
Co-authored-by: Carlo Cabrera <github@carlo.cab>
Co-authored-by: Thierry Moisan <thierry.moisan@gmail.com>
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2025-07-14 19:12:38 +01:00
Mike McQuaid
55f65ec375
audit: ensure that official formula and cask names don't conflict.
...
Co-authored-by: Eric Knibbe <enk3@outlook.com>
2025-06-23 16:08:13 +01:00
Patrick Linnane
989032b703
test/cask/reinstall_spec: remove confusing zap
` messaging
...
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2025-06-17 21:15:49 -07:00
Rylan Polster
54b349bb89
Revert "Only generate cask variations for supported macOS configurations"
2025-06-12 11:53:01 -04:00
Rylan Polster
e5667cb5ae
Only generate cask variations for supported macOS configurations
2025-06-11 20:30:14 -04:00
Rylan Polster
b242abfdf0
Fix cask API tests
2025-06-11 19:44:26 -04:00
Mike McQuaid
e9f55a8f71
tests: default to API mode enabled.
...
While we're here, also add `brew tests --no-parallel` which I relied
on during testing.
Pretty much anywhere we rely on a stubbed formula on disk to work: we
need to disable the API.
2025-06-10 15:53:27 +01:00
Bo Anderson
b8e2cddbbd
Preliminary macOS 26 (Tahoe) support
2025-06-09 21:41:49 +01:00
Patrick Linnane
c6a2fa335d
brew style --fix
2025-05-05 14:35:08 -07:00
botantony
9ff2abbcdf
no_autobump!: rename no_autobump_msg
field to no_autobump_message
...
Signed-off-by: botantony <antonsm21@gmail.com>
2025-04-29 18:04:59 +02:00
botantony
1fcacdc2dc
formula/cask DSL: add no_autobump!
method
...
Signed-off-by: botantony <antonsm21@gmail.com>
2025-04-29 18:04:59 +02:00
Bo Anderson
3049d21ca0
test/cask/dsl/container_spec: fix test failure with Ruby 3.4
2025-04-16 17:10:10 +01:00
Douglas Eichelberger
c9a6bd6438
Merge pull request #19475 from Homebrew/typed-system-command
...
refactor: Enable strict typing in download_strategy
2025-03-14 22:34:17 +00:00
Sean Molenaar
756ba2ba59
Add Linux dependency check in cask.rb
2025-03-13 21:47:17 +01:00
Douglas Eichelberger
c48870080e
Incorporate feedback
2025-03-13 11:59:31 -07:00
Sean Molenaar
fc319f6793
feat: add tests for completion stanzas
2025-03-05 20:12:18 +01:00
apainintheneck
eead014ceb
cask/cask: remove unnecessary tests
...
The `compact:` option got removed from `Cask::Cask#artifacts_list`
in 042d6cc97e886c6f2817500083cda6c856b5350a.
2025-02-06 20:13:19 -08:00
Mike McQuaid
f84082963d
Merge pull request #19009 from Homebrew/fewer_actions_warnings
...
cask: fewer GitHub Actions warnings.
2024-12-30 13:07:02 +00:00
Mike McQuaid
d490692b26
cask: fewer GitHub Actions warnings.
...
- don't care about no checksums being defined for official casks
- don't complain about Gatekeeper being disabled on GitHub Actions as
it's been globally disabled for the team
2024-12-30 12:55:30 +00:00
Rui Chen
79ed2c6e61
chore: fix typos
...
Signed-off-by: Rui Chen <rui@chenrui.dev>
2024-12-28 15:53:35 -05:00
apainintheneck
9c0987c71c
cask/info: update tests
2024-12-12 00:01:30 -08:00
Douglas Eichelberger
3a4243742f
Remove OpenStruct from CLI::Args
2024-12-08 10:27:49 -08:00
Sam Ford
79e20b3512
Standardize livecheck
block language formatting
2024-12-02 10:13:04 -05:00
Bo Anderson
7308c105a4
cask: try fix a couple of permission edge cases under multi-user
2024-11-25 17:36:47 +00:00
hyuraku
c60e80f0a9
remove Cask::Config.explicit_s spec
2024-10-30 22:20:56 +09:00
Bevan Kay
5a39e1f238
test/cask/audit_spec: audit deprecate/disable reasons
2024-09-30 23:11:44 +10:00
Mike McQuaid
a6954f26a5
Merge pull request #18435 from Homebrew/temp-symlink-test-fix
...
test/cask/utils_spec: fix test failure when HOMEBREW_TEMP is a symlink
2024-09-27 08:42:11 +01:00
Carlo Cabrera
fe1f330e60
Revert "Deprecate installing casks/formulae from paths."
2024-09-27 10:17:04 +08:00
Bo Anderson
fe0505d492
test/cask/utils_spec: fix test failure when HOMEBREW_TEMP is a symlink
2024-09-27 03:02:26 +01:00
Mike McQuaid
bbdea29a0f
Deprecate installing casks/formulae from paths.
...
We've already disabled installing casks/formulae from URLs and we
regularly tell people not to install from paths so let's just deprecate
this behaviour entirely.
Even Homebrew developers do not need to work this way.
2024-09-26 20:25:07 +01:00
Mike McQuaid
f0653348c4
Merge pull request #18407 from Homebrew/deprecate_cask_url_block
...
cask/url: deprecate `url do` blocks.
2024-09-26 16:16:40 +01:00
Mike McQuaid
5b46ec70e9
cask/url: deprecate url do
blocks.
...
We're removing these in
https://github.com/Homebrew/homebrew-cask/pull/186501
so let's deprecate them too.
2024-09-26 14:05:25 +01:00
Case Taintor
31c560e578
Improve cask --adopt to only care about the installed version if auto_update is false
2024-09-26 11:59:40 +02:00
Mike McQuaid
94416e82f0
Add new odeprecated, odisabled, remove disabled code.
...
Prepare the usual deprecation cycle for Homebrew 4.4.0.
2024-09-24 10:15:34 +01:00
Rylan Polster
b1db0ee290
Rename load method when preferring installed casks
2024-09-10 13:54:12 -04:00