Gallery Issue - LicenseURI & ProjectURI aren't added if not in the PSD1 file when Publish Module is used to Publish to Gallery
When using Publish-Module you are prompted to provide a LicenseURI & ProjectURI - Or at least you should be according to Documentation on powershellgallery.com
If you havent added this information the the PSD1 file then this information isnt passed to the Gallery Item used by Find-Module or the PowerShell Gallery
Examples include the following
And the psd1 files are located at https://github.com/kilasuit/ThePSGallery
Darek Grala commented
Thanks for reporting this! We're working on a fix. The issue is that Publish-Module creates a .nuspec file with those values, but on the server side, psd1 takes precedence when extracting metadata.
This is actually very important for both developer and user to recognize license. As NuGet.org do, license is mandatory for all developers who want to publish it.
Let's think about MIT and GNU v3, did PowerShell core import PSReadline and Pester if license are GNU? I don't think so.
I hope PS Gallery will show License URL in each pages, and would be prefer if License can be written in .psd1 or mandatory when publishing module with Publish-Module.
Ryan Yates commented
My suggestion is to either drop the LicenseURI & ProjectURI parameters for Publish-Module or to internally populate the PSD1 files with this info after it has been Published as there are alot of modules where this information isnt included because of this issue.
Exact numbers at present is 227 Modules in the gallery where this information isnt accessible correctly