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

Is "Cask for * is already installed" really an error ? #1347

Closed
MoOx opened this issue Oct 29, 2013 · 4 comments · Fixed by #4787
Closed

Is "Cask for * is already installed" really an error ? #1347

MoOx opened this issue Oct 29, 2013 · 4 comments · Fixed by #4787

Comments

@MoOx
Copy link
Contributor

MoOx commented Oct 29, 2013

I'm using cask in my bootstrap script I run periodically on differents machines to sync them.
So I got the "Error: Cask for * is already installed. Use --force to install anyways." often.
Is this really considered as an error ? I think it's should be more a Warning.
Or is there a way to make those error silent ? I don't find anything in the USAGE.md

Thanks !

@phinze
Copy link
Contributor

phinze commented Oct 29, 2013

Good point! It's probably more of a warning. And also could probably use a --quiet flag or something to hush things down a bit. Will follow up here when this has been addressed.

@kud
Copy link
Contributor

kud commented Oct 30, 2013

For the moment, I use my function:

# easy cask install function
function caskinstall() {
  brew cask install "${@}" 2> /dev/null
}

but it won't display any errors. Fortunately for me I DO NOT MAKE ANY ERROR.

@rmchale
Copy link

rmchale commented Jun 9, 2014

I have cask installed on two machines one it appears as a warning the other an error. I don't believe I did anything different.

@rmchale
Copy link

rmchale commented Jun 9, 2014

I have upgraded to v0.36.0 from 35. It now shows "Error" consistently on both machines. Is this the expected functionality?

rmchale referenced this issue in rolandwalker/homebrew-cask Jun 9, 2014
separately; it is already descended from CaskError
rolandwalker added a commit to rolandwalker/homebrew-cask that referenced this issue Jun 10, 2014
Including the case where a Cask is already installed.
Always continue installing when multiple Casks are specified,
only raising an exception at the end of the command (if some
portion of the attempted install actions failed).  Never
exit with an error code if "already installed" was the only
problem seen during the run.

Also tweak error messages.

Fixes Homebrew#1347, Homebrew#2677, Homebrew#4785

Required disabling two tests regarding suggestions on Cask
spelling errors.
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants