-
Notifications
You must be signed in to change notification settings - Fork 109
Module Manifest/Nuspec Version Mismatch #161
Copy link
Copy link
Open
Labels
0 - TriagingIssue is accepted, but a milestone has yet to be added for the issue.Issue is accepted, but a milestone has yet to be added for the issue.BugIssues where something has happened which was not expected or intended.Issues where something has happened which was not expected or intended.Up For GrabsIssues that are available by the community to work on.Issues that are available by the community to work on.
Metadata
Metadata
Assignees
Labels
0 - TriagingIssue is accepted, but a milestone has yet to be added for the issue.Issue is accepted, but a milestone has yet to be added for the issue.BugIssues where something has happened which was not expected or intended.Issues where something has happened which was not expected or intended.Up For GrabsIssues that are available by the community to work on.Issues that are available by the community to work on.
Describe the bug
Installing cChoco outside of the PSGallery results in an invalid module being installed
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The Module imports with the proper version and is recognized as a valid DSCResource
Software (please complete the following information):
Additional context
This seems to be a result of the NuGet standards omitting the 4th version identifier if it is 0. The result is the wrong path being created when installing the module and then when importing the path and module manifest versions are not matched. If the Module Manifest is modified to version 2.5.0 or the path is updated to 2.5.0.0 the module imports as expected. A potential fix would be to limit the module manifest version to major.minor.patch if the revision value is 0, or increment the revision value to major.minor.patch.1 as the minimum version at build time.
https://docs.microsoft.com/en-us/nuget/concepts/package-versioning#normalized-version-numbers
Screenshots
Results From Internal Repository

Results from PSGallery

Import with Updated Module Manifest

Current Module Manifest

Current Nuspec
