Skip to content

Uninstalling a package throws an error if the case of the nuspec file is different in lib as it is in the nupkg #1040

Description

@AdmiringWorm

What You Are Seeing?

When uninstalling a package where the id in lib\packageName.nuspec and the nuspec file inside lib\packageName.nupkg have different casing, the uninstallation process throws an error
reporting that the lib\PackageName path was not found.

It does not matter if the uninstall script is run, or if it is skipped.

What is Expected?

No error even if the casing is different

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

I'll give an example with the InnoSetup package.
The casing on the website uses upper case I and S, while when I pushed
the package with all lowercase.
When that package is then installed, the casing of the id element in the nuspec file inside the downloaded nupkg file and the nuspec file in the lib folder are different causing the error of a path not found.

Output Log

https://gist.github.com/AdmiringWorm/bac515b64b3d4e22f5eba385b07efb5c

Tested with choco versions

choco 0.10.3 (Error occurred)
choco 0.10.2 (Error occurred)
choco 0.10.1 (No Error)

Metadata

Metadata

Assignees

No one assigned

    Labels

    0 - BacklogIssue is accepted, but is not ready to be worked on or not in current sprint.BugIssues where something has happened which was not expected or intended.Priority - HighRepresent high priority tickets - things that must be addressed soon.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions