fix: add dummy src/lib.rs in Dockerfile for dep caching stage

This commit is contained in:
argenis de la rosa 2026-03-14 13:49:19 -04:00 committed by Roman Tataurov
parent 43b0615f16
commit c877259727
No known key found for this signature in database
GPG Key ID: 70A51EF3185C334B

View File

@ -18,6 +18,7 @@ COPY crates/robot-kit/Cargo.toml crates/robot-kit/Cargo.toml
# Create dummy targets declared in Cargo.toml so manifest parsing succeeds.
RUN mkdir -p src benches crates/robot-kit/src \
&& echo "fn main() {}" > src/main.rs \
&& echo "" > src/lib.rs \
&& echo "fn main() {}" > benches/agent_benchmarks.rs \
&& echo "pub fn placeholder() {}" > crates/robot-kit/src/lib.rs
RUN --mount=type=cache,id=zeroclaw-cargo-registry,target=/usr/local/cargo/registry,sharing=locked \