Yleisradio / homebrew-terraforms

Homebrew repository for a Terraform version switcher and all Terraform versions
MIT License
180 stars 31 forks source link

homebrew deprecates cask usage #71

Closed spanky-medal closed 3 years ago

spanky-medal commented 3 years ago

https://github.com/Homebrew/discussions/discussions/340

$ chtf 0.12.30
chtf: Installing Terraform version 0.12.30
Error: Calling brew cask install is disabled! Use brew install [--cask] instead.

Thanks for all your effort into this project, I love it!

tmatilai commented 3 years ago

Hi Tom,

This should be fixed in chtf v2.1.1 with Yleisradio/chtf#8. brew upgrade [chtf] should do the trick.

Thanks for your thanks! 😃

spanky-medal commented 3 years ago

Ah, thanks. I had upgraded but not re-sourced my .zshrc so it was still symlinked somehow:

$ chtf --version
chtf: 1.4.0

$ brew upgrade chtf
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 3 taps (homebrew/core, homebrew/cask and homebrew/cask-fonts).
==> Updated Formulae
Updated 87 formulae.
==> New Casks
operator                                                                                                silicon
==> Updated Casks
Updated 42 casks.

Warning: yleisradio/terraforms/chtf 2.1.1 already installed

$ source ~/.oh-my-zsh/custom/spanky.zsh
$ chtf --version
chtf: 2.1.1
tmatilai commented 3 years ago

Ah yeah, good point. Bash/zsh version has to be loaded again, as the functions are stored in the shell session. (The fish version uses the shell's auto loading since v2.1.0)