-
Notifications
You must be signed in to change notification settings - Fork 904
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
Allow upgrade to always install missing packages #300
Comments
The intent behind `choco upgrade git` issued against a machine is that I want the latest version of git installed on that machine. Whether that is upgrade or install doesn't really matter. On a machine I issue the command `choco install git`, I just want to ensure git is installed. If instead I issue the command `choco upgrade git` on a machine, the end state I want for the machine is to have it installed and up to date on the latest version of git. Whether git was there before or not is not something I'm concerned with. The end state is that I want git on the most up to date version based on Chocolatey.
When upgrading, provide `--fail-on-not-installed` option to fail if not installed so that command can be strictly for upgrades.
* stable: (doc) attempt to document scenarios every run (doc) update scenarios (scenario) upgrade cleanup / add (GH-300) Option to fail if not installed (scenario) upgrading package that is not installed (posh)(log) note override before running (GH-296) add missing variable (GH-300) Allow upgrade to always install missing
Keep up the good work! Choco is awesome! |
Does this mean that currently there is no way to quickly assure that latest versions are installed? If upgrade always (re)installs, this may be a very slow operations. |
@ssbarnea no idea what you mean.
Upgrade only installs newer versions if they are available, and will only install a missing install if you call upgrade on a non-existing package. So not really sure what you are stating here. |
Also right now if you call upgrade on an non-existing package, it will warn on a deprecation notice but install it. This issue is about removing the deprecation warning and allowing the behavior |
The intent behind
choco upgrade git
issued against a machine is that I want the latest version of git installed on that machine. Whether that is upgrade or install doesn't really matter.On a machine I issue the command
choco install git
, I just want to ensure git is installed. If instead I issue the commandchoco upgrade git
on a machine, the end state I want for the machine is to have it installed and up to date on the latest version of git. Whether git was there before or not is not something I'm concerned with. The end state is that I want git on the most up to date version based on Chocolatey.The text was updated successfully, but these errors were encountered: