Skip to content
Snippets Groups Projects
Commit 2c953639 authored by vlorentz's avatar vlorentz
Browse files

Prevent Cargo from trying to update swh-graph's dependencies

The --locked option forces Cargo to use the lockfile declared by swh-graph,
which was carefully written to avoid conflicts between two Arrow versions
that are used as transitive dependencies through different packages.

When Cargo tries to update one, it ends up with incompatible versions,
causing a compilation failure.
parent b6788895
No related branches found
No related tags found
No related merge requests found
......@@ -233,7 +233,7 @@ RUN --mount=type=secret,mode=0444,id=SCCACHE_REDIS_ENDPOINT \
env-from-secrets \
RUSTC_WRAPPER=sccache \
CARGO_INCREMENTAL=0 \
cargo install swh-graph swh-graph-grpc-server --all-features
cargo install swh-graph swh-graph-grpc-server --all-features --locked
FROM build_bookworm_with_packages AS build_bookworm_with_packages_and_rust
COPY --from=build_rust /home/${user}/.cargo/bin/rage /home/${user}/.cargo/bin/rage-keygen /home/${user}/.cargo/bin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment