-
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
lowest_matching no longer respected from v5.125.3 and onwards #3032
Comments
Can you try changing the version requirement to |
I just tried with this
Latest Paket (5.133.0) resolves both to 9.0.1. |
|
for me that string looks like bug in parser. we should have rejected it. regarding version: @Allon-Guralnek expect 9.0.1 which it resolves to for me. |
The question is: Is that valid syntax or an issue with the parser that we accept it (and do something random with it). |
👍 |
The question is what the parser thinks the constraint is. If it is equal to |
looks like someone explicitly supported it |
@Allon-Guralnek To get to the root of this issue: Maybe it's because of some other dependency that paket upgrades to 10? Can you post your full dependencies file or check with |
Its seems I have wandered into quite a fundamental issue as to what the dependency syntax should be. I too found that line to be rather odd. But let's get back to the issue at hand. I switched to the following more accepted syntax, but the same bug persists:
Since it works for all of you as a standalone dependency, I must assume it has to do with other dependencies in our
As you can see, the package resolution order is a bit different, and different version of Both versions produce the exact same
BTW, since when did you have that awesome |
So |
yes confirmed. it's a bug. possible fix in #3033 |
I can confirm the issue with |
Description
It seems that lowest_matching was respected until 5.124.1 but starting from 5.125.3 and up to the latest version (5.133.0) it doesn't work anymore (for us).
Repro steps
We have the following line in our solution:
This should resolve to Newtonsoft.Json 9.0.1 but any NuGets created in that solution should declare a NuGet dependency of [9.0.1, 11.0) (i.e. both 9.x and 10.x). Starting from Paket 5.125.3, it resolves to Newtonsoft.Json 10.0.3.
Expected behavior
The supplied dependency should resolve to package Newtonsoft.Json 9.0.1
Actual behavior
The supplied dependency resolves to package Newtonsoft.Json 10.0.3
Known workarounds
Using Paket version 5.124.1
The text was updated successfully, but these errors were encountered: