-
Notifications
You must be signed in to change notification settings - Fork 256
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
If lock file is deleted, restore does not generate lock file on NoOp #7807
Comments
Please work with @nkolev92 to understand how to add the existance of this file to noop calculation. |
What we do with the rest of the files (nuget.g.targets/props) is we validate their existence. No-Op should not validate the integrity of the lock file during the check for performance considerations. Making it aware that the property being set requires the existence of a lock file is sufficient I think. What I mean with this is:
will not be caught, but I think that's ok. |
Relevant code; |
We can solve the problem in the scenario mentioned above. That is, Enable RestorePackagesWithLockFile by setting the property to true, run first restore to generate the lock file, delete the lock file, run second restore will fail the No-op and regenerate the lockfile. But we have another scenario: enable restore package with lock file by generating a lock file but not setting the property, then the first restore will fail the No-op and re-generate lock file. Then we delete the lockfile and run the second restrore. Since there is no property set and no lock file exists, no lockfile would be generated. And it would No-op successfully. Is this result correct? Thanks! @anangaur |
Yes this is as expected |
Steps:
RestorePackagesWithLockFile
for a project--force
)Actual:
Expected:
The text was updated successfully, but these errors were encountered: