Skip to content

fix: copy Cargo.lock into Rust gatekeeper Docker build#412

Merged
macterra merged 1 commit intomainfrom
fix/rust-gatekeeper-cargo-lock
Apr 15, 2026
Merged

fix: copy Cargo.lock into Rust gatekeeper Docker build#412
macterra merged 1 commit intomainfrom
fix/rust-gatekeeper-cargo-lock

Conversation

@macterra
Copy link
Copy Markdown
Collaborator

The cid crate's transitive dependency core2 v0.4.0 was yanked from crates.io. Cargo can still use yanked versions when they appear in a lockfile, but the Dockerfile only copied Cargo.toml, so every build resolved dependencies from scratch and hit the yank.

This copies Cargo.lock alongside Cargo.toml so the builder uses pinned, known-good versions.

Fixes the failing Build & Test Docker images (rust gatekeeper) CI check.

The cid crate's transitive dependency core2 v0.4.0 was yanked from
crates.io.  Cargo can still use yanked versions when they appear in a
lockfile, but the Dockerfile only copied Cargo.toml, so every build
resolved from scratch and hit the yank.

Copy Cargo.lock alongside Cargo.toml so the builder uses pinned,
known-good versions.
@macterra macterra merged commit 4c59e24 into main Apr 15, 2026
25 checks passed
@macterra macterra deleted the fix/rust-gatekeeper-cargo-lock branch April 15, 2026 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant