Skip to content

Fix conflicts_with stanza odeprecated method call issue#20517

Merged
MikeMcQuaid merged 1 commit intomainfrom
copilot/fix-20516
Aug 19, 2025
Merged

Fix conflicts_with stanza odeprecated method call issue#20517
MikeMcQuaid merged 1 commit intomainfrom
copilot/fix-20516

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Aug 19, 2025

The conflicts_with stanza was failing when deprecated keys (like formula:) were used, causing cask operations to crash with the error:

'conflicts_with' stanza failed with: #<Cask::DSL::ConflictsWith:0x...> is not related to #<UnboundMethod: Kernel#odeprecated...> - how did we get here?

This issue was introduced in PR #20499 when deprecation warnings were added for certain conflicts_with keys. The ConflictsWith class (which inherits from SimpleDelegator) was calling odeprecated directly, but the method wasn't accessible in its scope.

The fix explicitly calls Kernel.odeprecated instead of relying on method resolution, allowing deprecated keys to show proper warnings without crashing:

# Before (broken)
odeprecated "conflicts_with #{key}:"

# After (fixed)  
Kernel.odeprecated "conflicts_with #{key}:"

This ensures that casks using deprecated conflicts_with syntax continue to work while showing appropriate deprecation warnings.

Fixes #20516.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • brew.sh
    • Triggering command: /home/linuxbrew/.linuxbrew/opt/curl/bin/curl --tlsv1.3 --head REDACTED (dns block)
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --connect-timeout 15 --max-time 25 --retry 3 --retry-max-time 25 --dump-header - --output /var/tmp/20250819-17368-kothro --location REDACTED (dns block)
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --connect-timeout 15 --max-time 25 --retry 3 --retry-max-time 25 --dump-header - --output /var/tmp/20250819-17368-dfjstv --location REDACTED (dns block)
  • https://api.github.com/graphql
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --data @/var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_post20250819-17368-kf1s3t --request POST --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-5xylpn (http block)
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --data @/var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_post20250819-17368-jhc9di --request POST --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-8pgdzw (http block)
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --data @/var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_post20250819-17368-g8slqc --request POST --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-3yvyw4 (http block)
  • https://api.github.com/orgs/Homebrew/public_members
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-chy956 (http block)
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-oosm4u (http block)
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-lt3w9b (http block)
  • https://api.github.com/repos/Homebrew/homebrew-core
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-49962-lnqfmy (http block)
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-50309-bev42h (http block)
  • https://api.github.com/repos/Homebrew/homebrew-core/actions/workflows/tests.yml
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-k2h7t8 (http block)
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-myc840 (http block)
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-okdetm (http block)
  • https://api.github.com/repos/Homebrew/homebrew-core/actions/workflows/triage.yml
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-dauhe6 (http block)
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-h568jm (http block)
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-mf6cag (http block)
  • https://api.github.com/repos/Homebrew/homebrew-foo
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-50309-163i6i (http block)
  • https://api.github.com/repos/Homebrew/homebrew-test-bot
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17367-arjizb/temp/github_api_headers20250819-17367-wlcfuf (http block)
  • https://api.github.com/repos/Homebrew/legacy-homebrew/pulls/50678
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-zceb20 (http block)
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-vjo4kk (http block)
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-wwe70t (http block)
  • https://api.github.com/repos/cask/cask/license
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-pkrskb (http block)
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-dz3m0l (http block)
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-4bplgk (http block)
  • https://api.github.com/repos/spdx/license-list-data/releases/latest
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17370-msfsbk/temp/github_api_headers20250819-17370-8jlmrw (http block)
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17370-msfsbk/temp/github_api_headers20250819-17370-23a0dd (http block)
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17370-msfsbk/temp/github_api_headers20250819-17370-uijqwt (http block)
  • https://api.github.com/search/issues
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-vvlvie (http block)
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-bl2tzp (http block)
    • Triggering command: /bin/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.6.4-82-g3fbce1b (Linux; x86_64 Ubuntu 24.04.2 LTS) curl/8.5.0 --header Accept-Language: en --retry 3 --location REDACTED --header Accept: application/vnd.github&#43;json --write-out %{http_code} --header Authorization: token ghs_kdH17Nt85TMo4amrQyUChS6SRxqSF33JBBAQ --header X-GitHub-Api-Version:2022-11-28 --dump-header /var/tmp/homebrew-tests-20250819-17368-w14oiy/temp/github_api_headers20250819-17368-55z4lr (http block)
  • svn.apache.org
    • Triggering command: /home/linuxbrew/.linuxbrew/bin/svn ls REDACTED --depth empty (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Cask docker-desktop definition invalid: conflicts_with stanza failed Fix conflicts_with stanza odeprecated method call issue Aug 19, 2025
Copilot AI requested a review from MikeMcQuaid August 19, 2025 15:53
@MikeMcQuaid MikeMcQuaid marked this pull request as ready for review August 19, 2025 16:02
@MikeMcQuaid MikeMcQuaid enabled auto-merge August 19, 2025 16:07
@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Aug 19, 2025
Merged via the queue into main with commit eae11bf Aug 19, 2025
36 checks passed
@MikeMcQuaid MikeMcQuaid deleted the copilot/fix-20516 branch August 19, 2025 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cask docker-desktop definition invalid: conflicts_with stanza failed

3 participants