Skip to content

Cannot uninstall/upgrade casks installed with removed 'appcast' method #21602

@ddavila-TSC-SSIC

Description

@ddavila-TSC-SSIC

Description

brew upgrade, brew uninstall, and brew info all fail for casks that were originally installed with the now-removed appcast DSL method. This makes it impossible to manage (upgrade or uninstall) these casks.

Reproduction

$ brew upgrade
Error: Unexpected method 'appcast' called on Cask qlimagesize.

$ brew uninstall --cask --force qlimagesize
Error: Unexpected method 'appcast' called on Cask qlimagesize.

$ brew info --cask qlimagesize
Error: Unexpected method 'appcast' called on Cask qlimagesize.

The same errors occur for qlcolorcode.

Expected behavior

Homebrew should gracefully ignore or handle the removed appcast method in cached/receipt cask definitions so that users can at least uninstall orphaned casks.

System configuration

HOMEBREW_VERSION: 5.0.14
macOS: 26.3-x86_64
Homebrew Ruby: 3.4.8
Xcode: 26.2

Affected casks

  • qlimagesize 2.6.1 (removed from homebrew-cask, still in /usr/local/Caskroom)
  • qlcolorcode 2.1.0 (deprecated in homebrew-cask, upgrade to 4.1.0 fails)

Both casks were installed before appcast was removed from the Cask DSL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedWe want help addressing this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions