You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[1/2] STEP 4/7: COPY src/rust/Cargo.toml src/rust/Cargo.lock ./
Error: building at STEP "COPY src/rust/Cargo.toml src/rust/Cargo.lock ./":
checking on sources under "vordr": copier: stat: "/src/rust/Cargo.lock":
no such file or directory
Root cause
vordr/src/rust/Cargo.toml exists; vordr/src/rust/Cargo.lock does not. The lockfile is missing from the repository despite being expected by the Containerfile and being a Cargo best practice for binary crates (reproducible builds).
Fix
Either:
cd src/rust && cargo generate-lockfile and commit the result, or
Drop Cargo.lock from the COPY (less reproducible).
Symptom
container-stack/vordr/ContainerfileSTEP 4/7 fails:Root cause
vordr/src/rust/Cargo.tomlexists;vordr/src/rust/Cargo.lockdoes not. The lockfile is missing from the repository despite being expected by the Containerfile and being a Cargo best practice for binary crates (reproducible builds).Fix
Either:
cd src/rust && cargo generate-lockfileand commit the result, orCargo.lockfrom the COPY (less reproducible).Cross-reference