Sitelet https://github.com/fsprojects/Paket/issues/988
Skip to content

Querying for NuGet packages using v3 feed doesn't include prereleases #988

Description

@carolynvs

I have a beta release of openstack.net on MyGet but Paket is unable to find it. I believe the problem is that when Paket queries for the available versions, it is not using the prerelease query string parameter. Is my paket.dependencies file incorrect or is this a bug?

paket.dependencies

source https://nuget.org/api/v2
source https://www.myget.org/F/openstacknetsdk/api/v2

nuget openstack.net !>= 1.5.0 prerelease

From Fiddler, I can see that Paket detects that a v3 feed is available and automatically uses that. However this is the query it sends to MyGet:

GET http://myget.org/F/openstacknetsdk/api/v3/autocomplete?id=openstack.net

{"@context":{"@vocab":"http://schema.nuget.org/schema#"},"totalHits":0,"data":[]}

According to the MyGet team, this is what Paket should be using to query:

GET http://myget.org/F/openstacknetsdk/api/v3/autocomplete?id=openstack.net&prerelease=true

{"@context":{"@vocab":"http://schema.nuget.org/schema#"},"totalHits":3,"data":["1.5.0.0-beta2","1.5.0-beta1","1.5.0-beta-1"]}

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions