Closed mrinaldi closed 6 years ago
Are all packages unlisted? Can you try to run clear-cache or update -f?
Marcio Rinaldi notifications@github.com schrieb am Di., 19. Juni 2018, 17:29:
Description
Paket resolves to unlisted packages. It might have something to do with the unlisted packages also being the latest package, for example: package latest listed version is 5.2.2, but it has unlisted version 5.2.3 and 5.2.4. Repro steps
paket install using the following paket.dependencies:
source https://api.nuget.org/v3/index.json
nuget Microsoft.AspNetCore.Authentication.JwtBearer
Expected behavior
paket install should resolve all dependencies using the latest listed packages. Actual behavior
paket install fails with:
Paket version 5.172.4 Resolving packages for group Main:
- Microsoft.AspNetCore.Authentication.JwtBearer 2.1.1
- Microsoft.IdentityModel.Protocols.OpenIdConnect 5.2.4
- Microsoft.AspNetCore.Authentication 2.1.1
- Newtonsoft.Json 11.0.2
- Microsoft.IdentityModel.Protocols 5.2.4
- System.IdentityModel.Tokens.Jwt 5.2.4
- System.Dynamic.Runtime 4.3.0
- Microsoft.AspNetCore.Authentication.Core 2.1.1
- Microsoft.AspNetCore.DataProtection 2.1.1
- Microsoft.AspNetCore.Http 2.1.1
- Microsoft.AspNetCore.Http.Extensions 2.1.1
- Microsoft.Extensions.Logging.Abstractions 2.1.1
- Microsoft.Extensions.Options 2.1.1
- Microsoft.Extensions.WebEncoders 2.1.1
- NETStandard.Library 2.0.3
- Microsoft.IdentityModel.Logging 5.2.4
- Microsoft.IdentityModel.Tokens 5.2.4 Trial1 (NuGet.GetVersions) did not yield any results, trying again. https://api.nuget.org/v3-flatcontainer/microsoft.identitymodel.jsonwebtokens/index.json?semVerLevel=2.0.0 Performance:
- Resolver: 1 second (1 runs)
- Runtime: 405 milliseconds
- Blocked (retrieving package versions): 855 milliseconds (4 times)
- Blocked (retrieving package details): 259 milliseconds (5 times)
- Not Blocked (retrieving package details): 12 times
- Not Blocked (retrieving package versions): 14 times
- Average Request Time: 28 milliseconds
- Number of Requests: 32
- Runtime: 1 second Paket failed with -> Unable to retrieve package versions for 'Microsoft.IdentityModel.JsonWebTokens' -- CLOSED -- Microsoft.AspNetCore.Authentication.JwtBearer (from C:\Projects\paket-repo\paket.dependencies) Microsoft.IdentityModel.Protocols.OpenIdConnect >= 5.2 (from Microsoft.AspNetCore.Authentication.JwtBearer 2.1.1) Microsoft.AspNetCore.Authentication >= 2.1.1 (from Microsoft.AspNetCore.Authentication.JwtBearer 2.1.1) Newtonsoft.Json >= 10.0.1 (from Microsoft.IdentityModel.Protocols.OpenIdConnect 5.2.4) Microsoft.IdentityModel.Protocols >= 5.2.4 (from Microsoft.IdentityModel.Protocols.OpenIdConnect 5.2.4) System.IdentityModel.Tokens.Jwt >= 5.2.4 (from Microsoft.IdentityModel.Protocols.OpenIdConnect 5.2.4) System.Dynamic.Runtime >= 4.3 (from Microsoft.IdentityModel.Protocols.OpenIdConnect 5.2.4) Microsoft.AspNetCore.Authentication.Core >= 2.1.1 (from Microsoft.AspNetCore.Authentication 2.1.1) Microsoft.AspNetCore.DataProtection >= 2.1.1 (from Microsoft.AspNetCore.Authentication 2.1.1) Microsoft.AspNetCore.Http >= 2.1.1 (from Microsoft.AspNetCore.Authentication 2.1.1) Microsoft.AspNetCore.Http.Extensions >= 2.1.1 (from Microsoft.AspNetCore.Authentication 2.1.1) Microsoft.Extensions.Logging.Abstractions >= 2.1.1 (from Microsoft.AspNetCore.Authentication 2.1.1) Microsoft.Extensions.Options >= 2.1.1 (from Microsoft.AspNetCore.Authentication 2.1.1) Microsoft.Extensions.WebEncoders >= 2.1.1 (from Microsoft.AspNetCore.Authentication 2.1.1) NETStandard.Library >= 1.6.1 (from Microsoft.IdentityModel.Protocols.OpenIdConnect 5.2.4) Microsoft.IdentityModel.Logging >= 5.2.4 (from Microsoft.IdentityModel.Protocols 5.2.4) Microsoft.IdentityModel.Tokens >= 5.2.4 (from Microsoft.IdentityModel.Protocols 5.2.4) -- OPEN ---- Microsoft.IdentityModel.JsonWebTokens >= 5.2.4 (from System.IdentityModel.Tokens.Jwt 5.2.4) Microsoft.Win32.Registry >= 4.5 (from Microsoft.AspNetCore.DataProtection 2.1.1) System.Security.Cryptography.Xml >= 4.5 (from Microsoft.AspNetCore.DataProtection 2.1.1) System.Security.Principal.Windows >= 4.5 (from Microsoft.AspNetCore.DataProtection 2.1.1) System.Buffers >= 4.5 (from Microsoft.AspNetCore.Http.Extensions 2.1.1) System.Text.Encodings.Web >= 4.5 (from Microsoft.Extensions.WebEncoders 2.1.1) System.Net.Http >= 4.3.2 (from NETStandard.Library 2.0.3) System.Collections.Specialized >= 4.3 (from Microsoft.IdentityModel.Protocols 5.2.4) System.Diagnostics.Contracts >= 4.3 (from Microsoft.IdentityModel.Protocols 5.2.4) System.Net.Http >= 4.3 (from Microsoft.IdentityModel.Protocols 5.2.4) Microsoft.Win32.Primitives >= 4.3 (from NETStandard.Library 2.0.3) System.AppContext >= 4.3 (from NETStandard.Library 2.0.3) System.Collections >= 4.3 (from NETStandard.Library 2.0.3) System.Collections.Concurrent >= 4.3 (from NETStandard.Library 2.0.3) System.Console >= 4.3 (from NETStandard.Library 2.0.3) System.Diagnostics.Debug >= 4.3 (from NETStandard.Library 2.0.3) System.Diagnostics.Tools >= 4.3 (from NETStandard.Library 2.0.3) System.Diagnostics.Tracing >= 4.3 (from NETStandard.Library 2.0.3) System.Globalization >= 4.3 (from NETStandard.Library 2.0.3) System.Globalization.Calendars >= 4.3 (from NETStandard.Library 2.0.3) System.IO >= 4.3 (from NETStandard.Library 2.0.3) System.IO.Compression >= 4.3 (from NETStandard.Library 2.0.3) System.IO.Compression.ZipFile >= 4.3 (from NETStandard.Library 2.0.3) System.IO.FileSystem >= 4.3 (from NETStandard.Library 2.0.3) System.IO.FileSystem.Primitives >= 4.3 (from NETStandard.Library 2.0.3) System.Linq >= 4.3 (from NETStandard.Library 2.0.3) System.Linq.Expressions >= 4.3 (from NETStandard.Library 2.0.3) System.Net.Primitives >= 4.3 (from NETStandard.Library 2.0.3) System.Net.Sockets >= 4.3 (from NETStandard.Library 2.0.3) System.ObjectModel >= 4.3 (from NETStandard.Library 2.0.3) System.Reflection >= 4.3 (from NETStandard.Library 2.0.3) System.Reflection.Extensions >= 4.3 (from NETStandard.Library 2.0.3) System.Reflection.Primitives >= 4.3 (from NETStandard.Library 2.0.3) System.Resources.ResourceManager >= 4.3 (from NETStandard.Library 2.0.3) System.Runtime >= 4.3 (from NETStandard.Library 2.0.3) System.Runtime.Extensions >= 4.3 (from NETStandard.Library 2.0.3) System.Runtime.Handles >= 4.3 (from NETStandard.Library 2.0.3) System.Runtime.InteropServices >= 4.3 (from NETStandard.Library 2.0.3) System.Runtime.InteropServices.RuntimeInformation >= 4.3 (from NETStandard.Library 2.0.3) System.Runtime.Numerics >= 4.3 (from NETStandard.Library 2.0.3) System.Security.Cryptography.Algorithms >= 4.3 (from NETStandard.Library 2.0.3) System.Security.Cryptography.Encoding >= 4.3 (from NETStandard.Library 2.0.3) System.Security.Cryptography.Primitives >= 4.3 (from NETStandard.Library 2.0.3) System.Security.Cryptography.X509Certificates >= 4.3 (from NETStandard.Library 2.0.3) System.Text.Encoding >= 4.3 (from NETStandard.Library 2.0.3) System.Text.Encoding.Extensions >= 4.3 (from NETStandard.Library 2.0.3) System.Text.RegularExpressions >= 4.3 (from NETStandard.Library 2.0.3) System.Threading >= 4.3 (from NETStandard.Library 2.0.3) System.Threading.Tasks >= 4.3 (from NETStandard.Library 2.0.3) System.Threading.Timer >= 4.3 (from NETStandard.Library 2.0.3) System.Xml.ReaderWriter >= 4.3 (from NETStandard.Library 2.0.3) System.Xml.XDocument >= 4.3 (from NETStandard.Library 2.0.3) System.Collections >= 4.3 (from System.Dynamic.Runtime 4.3.0) System.Diagnostics.Debug >= 4.3 (from System.Dynamic.Runtime 4.3.0) System.Linq >= 4.3 (from System.Dynamic.Runtime 4.3.0) System.Linq.Expressions >= 4.3 (from System.Dynamic.Runtime 4.3.0) System.ObjectModel >= 4.3 (from System.Dynamic.Runtime 4.3.0) System.Reflection >= 4.3 (from System.Dynamic.Runtime 4.3.0) System.Reflection.Emit >= 4.3 (from System.Dynamic.Runtime 4.3.0) System.Reflection.Emit.ILGeneration >= 4.3 (from System.Dynamic.Runtime 4.3.0) System.Reflection.Primitives >= 4.3 (from System.Dynamic.Runtime 4.3.0) System.Reflection.TypeExtensions >= 4.3 (from System.Dynamic.Runtime 4.3.0) System.Resources.ResourceManager >= 4.3 (from System.Dynamic.Runtime 4.3.0) System.Runtime >= 4.3 (from System.Dynamic.Runtime 4.3.0) System.Runtime.Extensions >= 4.3 (from System.Dynamic.Runtime 4.3.0) System.Threading >= 4.3 (from System.Dynamic.Runtime 4.3.0) Microsoft.AspNetCore.Authentication.Abstractions >= 2.1.1 (from Microsoft.AspNetCore.Authentication.Core 2.1.1) Microsoft.AspNetCore.Cryptography.Internal >= 2.1.1 (from Microsoft.AspNetCore.DataProtection 2.1.1) Microsoft.AspNetCore.DataProtection.Abstractions >= 2.1.1 (from Microsoft.AspNetCore.DataProtection 2.1.1) Microsoft.AspNetCore.Hosting.Abstractions >= 2.1.1 (from Microsoft.AspNetCore.DataProtection 2.1.1) Microsoft.Extensions.DependencyInjection.Abstractions >= 2.1.1 (from Microsoft.AspNetCore.DataProtection 2.1.1) Microsoft.AspNetCore.Http.Abstractions >= 2.1.1 (from Microsoft.AspNetCore.Http 2.1.1) Microsoft.AspNetCore.WebUtilities >= 2.1.1 (from Microsoft.AspNetCore.Http 2.1.1) Microsoft.Extensions.ObjectPool >= 2.1.1 (from Microsoft.AspNetCore.Http 2.1.1) Microsoft.Net.Http.Headers >= 2.1.1 (from Microsoft.AspNetCore.Http 2.1.1) Microsoft.Extensions.FileProviders.Abstractions >= 2.1.1 (from Microsoft.AspNetCore.Http.Extensions 2.1.1) Microsoft.Extensions.Primitives >= 2.1.1 (from Microsoft.Extensions.Options 2.1.1) Microsoft.NETCore.Platforms >= 1.1 (from NETStandard.Library 2.0.3) System.Diagnostics.Tracing >= 4.3 (from Microsoft.IdentityModel.Logging 5.2.4) System.Globalization >= 4.3 (from Microsoft.IdentityModel.Logging 5.2.4) System.IO >= 4.3 (from Microsoft.IdentityModel.Logging 5.2.4) System.IO.FileSystem >= 4.3 (from Microsoft.IdentityModel.Logging 5.2.4) System.Collections >= 4.3 (from Microsoft.IdentityModel.Tokens 5.2.4) System.Diagnostics.Tools >= 4.3 (from Microsoft.IdentityModel.Tokens 5.2.4) System.Reflection >= 4.3 (from Microsoft.IdentityModel.Tokens 5.2.4) System.Runtime >= 4.3 (from Microsoft.IdentityModel.Tokens 5.2.4) System.Runtime.Extensions >= 4.3 (from Microsoft.IdentityModel.Tokens 5.2.4) System.Runtime.InteropServices >= 4.3 (from Microsoft.IdentityModel.Tokens 5.2.4) System.Runtime.InteropServices.RuntimeInformation >= 4.3 (from Microsoft.IdentityModel.Tokens 5.2.4) System.Runtime.Serialization.Xml >= 4.3 (from Microsoft.IdentityModel.Tokens 5.2.4) System.Security.Claims >= 4.3 (from Microsoft.IdentityModel.Tokens 5.2.4) System.Security.Cryptography.Algorithms >= 4.3 (from Microsoft.IdentityModel.Tokens 5.2.4) System.Security.Cryptography.X509Certificates >= 4.3 (from Microsoft.IdentityModel.Tokens 5.2.4) System.Text.RegularExpressions >= 4.3 (from Microsoft.IdentityModel.Tokens 5.2.4) System.Threading >= 4.3 (from Microsoft.IdentityModel.Tokens 5.2.4) -> Request 'https://api.nuget.org/v3-flatcontainer/microsoft.identitymodel.jsonwebtokens/index.json?semVerLevel=2.0.0' finished with: []
Known workarounds
Pin the transitive dependencies to the latest listed version:
source https://api.nuget.org/v3/index.json
nuget Microsoft.AspNetCore.Authentication.JwtBearer nuget Microsoft.IdentityModel.Protocols.OpenIdConnect 5.2.2 nuget Microsoft.IdentityModel.Tokens 5.2.2
— 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/3260, or mute the thread https://github.com/notifications/unsubscribe-auth/AADgNFkwO3e7XN23EPAkEZpK7PD6W0WZks5t-RjUgaJpZM4UtvR5 .
Oh ok, that did the trick.
So, everytime I have an unlisted package I have to clear the cache or force update in order to paket know it was unlisted?
As a matter of fact, that did the trick on the repro, but no on my project. I'm trying to come up with another with another repro.
I feel like this is just a paket crash we didn't expect. The same scenario can probably be reproduced by having to packages A and B with A 1.0 having no dependencies on B A 2.0 having a dependency on B 1.0
Package B doesn't exist on the nuget feed.
@forki Question is do we expect paket to be clever enough to resolve A 1.0 or give up immediately (as it does now)
Ok, with update -f
it fails on my project because I'm using VSTS package feed 😢 instead of nuget directly.
I guess it's not unlisted in there.
Yet another caching level.
Marcio Rinaldi notifications@github.com schrieb am Di., 19. Juni 2018, 19:00:
Ok, with update -f it fails on my project because I'm using VSTS package feed 😢 instead of nuget directly. I guess it's not unlisted in there.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fsprojects/Paket/issues/3260#issuecomment-398471670, or mute the thread https://github.com/notifications/unsubscribe-auth/AADgNNF2kCz60kmwZUab7rXmuWSRiFkzks5t-S4egaJpZM4UtvR5 .
Description
Paket resolves to unlisted packages. It might have something to do with the unlisted version also being the latest version, for example: package latest listed version is 5.2.2, but it has unlisted version 5.2.3 and 5.2.4.
Repro steps
paket install
using the followingpaket.dependencies
:Expected behavior
paket install
should resolve all dependencies using the latest listed packages.Actual behavior
paket install
fails with:Known workarounds
Pin the transitive dependencies to the latest listed version: