buo / homebrew-cask-upgrade

A command line tool for upgrading every outdated app installed by Homebrew Cask
MIT License
2.39k stars 89 forks source link

Upgrading cask: It seems there is already an App Suite at ... #235

Open SebDominguez opened 11 months ago

SebDominguez commented 11 months ago

Each time I try to update KiCad using homebrew I have this error:

➜  ~ brew upgrade kicad
==> Downloading https://formulae.brew.sh/api/formula.jws.json
##O=#    #
==> Downloading https://formulae.brew.sh/api/cask.jws.json
############################################################################################################################################### 100.0%
==> Upgrading 1 outdated package:
kicad 6.0.9-0 -> 7.0.6-0
==> Upgrading kicad
==> Downloading https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-universal-7.0.6-0.dmg
Already downloaded: /Users/sebastien/Library/Caches/Homebrew/downloads/ae85ec4f01f32c5e25531f4ee5f90aec7f21684b1a22faf60667d2a7ef0cd538--kicad-unified-universal-7.0.6-0.dmg
==> Purging files for version 7.0.6-0 of Cask kicad
Error: kicad: It seems there is already an App Suite at '/usr/local/Caskroom/kicad/6.0.9-0/KiCad'.

My workaround was to uninstall completely the older version and then reinstalling KiCad but I wonder if there is a proper way to upgrade this cask

➜  ~ brew update && brew update && brew doctor && brew cu
Already up-to-date.
Already up-to-date.
Your system is ready to brew.
Error: Unknown command: cu
ondrejfuhrer commented 8 months ago

Hey @SebDominguez

This is issue with the cask itself, doesn't really have anything to do with this repo. Even the command itself isn't the one provided here. Not sure if running brew cu for this makes a difference, but it's probably a problem with the cask itself. So not sure if there is any solution.