-
Notifications
You must be signed in to change notification settings - Fork 52
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
Release 4.2.0.0 has incorrect nuspec configuration #178
Comments
Hi @mrhockeymonkey - Leaving off the trailing 0 in the nuspec is actually something Nuget does rather than something we do during the publish process. However, this shouldn't cause a problem when using I gave it a try myself and it all looks OK: How did you install the module? |
Indeed you are correct it looks like I don't have the issue when I try from PSGallery on my home laptop. At work we use Artifactory to cache PSGallery modules for internal use (we have no direct internet access). Artifactory is the equivalent of a standard NuGet repository. I'll test this by spinnig up a separate NuGet server, not Artifactory, and see what happens. There is a chance it's Artifactory at fault. |
Hi @mrhockeymonkey - I use Sonatype Nexus at work which is similar to JFrog Artifactory and we use it to proxy the modules. However, we're using it as a "proxy" rather than a mirror. You could use PSGallery on a machine connected to the internet to pull down the modules using |
This issue has been automatically marked as stale because it has not had activity from the community in the last 30 days. It will be closed if no further activity occurs within 10 days. If the issue is labelled with any of the work labels (e.g bug, enhancement, documentation, or tests) then the issue will not auto-close. |
Hi @PlagueHO feel free to close this (apologies for not replying sooner). As mentioned its a weird quirk with artifactory, turns out this only happens when I install directly from artifactory's cache and not when I use it as a proxy. The only reason I was doing that at all was because i had no way to specify the version I wanted explicitly in Ansible but that is getting solved in ansible/ansible#46516 so no need for this issue anymore. thanks for your feedback. |
This issue has been automatically marked as stale because it has not had activity from the community in the last 30 days. It will be closed if no further activity occurs within 10 days. If the issue is labelled with any of the work labels (e.g bug, enhancement, documentation, or tests) then the issue will not auto-close. |
This issue has been automatically closed because it is has not had activity from the community in the last 40 days. |
I just ran into this same issue with ComputerManagementDsc and xWebAdministration, installing packages manually cached from PSGallery in a local file share as a repository. The nuspec has the truncated version number, so the modules install to the wrong folder name.
Some other Microsoft modules and third-party modules don't seem to have this issue. Are there still no plans to fix it? |
Looks like there is a separate issue for this at the PSGallery level. More info is at PowerShell/PowerShellGallery#55 |
Hi @psychonic - this has been a long time problem with PowerShellGet - but more correctly an annoying behavior of Nuget itself. It will affect all DSC Resource modules published to the PSGallery unfortunately. |
ISSUE TITLE:
Release 4.2.0.0 has incorrect nuspec configuration
ISSUE DESCRIPTION:
I cant see where your deployment scripts are but I believe there is an issue when generating a nu-spec file for release. In release 4.1.0.0 the nu-spec was:
However in release 4.2.0.0 it is
Notice the missing ".0"
The result of this is that the module is installed to C:\Program Files\WindowsPowerShell\Modules\StorageDSC\4.2.0 but the psd1 file has "4.2.0.0" specified and thus makes it an invalid module. Running Get-Module -ListAvailable fails to return 4.2.0.0.
This should be a pretty simple fix. I'm happy to have a look if you can point me in the right direction? I don't see any scripts that deal with packaging this module
Details of the scenario you tried and the problem that is occurring
Tried installing this module from our Artifactory instance using Install-Module. The command completes successfully but the resultant module is not valid and cannot be imported.
Trying to import the module via its psd1 yields the underlying reason
Verbose logs showing the problem
Suggested solution to the issue
Update the nu-spec to have the full 4 part version number
The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the DSC module that was used ('dev' if using current dev branch)
N/A
The text was updated successfully, but these errors were encountered: