Skip to content

Commit b8995dc

Browse files
hyperpolymathclaude
andcommitted
fix(container): copy crates/ into minimal Containerfile build context
The root `echidna` package is a Cargo workspace whose members include crates/{echidna-core,echidna-core-spark,echidna-mcp,echidna-wire,typed_wasm}. Stage-1 only COPYed Cargo manifests + src/rust + src/interfaces, so `cargo build --release --bin echidna` failed reading /build/crates/echidna-core/Cargo.toml (No such file or directory). Pre-existing breakage (container-ci.yml has been red on main); surfaced by #73's container-ci touch. Adds `COPY crates ./crates`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 62cad9d commit b8995dc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Containerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ WORKDIR /build
2626
COPY Cargo.toml Cargo.lock ./
2727
COPY src/rust ./src/rust
2828
COPY src/interfaces ./src/interfaces
29+
# The root `echidna` package is a Cargo workspace whose members include
30+
# crates/* (echidna-core, -core-spark, -mcp, -wire, typed_wasm). Cargo
31+
# loads every member manifest when building the bin, so the crates/ tree
32+
# must be in the build context too — omitting it fails the build with
33+
# `failed to read /build/crates/echidna-core/Cargo.toml`.
34+
COPY crates ./crates
2935

3036
RUN cargo build --release --bin echidna
3137

0 commit comments

Comments
 (0)