-
Notifications
You must be signed in to change notification settings - Fork 520
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
Error while parsing <dependency id="Newtonsoft.Json" version="*" /> #2266
Comments
I think they changed something to allow this nightmare. A fix is underway - but will take some time since I want to run all integration tests |
NOTE: Someone should do it properly - I just fixed the error. but it seems nuget ranges are now changed and our parser needs adjustments |
also related: 1575266 |
reopened in order to let someone else fix it properly. but paket 4.5.1 release build is running and reported error will be fixed |
ok fix is released. |
Reading the nuspec/nuget/dotnet docs, I can't find any references to using a wildcard without preceding numbers. Also, JWT v2.3.1 seems to be no longer available on NuGet, and the next version 2.3.2 does have a version specified for the dependency. However, all previous beta and alpha versions - from 2.0.0-beta2 up to 2.3.0-beta - still have the bogus dependency, which means Nuget.org does technically allow it. In version 2.0.0-beta2, where the offending nuspec line first appeared, it had no "version" attribute at all, rather than an asterisk. This means that the asterisk was added during packing. Considering the lack of documentation for this "feature", I'm inclined to think that this is just a bug in Nuget. |
I think * should be parsed as >= 0 |
|
Paket had always been different in install behavior. I could write endless essays about that. When we do convert we try to do a conservative conversion and keep it as aligned as possible to nuget. But sometimes that's not really possible. |
Ok, I suspected that would be the answer. But what about the first point? Didn't your commit already make it parse as ">= 0"? Should this case be closed then? |
yes I think I did that |
Description
Paket version 4.5.0
Repro steps
Please provide the steps required to reproduce the problem
If possible then please create a git repository with a repro sample or attach a zip to the issue.
Expected behavior
I'm not sure if this is a nuspec authoring error or a paket error.
Actual behavior
Known workarounds
The text was updated successfully, but these errors were encountered: