TIL that

cargo —locked {build,test}

works like

cargo {build,test} —locked

But

cargo —locked clippy

works like:

cargo clippy

That is, the `—locked` is ignored, but the command still “works.” This is the case for any command not built into Cargo, it seems. So make sure you put that flag in the right place.

(TIL, but I’m pretty sure I’ve learned it multiple times.)

0

If you have a fediverse account, you can quote this note from your own instance. Search https://indieweb.social/users/briansmith/statuses/116178963211387856 on your instance and quote it. (Note that quoting is not supported in Mastodon.)