You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many (most?) Rust projects come with lock files that specify the exact versions of dependencies with which they are tested. Sometimes, they don't work with newer versions, which is why Cargo offers the --locked parameter to build with the dependency versions specified in the lock files.
Currently, pre-commit installs Rust tools without the --locked parameter. I suggest to use this parameter by default or offer a way to specify that a hook should be built using that parameter.
pre-commit --version
pre-commit 3.6.2
The text was updated successfully, but these errors were encountered:
does cargo not use the lock file if present by default? I was under the impression that --locked is only necessary to produce an error if it is missing
search you tried in the issue tracker
rust locked
describe your actual problem
Many (most?) Rust projects come with lock files that specify the exact versions of dependencies with which they are tested. Sometimes, they don't work with newer versions, which is why Cargo offers the
--locked
parameter to build with the dependency versions specified in the lock files.Currently, pre-commit installs Rust tools without the
--locked
parameter. I suggest to use this parameter by default or offer a way to specify that a hook should be built using that parameter.pre-commit --version
pre-commit 3.6.2
The text was updated successfully, but these errors were encountered: