PowerShell / PowerShellGetv2

PowerShellGet is the Package Manager for PowerShell
https://www.PowerShellGallery.com
MIT License
431 stars 138 forks source link

Publish-Module: consider allowing custom names when loaded from path #322

Open mgreenegit opened 6 years ago

mgreenegit commented 6 years ago

Please consider allowing ‘Name’ parameter when ‘Path’ is used, then pass the value as the name for the module in the package.

https://github.com/PowerShell/PowerShellGet/blob/development/PowerShellGet/public/psgetfunctions/Publish-Module.ps1#L299

bmanikm commented 6 years ago

@mgreenegit Could you please provide more details on the end-user scenario and expected functionality? If you know that the specified value is a module name, why can't you use the Name parameter?

mgreenegit commented 6 years ago

The Name parameter only works if the module is in psmodulepath. For CI environments, it is more likely to be staged in a project or artifact folder.