multiversx / mx-sdk-rust-contract-builder

Docker image (and wrappers) for reproducible contract builds (Rust).
MIT License
1 stars 2 forks source link

Ensure no Cargo.lock changed during build #64

Closed andreibancioiu closed 4 months ago

andreibancioiu commented 4 months ago

Additional safety mechanism - to ensure reproducible builds.

Fixes #48.

Ensure there are no changes within Cargo.lock files during build.

Even if --locked is passed to cargo build, it's still possible that Cargo.lock files are created (think of the Cargo.lock at the workspace level). We won't allow this anymore - all Cargo.lock files must be present when starting the build (and no change during build is allowed).