Use --locked when cargo installing stellar-xdr cli.
Why
When cargo install is used without --locked it ignores the Cargo.lock file stored in the crate. Without the lock file cargo will pick the most recent versions of dependencies that match the selections specified in the Cargo.toml. It prevents builds from being reproducible.
What
Use --locked when cargo installing stellar-xdr cli.
Why
When cargo install is used without --locked it ignores the Cargo.lock file stored in the crate. Without the lock file cargo will pick the most recent versions of dependencies that match the selections specified in the Cargo.toml. It prevents builds from being reproducible.