mirror site support for PowerShellGallery
This issue is more about the gallery than the module.
Most repos like docker, pip, npm, maven, apt/yum, etc. allow mirror sites else in the world, and contents are sync'ed on regular basis (e.g. daily). This provides great benefits for developers in areas like China, or the speed for installing a module/package/dependency is going to be as slow as a running turtle.
Is there an option to mirror PowerShellGallery?
Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.87. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
Thanks @tigerinus we are planning on implementing a local cache for the PowerShell Gallery which will help resolve this issue, we will leave this issue open though to track the request for mirroring the gallery
@SydneyhSmith I would even go further and would like to see a professional offering that has an SLA agreement similar we have to other hosted services, of course the option to mirror the complete Gallery would be a first step.
Linking the current outage thread to this comment https://github.com/PowerShell/PowerShellGallery/issues/135
Any progress on this one ? I would like to mirror packages from the gallery and filter by Author (for example only 'Microsoft Corporation' in one repo and others in another). Currently not all systems are in DMZ and access to internet is restricted, so in corporate environments mirroring would be one of the best options.
It seems that there is a GetPSGalleryItemsForAuthor.ps1 script that can do that logic (to some extent) and supports author filtering:
.\GetPSGalleryItemsForAuthor.ps1 -AuthorName 'Microsoft Corporation' -LocalFolder C:\powershellgallery