Skip to content

[container-stack/vordr] Cargo.lock not committed; Containerfile COPY fails #14

@hyperpolymath

Description

@hyperpolymath

Symptom

container-stack/vordr/Containerfile STEP 4/7 fails:

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

Cross-reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions