-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Support dotnet tool restore --locked-mode #16003
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
We have package source mapping support for restore and tools which is the recommended way of doing this. Tools don't need a lock file because the configuration manifest specifies the version and doesn't support transitive dependencies. |
The same justification could be used for removing content hashes from NuGet package lock files. After all, the exact version is already specified there, and package source mapping together with repository signatures and HTTPS should ensure that the package is not tampered with. Those cannot detect government coercion or other insider attacks at the package repository though. The content hash can detect those for previously resolved versions, although not for newly published versions. |
dotnet restore
has--locked-mode
for repeatable restores. The same kind of option should be available fordotnet tool
to verify tool identity.The text was updated successfully, but these errors were encountered: