Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Installing casks is supported only on macOS #13

Open
jat-spay opened this issue Mar 22, 2022 · 3 comments
Open

Error: Installing casks is supported only on macOS #13

jat-spay opened this issue Mar 22, 2022 · 3 comments

Comments

@jat-spay
Copy link

I get the error "Error: Installing casks is supported only on macOS" when executing chtf 1.1.6 whether in a zsh or bash shell on Linux Mint 20.3 Cinnamon

➜ ~ brew --version
Homebrew 3.4.3
Homebrew/homebrew-core (git revision 93ad38a33b3; last commit 2022-03-22)

@tmatilai
Copy link
Collaborator

Hi,

Yes, as far as I know, the Homebrew Casks are indeed not supported on Linux. And in any case the homebrew-terraforms repository doesn't have any support for Linux.

So it seems that the logic in chtf is flawed, as it only checks if brew command is available. I guess we should verify the OS being MacOS to use Homebrew.

In the meanwhile, you can enforce installation method by specifying an environment variable:

CHTF_AUTO_INSTALL_METHOD=zip

@jat-spay
Copy link
Author

OK I'll try this workaround, thanks a lot for the quick response!

@tmatilai
Copy link
Collaborator

Let’s keep the issue open. I think the logic should be improved.

@tmatilai tmatilai reopened this Mar 22, 2022
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

No branches or pull requests

2 participants