Skip to content

Paket cannot download semver2 nuget #3156

Closed

Description

@haf

https://github.com/haf/paket-semver2-repro

mono .paket/paket.exe update

Output

Paket version 5.156.1
Resolving packages for group Main:
 - Logary 5.0.0-beta.3
Something failed in GetPackageDetails, trying again with force: Couldn't get package details for package Logary 5.0.0-beta.3 on https://api.nuget.org/v3/index.json.
    Package not available.
      Message: Unable to retrieve package details for 'Logary'-5.0.0-beta.3
 - Logary 5.0.0-beta.2
Something failed in GetPackageDetails, trying again with force: Couldn't get package details for package Logary 5.0.0-beta.2 on https://api.nuget.org/v3/index.json.
    Package not available.
      Message: Unable to retrieve package details for 'Logary'-5.0.0-beta.2
 - Logary 4.2.1
 - Logary.Adapters.Facade 5.0.0-beta.3
Something failed in GetPackageDetails, trying again with force: Couldn't get package details for package Logary.Adapters.Facade 5.0.0-beta.3 on https://api.nuget.org/v3/index.json.
    Package not available.
      Message: Unable to retrieve package details for 'Logary.Adapters.Facade'-5.0.0-beta.3
 - Logary.Adapters.Facade 4.2.1
 - Logary.Targets.Mixpanel 5.0.0-beta.3
Something failed in GetPackageDetails, trying again with force: Couldn't get package details for package Logary.Targets.Mixpanel 5.0.0-beta.3 on https://api.nuget.org/v3/index.json.
    Package not available.
      Message: Unable to retrieve package details for 'Logary.Targets.Mixpanel'-5.0.0-beta.3
 - Logary.Targets.Mixpanel 5.0.0-beta.2
Something failed in GetPackageDetails, trying again with force: Couldn't get package details for package Logary.Targets.Mixpanel 5.0.0-beta.2 on https://api.nuget.org/v3/index.json.
    Package not available.
      Message: Unable to retrieve package details for 'Logary.Targets.Mixpanel'-5.0.0-beta.2
 - Logary.Adapters.Facade 4.2.0
 - Logary.Adapters.Facade 4.1.1
 - Logary.Adapters.Facade 4.1.0
 - Logary.Adapters.Facade 4.0.311
 - Logary.Adapters.Facade 4.0.310
 - Logary.Adapters.Facade 4.0.304
 - Logary.Adapters.Facade 4.0.303
 - Logary.Adapters.Facade 4.0.302
 - Logary.Adapters.Facade 4.0.301
 - Logary.Adapters.Facade 4.0.300
 - Logary.Adapters.Facade 4.0.280
 - Logary.Adapters.Facade 4.0.261
 - Logary.Adapters.Facade 4.0.260
 - Logary.Adapters.Facade 4.0.241
 - Logary.Adapters.Facade 4.0.240
 - Logary.Adapters.Facade 4.0.223
 - Logary.Adapters.Facade 4.0.222
 - Logary.Adapters.Facade 4.0.221
 - Logary.Adapters.Facade 4.0.200
 - Logary.Adapters.Facade 4.0.181
 - Logary.Adapters.Facade 4.0.180
 - Logary.Adapters.Facade 4.0.160
 - Logary.Adapters.Facade 4.0.150
 - Logary.Adapters.Facade 4.0.122
 - Logary.Adapters.Facade 4.0.121
 - Logary.Adapters.Facade 4.0.120
 - Logary.Adapters.Facade 4.0.112
 - Logary.Adapters.Facade 4.0.111
 - Logary.Adapters.Facade 4.0.101
 - Logary.Adapters.Facade 4.0.100
 - Logary.Adapters.Facade 4.0.80
 - Logary.Adapters.Facade 4.0.60
 - Logary.Adapters.Facade 4.0.41
 - Logary.Adapters.Facade 4.0.40
  Conflict detected:
   - Dependencies file requested package Logary.Targets.Mixpanel: >= 0 prerelease*
   - Available versions:
     - (5.0.0-beta.3, [https://api.nuget.org/v3/index.json])
     - (5.0.0-beta.2, [https://api.nuget.org/v3/index.json])

The process is taking longer than expected.
Paket may still find a valid resolution, but this might take a while.
 - Logary 4.2.0
 - Logary 4.1.1
 - Logary 4.1.0
 - Logary 4.0.311
 - Logary 4.0.310
 - Logary 4.0.304
 - Logary 4.0.303
 - Logary 4.0.302
 - Logary 4.0.301
 - Logary 4.0.300
 - Logary 4.0.280
 - Logary 4.0.261
 - Logary 4.0.260
 - Logary 4.0.241
 - Logary 4.0.240
 - Logary 4.0.223
 - Logary 4.0.222
 - Logary 4.0.221
 - Logary 4.0.200
 - Logary 4.0.181
 - Logary 4.0.180
 - Logary 4.0.160
 - Logary 4.0.150
 - Logary 4.0.122
 - Logary 4.0.121
 - Logary 4.0.120
 - Logary 4.0.112
 - Logary 4.0.111
 - Logary 4.0.110
 - Logary 4.0.101
 - Logary 4.0.100
 - Logary 4.0.80
 - Logary 4.0.60
 - Logary 4.0.41
 - Logary 4.0.40
     Logary 4.0.40 was unlisted
 - Logary 4.0.20
 - Logary 4.0.19
 - Logary 4.0.18
 - Logary 4.0.17
 - Logary 4.0.16
 - Logary 4.0.15
 - Logary 4.0.14
 - Logary 4.0.13
 - Logary 4.0.11
 - Logary 4.0.10
 - Logary 4.0.9
 - Logary 4.0.7
 - Logary 4.0.6
 - Logary 4.0.5
 - Logary 4.0.3
 - Logary 4.0.2
 - Logary 4.0.1
 - Logary 4.0.0
 - Logary 4.0.0-alpha2
 - Logary 4.0.0-alpha1
 - Logary 3.6.1
 - Logary 3.6.0
 - Logary 3.5.1
 - Logary 3.5.0
 - Logary 3.4.2
 - Logary 3.4.1
 - Logary 3.4.0
 - Logary 3.3.4-rc
 - Logary 3.3.3
 - Logary 3.3.2
 - Logary 3.3.1
 - Logary 3.3.0
 - Logary 3.2.0
 - Logary 3.1.2
 - Logary 3.1.0
 - Logary 3.0.3
 - Logary 3.0.2
 - Logary 3.0.1
 - Logary 3.0.0
 - Logary 2.6.0
 - Logary 5.0.0-beta.3
    Package not available.
      Message: Unable to retrieve package details for 'Logary'-5.0.0-beta.3
 - Logary 5.0.0-beta.2
    Package not available.
      Message: Unable to retrieve package details for 'Logary'-5.0.0-beta.2
  Conflict detected:
   - Dependencies file requested package Logary.Targets.Mixpanel: >= 0 prerelease*
   - Available versions:
     - (5.0.0-beta.3, [https://api.nuget.org/v3/index.json])
     - (5.0.0-beta.2, [https://api.nuget.org/v3/index.json])

The process is taking longer than expected.
Paket may still find a valid resolution, but this might take a while.
Performance:
 - Resolver: 3 seconds (1 runs)
    - Runtime: 280 milliseconds
    - Blocked (retrieving package details): 2 seconds (107 times)
    - Blocked (retrieving package versions): 1 second (1 times)
    - Not Blocked (retrieving package versions): 5 times
    - Not Blocked (retrieving package details): 11 times
 - Average Request Time: 113 milliseconds
 - Number of Requests: 26
 - Runtime: 4 seconds
Paket failed with
-> There was a version conflict during package resolution.
     Resolved packages:
      - Logary 2.6.0
     Conflict detected:
      - Dependencies file requested package Logary.Targets.Mixpanel: >= 0 prerelease*
      - Available versions:
        - (5.0.0-beta.3, [https://api.nuget.org/v3/index.json])
        - (5.0.0-beta.2, [https://api.nuget.org/v3/index.json])

     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).
	-  Unable to retrieve package details for 'Logary'-5.0.0-beta.2
	-> Couldn't get package details for package Logary 5.0.0-beta.2 on https://api.nuget.org/v3/index.json.
	-  Unable to retrieve package details for 'Logary'-5.0.0-beta.3
	-> Couldn't get package details for package Logary 5.0.0-beta.3 on https://api.nuget.org/v3/index.json.
	-  Unable to retrieve package details for 'Logary.Targets.Mixpanel'-5.0.0-beta.2
	-> Couldn't get package details for package Logary.Targets.Mixpanel 5.0.0-beta.2 on https://api.nuget.org/v3/index.json.
	-  Unable to retrieve package details for 'Logary.Targets.Mixpanel'-5.0.0-beta.3
	-> Couldn't get package details for package Logary.Targets.Mixpanel 5.0.0-beta.3 on https://api.nuget.org/v3/index.json.
	-  Unable to retrieve package details for 'Logary.Adapters.Facade'-5.0.0-beta.3
	-> Couldn't get package details for package Logary.Adapters.Facade 5.0.0-beta.3 on https://api.nuget.org/v3/index.json.
	-  Unable to retrieve package details for 'Logary'-5.0.0-beta.2
	-> Couldn't get package details for package Logary 5.0.0-beta.2 on https://api.nuget.org/v3/index.json.
	-  Unable to retrieve package details for 'Logary'-5.0.0-beta.3
	-> Couldn't get package details for package Logary 5.0.0-beta.3 on https://api.nuget.org/v3/index.json.

Activity

  1. forki commented on Apr 16, 2018

    @forki
    Member

    image

    so given your sample the resolver seems to work fine, but NuGet API doesn't give us details for these versions.

  2. haf commented on Apr 16, 2018

    @haf
    MemberAuthor

    Your screenshot shows the resolver failing and resolving the old version.

    Why can I install it with nuget in rider if there's no info given from the API?

  3. forki commented on Apr 17, 2018

    @forki
    Member
  4. haf commented on Apr 17, 2018

    @haf
    MemberAuthor
  5. maartenba commented on Apr 17, 2018

    @maartenba

    Ask internally? I have left Microsoft two years ago :-)

  6. haf commented on Apr 17, 2018

    @haf
    MemberAuthor
  7. forki commented on Apr 17, 2018

    @forki
    Member

    https://api.nuget.org/v3/registration3/logary/index.json doesn't show the beta versions.

    (I have a fallback to v3 working locally. But it's still an nuget server issue)

  8. forki commented on Apr 17, 2018

    @forki
    Member

    ok. I released a workaround. I does fallback to v2 API for this,

  9. matthid commented on Apr 17, 2018

    @matthid
    Member

    @forki Actually it was by design that v3 did not fallback to v2. This is because users can change their URL manually and it just hides bugs ;)

  10. forki commented on Apr 17, 2018

    @forki
    Member

    that wasn't a good design. ;-)

  11. forki commented on Apr 17, 2018

    @forki
    Member

    in all seriousness: I wish I had a better idea. but this is broken and hurts people

  12. matthid commented on Apr 17, 2018

    @matthid
    Member

    It uncovered this issue and we really need to fix the root cause and not fallback to v2...

  13. forki commented on Apr 17, 2018

    @forki
    Member
  14. matthid commented on Apr 17, 2018

    @matthid
    Member

    but this is broken and hurts people

    @haf is it really hurting? Can't you just put in the v2 feed url as a manual workaround?

  15. 3 remaining items

  16. matthid commented on Apr 17, 2018

    @matthid
    Member

    image

    RegistrationsBaseUrl/3.0.0-rc is what we currently use

  17. matthid commented on Apr 17, 2018

    @matthid
    Member

    I think the fix would be to prefer the /3.6.0 entry if it exists and fallback to what we use now. From my quick tests it looks like the APIs behave the same (at least in postman)

  18. matthid commented on Apr 17, 2018

    @matthid
    Member

    Currently we use PackageDisplayMetadataUriTemplate in the code and there is no corresponding entry for the -gz-semver2 endpoint. So the change is probably just a bit more difficult than just replacing the entry. I can send a PR on the weekend if noone can fix it until then (it should be quite straight forward).

  19. haf commented on Apr 17, 2018

    @haf
    MemberAuthor

    @matthid No I can't put v2, because then I'm not forwards compatible. I (generally) want my app repo to be up to date with best practises, so I want to use the latest for everything. Also, I'm not letting my users deal with this. It affects all semver2 nugets, so arguably paket is horribly broken for this use-case.

  20. matthid commented on Apr 17, 2018

    @matthid
    Member

    @haf I don’t agree. yes we need a prop

  21. matthid commented on Apr 17, 2018

    @matthid
    Member

    Sorry mobile ;). Yes we need a proper fix but until we have it changing urls is ok. it’s not like we broke anyone. it neve worked

  22. matthid commented on Apr 17, 2018

    @matthid
    Member

    You could have easily released a non-semver2 version as well.

  23. matthid commented on Apr 17, 2018

    @matthid
    Member

    Really all I'm trying to say is that there was not really a reason to rush into a workaround release. Though I agree that this is kind of a critical bug (and I was shocked when you reported it)

  24. maartenba commented on Apr 17, 2018

    @maartenba

    They are the same indeed, just the 3.6.0 version has SemVer 2 packages, the other one does not. NuGet client uses the fallback as well, I believe. Older NuGet.exe and derivatives use the non-SemVer2 version.

  25. added 2 commits that reference this issue on May 1, 2018
  26. haf commented on Nov 20, 2018

    @haf
    MemberAuthor

    Fixed in 2b7ad18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions