Source protocol changes from HTTPS to HTTP
When a NuGet v3 API is used the source protocol changes from HTTPS in paket.dependencies to HTTP in paket.lock.
It's just normalizing the url. It should still always use the https in the calls. Can you please check if that's true?
Am 30.11.2016 09:30 schrieb "Janne K" [email protected]:
When a NuGet v3 API is used the source protocol changes from HTTPS in paket.dependencies to HTTP in paket.lock.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fsprojects/Paket/issues/2053, or mute the thread https://github.com/notifications/unsubscribe-auth/AADgNHIR7k6HqS6FHCde6vuuKoHSMdCoks5rDTQtgaJpZM4K_7XD .
See scoobadog/PaketRepro@85f42853b7af6b8251f5900fa416d64323d4f921 for a repro
According to verbose log it's using v2 API over HTTP
Downloading AutoMapper 5.2
Response from http://nuget.org/api/v2/Packages?$filter=(tolower(Id) eq 'AutoMapper') and (Normalized
Version eq '5.2.0'):
offending code
let normalizeFeedUrl (source:string) =
match source.TrimEnd([|'/'|]) with
| "https://api.nuget.org/v3/index.json" -> Constants.DefaultNuGetV3Stream
| "http://api.nuget.org/v3/index.json" -> Constants.DefaultNuGetV3Stream.Replace("https","http")
| "https://nuget.org/api/v2" -> Constants.DefaultNuGetStream
| "http://nuget.org/api/v2" -> Constants.DefaultNuGetStream.Replace("https","http")
| "https://www.nuget.org/api/v2" -> Constants.DefaultNuGetStream
| "http://www.nuget.org/api/v2" -> Constants.DefaultNuGetStream.Replace("https","http")
| url when url.EndsWith("/api/v3/index.json") -> url.Replace("/api/v3/index.json","")
| source -> source
https://github.com/fsprojects/Paket/blob/master/src/Paket.Core/Utils.fs
we should normalize to https
#2071 should fix the issue, but I didn't test it nor checked if there exists related test. If it's not enough, I'll dig it later this week.
Already released. I just tested and it works.
Thanks guys for a quick fix.