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

Allow upgrade to always install missing packages #300

Closed
ferventcoder opened this issue Jun 1, 2015 · 4 comments
Closed

Allow upgrade to always install missing packages #300

ferventcoder opened this issue Jun 1, 2015 · 4 comments

Comments

@ferventcoder
Copy link
Member

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.

@ferventcoder ferventcoder self-assigned this Jun 1, 2015
@ferventcoder ferventcoder added this to the 0.9.9.7 milestone Jun 1, 2015
@ferventcoder ferventcoder changed the title Allow upgrade to always install Allow upgrade to always install missing packages Jun 1, 2015
ferventcoder added a commit that referenced this issue Jun 1, 2015
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.
ferventcoder added a commit that referenced this issue Jun 1, 2015
When upgrading, provide `--fail-on-not-installed` option to fail if not
installed so that command can be strictly for upgrades.
ferventcoder added a commit that referenced this issue Jun 1, 2015
* 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
@bean5
Copy link

bean5 commented Jun 5, 2015

Keep up the good work! Choco is awesome!

@ssbarnea
Copy link

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.

@ferventcoder
Copy link
Member Author

@ssbarnea no idea what you mean.

Does this mean that currently there is no way to quickly assure that latest versions are installed?

choco upgrade all

If upgrade always (re)installs, this may be a very slow operations.

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.

@ferventcoder
Copy link
Member Author

Does this mean that currently there is no way to quickly assure that latest versions are installed?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
@ferventcoder @ssbarnea @gep13 @bean5 and others