-
Notifications
You must be signed in to change notification settings - Fork 525
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
Support for only using nuget v3 api #1205
Conversation
@@ -3,6 +3,7 @@ source https://nuget.org/api/v2 | |||
nuget Newtonsoft.Json redirects: on | |||
nuget Argu | |||
nuget FSharp.Core redirects: on | |||
nuget NuGet.Versioning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah "Adds a reference to NuGet.Versioning so that we can reuse there parsing logic for the new version range syntax."
I don't think that's a good idea. we already have parse logic and I think we should take that dependency. We're much faster with fixes if this little parse code is under our control.
I removed the dependency on |
One thing I didn't do, which could be a target for a future pr, is call the v3 apis whenever a v2 api is handed in. That might speed up the typical dependency resolution. |
Wooooo! |
Can be used by setting
source https://api.nuget.org/v3/index.json
in paket.dependenciesAdds a reference to NuGet.Versioning so that we can reuse there parsing logic for the new version range syntax.
I wrote this so that paket could be used against nuget servers that do not support the v2 api. The v3 api, while still crazy in places, is much easier to implement.