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.)