Skip to content

Commit aae0c67

Browse files
committed
fix: clone crewai-rust in Docker build — path dep resolution
Cargo validates all path dependencies at workspace resolution time, even optional ones. The `crewai-vendor` dep points to `../crewai-rust` which resolves to `/crewai-rust` from WORKDIR `/build`. Added a git clone step matching the existing rustynum pattern. https://claude.ai/code/session_01EHNZhSmJ52FGyDxtCFgzXo
1 parent 501891d commit aae0c67

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ COPY . .
4646
RUN if [ ! -f vendor/rustynum/rustynum-rs/Cargo.toml ]; then \
4747
git clone --depth 1 https://github.com/AdaWorldAPI/rustynum vendor/rustynum; \
4848
fi
49+
# crewai-rust: path = "../crewai-rust" → resolves to /crewai-rust from /build
50+
RUN if [ ! -f /crewai-rust/Cargo.toml ]; then \
51+
git clone --depth 1 https://github.com/AdaWorldAPI/crewai-rust /crewai-rust; \
52+
fi
4953

5054
# Features to enable (flight enables Arrow Flight gRPC)
5155
# NOTE: lancedb feature has API compatibility issues - enable after fixing lance module

0 commit comments

Comments
 (0)