-
Notifications
You must be signed in to change notification settings - Fork 252
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
RestoreLockedMode=true & RestoreForceEvaluate=true should error #8222
Comments
Agree. But based on the options semantic meaning, shouldn’t it fail only if there needs to lock file update/modify? |
They feel like different commands :) Personally think error is better. Do we see a scenario where doing this makes sense? Regardless though, currently the behavior is respecting ForceEvaluate and not considering RestoreLockedMode, which is counter to both our expectations. |
There is a corner case but I think for now, an error should be good enough. |
Just to add |
fyi @rrelyea //cc @NuGet/nuget-client If anyone is interested in taking this in week 3. |
As I know you've been familiarizing yourself with lock file stuff, here's a lock file bug, that you can look into. |
Currently that's not the case.
Repro steps
The last one should fail, as the instructions do not make sense.
From skimming the code, RestoreForceEvaluate takes precedence.
https://github.com/NuGet/NuGet.Client/blob/bdcec93681afdd1f5cd553af07414a3b3d9a866c/src/NuGet.Core/NuGet.Commands/RestoreCommand/RestoreCommand.cs#L462
//cc @anangaur
It's a trivial fix, so prioritize if you see a need for it.
The text was updated successfully, but these errors were encountered: