Deprecated: Function get_magic_quotes_gpc() is deprecated in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 99

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 619

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1169

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176
8000 Deprecate `conflicts_with formula:` in Cask DSL. by MikeMcQuaid · Pull Request #20499 · Homebrew/brew · GitHub
Nothing Special   »   [go: up one dir, main page]

Skip to content

Conversation

MikeMcQuaid
Copy link
Member

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.

Fixes #16398

Copy link
Member
@Rylan12 Rylan12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. If it's not too challenging, maybe we should now prefer just conflicts_with "name" instead of conflicts_with cask: "name"

@MikeMcQuaid
Copy link
Member Author

@Rylan12 Thanks! I think it's fine as-is in case anyone wants to actually implement the other elements.

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.
@MikeMcQuaid MikeMcQuaid force-pushed the deprecate_conflicts_with_formula branch from addde1c to d13aaf9 Compare August 18, 2025 18:25
@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Aug 18, 2025
Merged via the queue into main with commit 3518983 Aug 18, 2025
36 checks passed
@MikeMcQuaid MikeMcQuaid deleted the deprecate_conflicts_with_formula branch August 18, 2025 19:05
@EricFromCanada
Copy link
Member

Just saw this while updating — potentially related?

==> Updated Homebrew from 2dfc1b4eb8 to 3518983f42.
Updated 2 taps (homebrew/core and homebrew/cask).
Error: Cask 'stolendata-mpv' definition is invalid: 'conflicts_with' stanza failed with: #<Cask::DSL::ConflictsWith:0x0000000108fd1458> is not related to #<UnboundMethod: Kernel#odeprecated(method, replacement=..., disable: ..., disable_on: ..., disable_for_developers: ..., caller: ...) /opt/homebrew/Library/Homebrew/extend/kernel.rb:148> - how did we get here?

@p-linnane
Copy link
Member

Yeah, also seeing this randomly when running commands, but haven't pinned down a reliable repro.

Error: Cask 'tailscale-app' definition is invalid: 'conflicts_with' stanza failed with: #<Cask::DSL::ConflictsWith:0x000000011e2fe710> is not related to #<UnboundMethod: Kernel#odeprecated(method, replacement=..., disable: ..., disable_on: ..., disable_for_developers: ..., caller: ...) /opt/homebrew/Library/Homebrew/extend/kernel.rb:148> - how did we get here?

@ewenmcneill
Copy link

FTR, I got this on wireshark-app when doing brew update the first time today, very similar to p-linnane's example above:

Error: Cask 'wireshark-app' definition is invalid: 'conflicts_with' stanza failed with: #<Cask::DSL::ConflictsWith:0x000000013f9aefd0> is not related to #<UnboundMethod: Kernel#odeprecated(method, replacement=..., disable: ..., disable_on: ..., disable_for_developers: ..., caller: ...) /usr/local/Homebrew/Library/Homebrew/extend/kernel.rb:148> - how did we get here?

After spending a while investigating it (and finding both this PR and the cleanup in Homebrew/homebrew-cask#224407), it no longer repeats when I try brew outdated or brew update again.

My guess is that either (a) the local cache or (b) the API feed hadn't quite updated before the "remove support for..." code update was merged. But after the errror run, the next run did have fresh metadata.

While the rationale for not waiting 2.5 months makes sense, it might have made sense to leave, eg, a week between removing the last references and removing support for conflics_with formula: in the code, so there was a greater chance users cached data would have been updated first, before the code that recognised it was gone.

If nothing else, it might have reduced confusion over a "how did we get here?` error :-)

Ewen

@bevanjkay
Copy link
Member
bevanjkay commented Aug 19, 2025

It seems like the issue here is that the Caskfiles in these isntances in brew --caskroom are now invalid, so when they are queued to be uninstalled we error out.

Replicated locally with docker-desktop;

brew reinstall docker-desktop 
==> Fetching downloads for: docker-desktop
✔︎ Cask docker-desktop (4.44.2,202017)
Error: Cask 'docker-desktop' definition is invalid: 'conflicts_with' stanza failed with: #<Cask::DSL::ConflictsWith:0x0000000107dd2d60> is not related to #<UnboundMethod: Kernel#odeprecated(method, replacement=..., disable: ..., disable_on: ..., disable_for_developers: ..., caller: ...) /opt/homebrew/Library/Homebrew/extend/kernel.rb:148> - how did we get here?

caarlos0 added a commit to goreleaser/goreleaser that referenced this pull request Aug 19, 2025
refs Homebrew/brew#20499
refs https://github.com/orgs/goreleaser/discussions/5995

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
@MikeMcQuaid
Copy link
Member Author

Let's continue discussion in the issue: #20516

@Homebrew Homebrew locked as resolved and limited conversation to collaborators Aug 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New and improved conflicts_with handling for formulae and casks

6 participants

0