-
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
Failed update removes package of local library #2020
Comments
I've had the same problem and I consider this a show-stopper for chocolatey deployment. Running "choco upgrade all" every day/week/month will eventually remove dozens of packages. Did you ever find a solution to this? |
This appears to be a duplicate of #1548 The solution/workarround is to not press ctrl+c when updating. If you commonly have reasons to stop a package upgrade with ctrl+c, then lets work on seeing if those things can be fixed. |
@TheCakeIsNaOH Thanks, for that reference. This does indeed seem to be the same problem. However the title of issue #1548 is misleading. As @bcurran3 says, any failure during an upgrade will cause that package to be removed. This is not just a problem of people pressing CTRL+C at bad times. The upgrade can fail and cause the package to be removed for a whole host of reasons:
I'm honestly shocked that such a destructive bug has been left open for over 3 years on such an important project. It basically makes background updates too dangerous to do, which severely limits chocolatey's usefulness in a business setting, at least. @ferventcoder Do you know about this bug? It seems like it would be a problem for most of the use-cases described here. |
@OnBeyondBeing |
Duplicate of #619 |
What You Are Seeing?
if an update fails, the whole package get removed of the local installed library and will never be updated again (with "choco upgrade all")
What is Expected?
package stays in local library and will be updated the next time "choco upgrade all" gets called.
How Did You Get This To Happen? (Steps to Reproduce)
enter "choco upgrade all". press ctrl+c while downloading a new update for a package. enter "choco list --localonly". failed package won't be in list.
The text was updated successfully, but these errors were encountered: