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

Forced uninstall of package and dependencies w/ meta package dependency throws error #1074

Open
dragon788 opened this issue Dec 2, 2016 · 4 comments

Comments

@dragon788
Copy link
Contributor

What You Are Seeing?

Attempting to force uninstall a package and the dependency(ies) it pulled in fails if one of the dependencies is a meta package. This doesn't seem to fail if not forced.

What is Expected?

Uninstalling a package with --force-dependencies removes the meta package and the packages it pulled in, AND the dependencies of the package it pulled in without exploding.

How Did You Get This To Happen? (Steps to Reproduce)

Can be reproduced via this Gist.
https://gist.github.com/7a7524ddc2946b2b5d114ce615465697

Output Log

I built the Gist on AppVeyor to make sure it wasn't just my local "Chocolatey Test Environment" VM, this is like a gazillion lines, so may take a bit to load.
https://ci.appveyor.com/project/dragon788/7a7524ddc2946b2b5d114ce615465697/build/1.0.2

The failure occurs right after this:
https://ci.appveyor.com/project/dragon788/7a7524ddc2946b2b5d114ce615465697/build/1.0.2#L337

This is the beginning of the debug output, "here be dragons".
https://ci.appveyor.com/project/dragon788/7a7524ddc2946b2b5d114ce615465697/build/1.0.2#L641

Here is the meat (what little there is) of the failure, this is the uninstall of the package and its dependencies.
https://ci.appveyor.com/project/dragon788/7a7524ddc2946b2b5d114ce615465697/build/1.0.2#L2878

@ferventcoder
Copy link
Member

This certainly is something we'd want to fix.

@ferventcoder
Copy link
Member

I'm guessing the relevant part is

javaruntime v8.0.101 (forced)
 Skipping auto uninstaller - No registry snapshot.
elasticsearch not uninstalled. An error occurred during uninstall:
 Could not find a part of the path 'C:\ProgramData\chocolatey\lib\javaruntime\javaruntime.nupkg'

Which makes me think it is #1040

@dragon788
Copy link
Contributor Author

@ferventcoder Yeah, I looked at #1040 when you mentioned it on Gitter and as far as I can tell from the logs the casing isn't actually different here, but it's the same error message. Perhaps there is too strict of an equality comparison happening on the strings and it is blowing up in some way?

@ferventcoder
Copy link
Member

That's kind of what I was thinking.

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

2 participants