question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PaketUpdate fails with semver 2.0 version and jfrog hosted repository

See original GitHub issue

Description

We use paket to install our internal dependencies from a jfrog SAS installation. We started to use semver 2.0 versioning and had no issues until recently. We need to force a specific version which is not compatible for testing purposes but paket throws errors: Couldn't get package details for package Wooga.Core 4.1.0-branch.pr.34.5 on https://foo.jfrog.io/foo/api/nuget/nuget. - 2_https://foo.jfrog.io/foo/api/nuget/nuget/Packages?$filter=(tolower(Id) eq 'wooga.core') and (Version eq '4.1.0-branch.pr.34.5'))r.34.5') I tried to set the feed URL to v3 but get: could not find an AllVersionsAPI endpoint for https://foo.jfrog.io/foo/api/nuget/v3/nuget It looks like the switch doesn’t work correctly: #3351

Repro steps

This is quite hard because I think the issue lies with jfrog here. In the dependencies file we set

source https://foo.jfrog.io/foo/api/nuget/nuget
nuget Wooga.Core == 4.1.0-branch.pr.34.5
... additional packages
* What went wrong:
Execution failed for task ':paketUpdate'.
> Paket task paketUpdate failedPaket failed with
  -> There was a version conflict during package resolution.
       Conflict detected:
        - Dependencies file requested package Wooga.Core: == 4.1.0-branch.pr.34.5 (branch)*
        - Available versions:
          - (5.0.0-rc.4, [https://foo.jfrog.io/foo/api/nuget/atlas-nuget; https://foo.jfrog.io/foo/api/nuget/nuget])
          - (5.0.0-branch.release.5.x.6, [https://foo.jfrog.io/foo/api/nuget/nuget])
          - (5.0.0-branch.release.5.x.5, [https://foo.jfrog.io/foo/api/nuget/nuget])
          - (5.0.0-branch.release.5.x.3, [https://foo.jfrog.io/foo/api/nuget/nuget])
          - (4.1.0-master.6, [https://foo.jfrog.io/foo/api/nuget/nuget])
          - (4.1.0-master.4, [https://foo.jfrog.io/foo/api/nuget/nuget])
          - (4.1.0-master.3, [https://foo.jfrog.io/foo/api/nuget/nuget])
          - (4.1.0-master.2, [https://foo.jfrog.io/foo/api/nuget/nuget])
          - (4.1.0-branch.pr.36.7, [https://foo.jfrog.io/foo/api/nuget/nuget])
          - (4.1.0-branch.pr.36.6, [https://foo.jfrog.io/foo/api/nuget/nuget])
          - (4.1.0-branch.pr.35.6, [https://foo.jfrog.io/foo/api/nuget/nuget])
          - (4.1.0-branch.pr.34.5, [https://foo.jfrog.io/foo/api/nuget/nuget])
          - (4.1.0-branch.pr.33.3, [https://foo.jfrog.io/foo/api/nuget/nuget])
          - (4.1.0-branch.pr.32.3, [https://foo.jfrog.io/foo/api/nuget/nuget])
          - (4.0.1-master.6, [https://foo.jfrog.io/foo/api/nuget/nuget])
       Please try to relax some conditions or resolve the conflict manually (see http://fsprojects.github.io/Paket/nuget-dependencies.html#Use-exactly-this-version-constraint).
     StackTrace:
         at Paket.PackageResolver+ResolutionModule.getModelOrFail (Paket.PackageResolver+Resolution res) [0x0003d] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Paket.UpdateProcess+groups@160-6.Invoke (System.Collections.Generic.KeyValuePair`2[TKey,TValue] kv) [0x00041] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Microsoft.FSharp.Collections.Internal+IEnumerator+choose@165[TResult,T].System-Collections-IEnumerator-MoveNext () [0x00063] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Microsoft.FSharp.Collections.MapTreeModule.mkFromEnumerator[a,b] (System.Collections.Generic.IComparer`1[T] comparer, Microsoft.FSharp.Collections.MapTree`2[TKey,TValue] acc, System.Collections.Generic.IEnumerator`1[T] e) [0x00000] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Microsoft.FSharp.Collections.MapTreeModule.ofSeq[TKey,T] (System.Collections.Generic.IComparer`1[T] comparer, System.Collections.Generic.IEnumerable`1[T] c) [0x00030] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Microsoft.FSharp.Collections.FSharpMap`2[TKey,TValue].Create (System.Collections.Generic.IEnumerable`1[T] ie) [0x00006] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Microsoft.FSharp.Collections.MapModule.OfSeq[TKey,T] (System.Collections.Generic.IEnumerable`1[T] elements) [0x00000] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Paket.UpdateProcess.selectiveUpdate (System.Boolean force, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] getSha1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] getVersionsF, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] getPackageDetailsF, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] getRuntimeGraphFromPackage, Paket.LockFile lockFile, Paket.DependenciesFile dependenciesFile, Paket.PackageResolver+UpdateMode updateMode, Paket.SemVerUpdateMode semVerUpdateMode) [0x0035d] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Paket.UpdateProcess.SelectiveUpdate (Paket.DependenciesFile dependenciesFile, Microsoft.FSharp.Core.FSharpOption`1[T] alternativeProjectRoot, Paket.PackageResolver+UpdateMode updateMode, Paket.SemVerUpdateMode semVerUpdateMode, System.Boolean force) [0x000e6] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Paket.UpdateProcess.SmartInstall (Paket.DependenciesFile dependenciesFile, Paket.PackageResolver+UpdateMode updateMode, Paket.UpdaterOptions options) [0x00001] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Paket.UpdateProcess.Update (System.String dependenciesFileName, Paket.UpdaterOptions options) [0x0000e] in <be39d6458de040cea5971ea1db68cd3f>:0
         at <StartupCode$Paket-Core>.$PublicAPI+Update@321.Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x0005b] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Paket.Utils.RunInLockedAccessMode[a] (System.String lockedFolder, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] action) [0x00077] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Paket.Dependencies.Update (System.Boolean force, System.Boolean withBindingRedirects, System.Boolean cleanBindingRedirects, System.Boolean createNewBindingFiles, System.Boolean installAfter, Paket.SemVerUpdateMode semVerUpdateMode, System.Boolean touchAffectedRefs) [0x00039] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Paket.Program.update (Argu.ParseResults`1[Template] results) [0x00bb9] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Paket.Program+handleCommand@842-16.Invoke (Argu.ParseResults`1[Template] results) [0x00001] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Paket.Program.processWithValidationEx$cont@42[a] (System.Boolean silent, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] commandF, a result, Microsoft.FSharp.Core.Unit unitVar) [0x00002] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Paket.Program.processWithValidationEx[a] (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] printUsage, System.Boolean silent, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] validateF, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] commandF, a result) [0x00067] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Paket.Program.processWithValidation[T] (System.Boolean silent, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] validateF, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] commandF, Argu.ParseResults`1[Template] result) [0x00006] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Paket.Program.processCommand[a] (System.Boolean silent, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] commandF, Argu.ParseResults`1[Template] result) [0x00007] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Paket.Program.handleCommand (System.Boolean silent, Paket.Commands+Command command) [0x0022c] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Paket.Program.main () [0x0041e] in <be39d6458de040cea5971ea1db68cd3f>:0
  -> Unable to retrieve package details for 'Wooga.Core'-4.1.0-branch.pr.34.5
     StackTrace:
         at Paket.PackageResolver+getPackageDetailsBlock@1039.Invoke (Paket.PackageResolver+GetPackageDetailsParameters details) [0x00077] in <be39d6458de040cea5971ea1db68cd3f>:0
         at Paket.PackageResolver.explorePackageConfig (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] getPackageDetailsBlock, Paket.PackageResolver+PackageConfig pkgConfig) [0x001d9] in <be39d6458de040cea5971ea1db68cd3f>:0
  -> Couldn't get package details for package Wooga.Core 4.1.0-branch.pr.34.5 on https://foo.jfrog.io/foo/api/nuget/nuget.
        - 2_https://foo.jfrog.io/foo/api/nuget/nuget/Packages?$filter=(tolower(Id) eq 'wooga.core') and (Version eq '4.1.0-branch.pr.34.5'))r.34.5')

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:36 (19 by maintainers)

github_iconTop GitHub Comments

2reactions
jbaehrcommented, Nov 14, 2019

After some ping-pong with the JFrog support I got the confirmation that it’s a known issue and supposed to be fixed in Artifactory 6.14.

1reaction
forkicommented, Nov 29, 2019

it’s weird in the sense that we create a lot of traffic and waste on devs machines

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Resolve Install/Search Problems in Nuget ...
Relevant versions: This information pertains to Artifactory 6.x and above. Before the support for Nuget V3, Artifactory didn't have any SemVer2 filters.
Read more >
[#RTFACT-21126] Nuget package with SemVer2 gives 404 ...
The NuGet package deployed in Artifactory with SemVer2 version gives 404 when searched with "Packages(Id=)" endpoint.
Read more >
[RTFACT-20334] Chart with invalid version number will be ...
If a chart has an invalid version number or appVersion number, artifactory will still index them. However, virtual repos containing such chart will...
Read more >
Issue with NPM package install not found
The npm client is trimming leading zeros and validating a correct package version according to the Semantic Versioning 2.0.0.
Read more >
[#RTFACT-14805] The npm repo's package.json file's ...
0.14) in the version field of the package.json file. The npm install command fails returning a 404 even when there is a valid...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found