Skip to content

Commit

Permalink
Use --locked when installing tools via Cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
mlegner committed Mar 21, 2024
1 parent 716da1e commit b0aa6cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pre_commit/languages/rust.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,6 @@ def install_environment(

for args in packages_to_install:
cmd_output_b(
'cargo', 'install', '--bins', '--root', envdir, *args,
'cargo', 'install', '--bins', '--locked', '--root', envdir, *args,
cwd=prefix.prefix_dir,
)

0 comments on commit b0aa6cd

Please sign in to comment.