-
Notifications
You must be signed in to change notification settings - Fork 526
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
Cannot pin NETStandard.Library = 1.6.0 #2294
Comments
Did you try putting the AWS lambda packages in a different group? |
I only tried putting the net standard library in a separate group. Would you put all |
I'd divide them based on the framework restriction you want to enforce, if you're fine with those using the higher versions then put them with it |
Sorry, I don't follow. There is just one restriction:
And this fails with a different error:
Looking at the lock file it makes sense because paket resolved all those packages where |
maybe you want |
Well, I'd though about that and it worked once I put
I expected this option to give me "ancient" versions of dependencie but it actually installed latest matching stuff. For example Is it that I mistook
? |
Tbh paket is just not good for this scenario. I guess the resolver was not optimized for this scenario (where you have one condition which basically forces most packages to use an older version). But I think it's a really good test case... |
And additionally if all packages have '>= 1.6.0' (which I guess they have) paket is finding a perfectly valid resolution. so this is probably more a nuget design flaw than anything else... |
I finally got around to actually trying this myself, it only took 2m 2s for me to resolve this with the current alpha release of paket paket.dependencies & resulting lockfile @tpluscode is this what you wanted? |
but if the behavior we want to have is rolling back direct dependencies listed in
shoould force Microsoft.AspNet.Core.Mvc.Core to roll back until version (resolving these packages took |
Just to note #2294 (comment) from @cloudRoutine is just a workaround for now. IMHO the resolver should be smart enough to be able to find something with default settings as well... |
… to the resolution.
After #2307
With the
So that one is actually slower now :P |
Description
Similar to #2289, I seeming cannot install packages when I pin
NETStandard.Library 1.6.0
. This is required by AWS Lambda, but most recentMicrosoft.*
packages require version1.6.1
. I keep gettingthe
Paket may still find a valid resolution, but this might take a while
message but I never waited long enough for it to finish.Here's my intended dependencies file.
Repro steps
Use the above dependencies file and
paket install
Expected behavior
Should resolve older versions of packages which don't require
NETStandard.Library: >= 1.6.1
Actual behavior
It takes very long
Known workarounds
It is seemingly possible to pin all packages and their transitive dependencies but there are loads of them.
I also tried with groups but it keeps telling me that install fails because my project references two version of the
NETStandard.Library
package.The text was updated successfully, but these errors were encountered: