Host PowerShell modules and scripts in NuGet Gallery? #24302
Replies: 2 comments 4 replies
-
Although PowerShell modules and dotnet libraries are packaged using the nuget format ( basically a zip file with metadata ) it does not mean they should be hosted together. The layout of a PowerShell module is completely different to that of a dotnet library or framework. They are not meaningfully interchangeable. They serve very different audiences, NuGet packages for dotnet developers and PowerShell Gallery for PowerShell developers and end users. I see no issue with PowerShell Gallery supporting both NuGet Protocol 3 and NuGet Protocol 2 simultaneously. I don't think hosting PowerShell modules at nuget.org would benefit either communities. |
Beta Was this translation helpful? Give feedback.
-
What are the known issues that make the existing PSGallery unusable? As far as I can tell it works. I don't care if it uses NuGet v2, NuGet v3 or the packages were hosted in a yum or apt repository or plain Azure blobs. What is important is that...
So far nothing is broken from that list. The only issue I have had with PowerShell packages is hosting them in github NuGet repository but I solved that for myself with rhubarb-geek-nz.NuGetPackage. But being able to use GitHub and lose PSGallery as the central repository would be a loss. |
Beta Was this translation helpful? Give feedback.
-
PowerShell Gallery and its API have various shortcomings and issues, which there does not seem to be resources available for looking into.
PowerShell Gallery is NuGet v2 based, with modifications. NuGet v2 itself is deprecated.
Would it be time better spent to look at hosting PowerShell modules and scripts in NuGet Gallery instead? With all the benefits it would bring, like NuGet v3, better API, piggyback uptime and features already in NuGet Gallery.
For a list of related issues I've collected and added to NuGet Gallery as a question for if they thought they could host PowerShell modules and scripts, see:
With a great reply reply with info on some of the changes that must be looked into for this to happen:
Beta Was this translation helpful? Give feedback.
All reactions