fix: add dummy src/lib.rs in Dockerfile.debian for dep caching stage (#3553)

This commit is contained in:
Vadim Rutkovsky 2026-03-16 23:20:43 +01:00 committed by Roman Tataurov
parent c973439848
commit 533eee6336
No known key found for this signature in database
GPG Key ID: 70A51EF3185C334B

View File

@ -33,6 +33,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 \