-
Notifications
You must be signed in to change notification settings - Fork 2
PSModule doesn't support Nuget packages with authentification (HTTPS) #2
Comments
I've come across the same error after deploying an instance of the PSPrivateGallery to azure. The default PowerShellGallery is registered over https, which is interesting. |
Hey Michael, there is temporary workaround available for this issue : http://stackoverflow.com/a/35296483 |
Unfortunately, that work around requires me to distribute it to everyone in our shop who might use the PowerShell repo. Definitely need a longer term solution. I'll check to see if that workaround gets it done for me, but I'll still have to make it available over http for now either way. |
Any movement on this? I'm hitting this now. |
Would also like to see a fix for this. Just hit it, too. The temporary work-around posted by @anpur is working for me right now, but it's awfully janky to need to do that. |
Hey, was there a fix to this? I am running into it in current Powershell, but I notice this issue is logged under testbuild. Bit confused with the whole oneget, powershellget, powershellgallery and packagemanagement modules and terminology, seems like a bit of a stuff up, but not being able to register an https package source seems like a fundamental issue. |
I've heard there was a fix for this in the latest Win10 build @Ben-Shirley |
@TheIncorrigible1 yeah it works in Windows 10. Frustratingly, the version numbers of both the |
Is there a fix for this on Win7 now? |
Just chipping in here. As I hope this can be usefull to someone.
|
Open for almost 3 years and still no fix. Where's the hustle? |
Prerequisites:
PackageManager
to 1.0.0.1 version with Win November Update (it used to work in 1.0.0.0)Scenario:
Register-PSRepository -Name MyNuget -SourceLocation https://my-nuget/api/v2
You will got error like this:
Register-PSRepository : The specified Uri 'https://my-nuget/api/v2' for parameter 'SourceLocation' is an invalid Web Uri. Please ensure that it meets the Web Uri requirements.
Root cause:
Function
Ping-Module
fromPSModule.psm1
not passing credentials to request.Fix is not simple
To fix
Ping-Module
you need simple one-liner: you need to add following line to$WebRequestcmd
script insidePing-Module
function:But after that fix I'm getting following warning:
So source is registered but remains unusable.
Please feel free to contact me for any additional details or reproduction.
The text was updated successfully, but these errors were encountered: