buo / homebrew-cask-upgrade

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

Not work for ghidra #204

Closed littleneko closed 1 year ago

littleneko commented 2 years ago

I use brew cu -a to upgrade all my cask apps, but it not work with ghidra:

image

if i enter 'Y' and after upgraded, the ghidra app is disappeared. All files in /usr/local/Caskroom/ghidra are disappeared.

ondrejfuhrer commented 2 years ago

Hey @littleneko , have you checked any error messages after the installation? This is most probably not an issue with this tool but with brew itself (or the cask).

If you run brew reinstall --cask ghidra manually, do you get any errors?

littleneko commented 2 years ago

Hey @littleneko , have you checked any error messages after the installation? This is most probably not an issue with this tool but with brew itself (or the cask).

If you run brew reinstall --cask ghidra manually, do you get any errors?

Hey @ondrejfuhrer I run brew install --cask ghidra, it show me "Warning: Cask 'ghidra' is already installed.".

But, if i run brew reinstall --cask ghidra, i got the error:

==> Uninstalling Cask ghidra
Error: No such file or directory @ rb_file_s_rename - (/usr/local/Caskroom/ghidra/10.1.3-20220421, /usr/local/Caskroom/ghidra/10.1.3,20220421)
ondrejfuhrer commented 2 years ago

I guess there was something wrong going when installing the update. I would suggest following steps

  1. Try to uninstall (brew uninstall ghidra) - might fail
  2. Cleanup any residue by deleting the caskroom folder rm -fr /usr/local/Caskroom/ghidra )
  3. install the app again brew install --cask ghidra

It seems that there were something weird going on with the version itself which broke your caskroom. the above might help 🙂

ondrejfuhrer commented 1 year ago

Assuming the above suggestions worked and therefore I'm closing this issue. If there is any followup, feel free to reopen it.