Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paket fails to get package versions (2.1.0 - 2.3.4) #1079

Closed
MiloszKrajewski opened this issue Sep 22, 2015 · 9 comments
Closed

Paket fails to get package versions (2.1.0 - 2.3.4) #1079

MiloszKrajewski opened this issue Sep 22, 2015 · 9 comments

Comments

@MiloszKrajewski
Copy link
Contributor

paket outdated fails with:

Could not find versions for package DotNetZip.Reduced in any of the sources in [Nuget {Url = "https://www.nuget.org/api/v2"; Authentication = null;}].

Thank to paket.bootstrapper I was able to check out multiple versions. So it works fine up to 2.0.3, then starts to fail at 2.1.0 up to 2.3.4 (the most recent version at the time I'm writing this). It might be important that I am behind proxy but even then the older version works.

PS D:\prj\external\lz4net\src> .\paket.cmd outdated --verbose
No version specified. Downloading latest stable.
Paket.exe 2.3.4.0 is up to date.
Paket version 2.3.4.0
found: D:\prj\external\lz4net\src\paket.dependencies
Parsing D:\prj\external\lz4net\src\paket.dependencies
Resolving packages for group Main:
  0 packages in resolution. 4 requirements left
  Trying to resolve DotNetZip.Reduced  (from D:\prj\external\lz4net\src\paket.dependencies)
  - fetching versions for DotNetZip.Reduced
getAllVersionsFromNuGet2 from url 'https://www.nuget.org/api/v2/package-versions/DotNetZip.Reduced?includePrerelease=true'
getAllVersionsFromNugetOData from url 'https://www.nuget.org/api/v2/FindPackagesById()?id='DotNetZip.Reduced''
getAllVersionsFromNugetODataWithFilter from url 'https://www.nuget.org/api/v2/Packages?$filter=Id eq 'DotNetZip.Reduced''
Paket failed with:
        Could not find versions for package DotNetZip.Reduced in any of the sources in [Nuget {Url = "https://www.nuget.org/api/v2";
        Authentication = null;}].
StackTrace:
     at [email protected](String message)
   at Paket.NuGetV2.GetVersions(String root, IEnumerable`1 sources, PackageName _arg1)
   at Paket.PackageResolver.getAllVersions@235(FSharpFunc`2 getVersionsF, Dictionary`2 allVersions, FSharpList`1 sources, PackageName packageName, VersionRange vr)
   at Paket.PackageResolver.step$cont@298(FSharpSet`1 requirements, FSharpFunc`2 getVersionsF, Dictionary`2 allVersions, PackageRequirement currentRequirement, FSharpRef`1 availableVersions, FSharpRef`1 compatibleVersions, FSharpRef`1 globalOverride, FSharpList`1 currentRequirements, Unit unitVar)
   at Paket.PackageResolver.step@249(FSharpSet`1 requirements, FSharpList`1 globalFrameworkRestrictions, FSharpFunc`2 getVersionsF, FSharpFunc`2 getPackageDetailsF, Dictionary`2 exploredPackages, Dictionary`2 allVersions, Dictionary`2 conflictHistory, FSharpMap`2 filteredVersions, FSharpList`1 selectedPackageVersions, FSharpSet`1 closedRequirements, FSharpSet`1 openRequirements)
   at Paket.PackageResolver.Resolve(GroupName groupName, FSharpFunc`2 getVersionsF, FSharpFunc`2 getPackageDetailsF, FSharpList`1 globalFrameworkRestrictions, FSharpList`1 rootDependencies, FSharpSet`1 requirements)
   at <StartupCode$Paket-Core>[email protected](GroupName k, RequirementsGroup group)
   at Microsoft.FSharp.Collections.MapTreeModule.mapiOpt[a,b,c](FSharpFunc`3 f, MapTree`2 m)
   at Microsoft.FSharp.Collections.FSharpMap`2.Map[b](FSharpFunc`2 f)
   at [email protected](LockFile _arg1)
   at Chessie.ErrorHandling.Trial.fSuccess@63-11[p,r,q](FSharpFunc`2 f, p x, FSharpList`1 msgs)
   at Paket.FindOutdated.ShowOutdated(Boolean strict, Boolean includingPrereleases, PaketEnv environment)
   at <StartupCode$Paket-Core>.$PublicAPI.fSuccess@63-25[a](FSharpFunc`2 f, PaketEnv x, FSharpList`1 msgs)
   at Paket.Dependencies.Process[a](FSharpFunc`2 f)
   at [email protected](ParseResults`1 results)
   at Paket.Program.processWithValidation[T](FSharpFunc`2 validateF, FSharpFunc`2 commandF, Command command, String[] args)
   at [email protected](Command command, String[] args)
   at Paket.Program.main()

while older version works fine:

PS D:\prj\external\lz4net\src> .\paket.cmd outdated
Version 2.0.3 requested.
Paket.exe 2.0.3.0 is up to date.
Paket version 2.0.3.0
Resolving packages for group Main:
 - DotNetZip.Reduced 1.9.1.8
 - FAKE 4.4.4
 - LibZ.Bootstrap 1.1.0.2
 - NUnit 2.6.4
No outdated packages found.
3 seconds - ready.
@forki
Copy link
Member

forki commented Sep 22, 2015

so this seems to be a side-effect of #1061
@dedale could you please take a look?

@forki
Copy link
Member

forki commented Sep 22, 2015

0792bed#diff-4d7cd68c6813f092c784e32c518577e6R126 seems to be the change that causes this to break.

@dedale
Copy link
Contributor

dedale commented Sep 22, 2015

@MiloszKrajewski do you use http_proxy and https_proxy env variables?
@forki I spotted a bug this morning : creating a WebProxy with an https Uri fails, this is not supported. So I must hard-code scheme as http. Unfortunately I cannot push from work.

@forki
Copy link
Member

forki commented Sep 22, 2015

Can you email me the patch?
On Sep 22, 2015 13:24, "Vianney P." [email protected] wrote:

@MiloszKrajewski https://github.com/MiloszKrajewski do you use
http_proxy and https_proxy env variables?
@forki https://github.com/forki I spotted a bug this morning : creating
a WebProxy with an https Uri fails, this is not supported. So I must
hard-code scheme as http. Unfortunately I cannot push from work.


Reply to this email directly or view it on GitHub
#1079 (comment).

@dedale
Copy link
Contributor

dedale commented Sep 22, 2015

Finally found a way to push a PR with the fix for the bug I spotted. Hope
it solves #1079.

On Tue, Sep 22, 2015, 13:31 Steffen Forkmann [email protected]
wrote:

Can you email me the patch?
On Sep 22, 2015 13:24, "Vianney P." [email protected] wrote:

@MiloszKrajewski https://github.com/MiloszKrajewski do you use
http_proxy and https_proxy env variables?
@forki https://github.com/forki I spotted a bug this morning :
creating
a WebProxy with an https Uri fails, this is not supported. So I must
hard-code scheme as http. Unfortunately I cannot push from work.


Reply to this email directly or view it on GitHub
<#1079 (comment)
.


Reply to this email directly or view it on GitHub
#1079 (comment).

@forki
Copy link
Member

forki commented Sep 22, 2015

@MiloszKrajewski could you please try 2.3.6?

@MiloszKrajewski
Copy link
Contributor Author

@dedale Yup. Using both HTTP_PROXY and HTTPS_PROXY.
@forki 2.3.6 fixes the problem. Thanks.

@forki
Copy link
Member

forki commented Sep 22, 2015

Awesome!

2015-09-22 14:16 GMT+02:00 Milosz Krajewski [email protected]:

@dedale https://github.com/dedale Yup. Using both HTTP_PROXY and
HTTPS_PROXY.
@forki https://github.com/forki 2.3.6 fixes the problem. Thanks.


Reply to this email directly or view it on GitHub
#1079 (comment).

@dedale
Copy link
Contributor

dedale commented Sep 22, 2015

😌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants