Closed paymog closed 5 months ago
On the surface, it looks correct. Do you have build logs to share?
(The resolver warning has nothing to do with cargo-chef
, that's a cargo
warning that you need to handle)
Yup, here are some build logs: https://gist.github.com/paymog/b71cc9d87add2f8087f97f70ad257f4c
FWIW I don't see that resolver warning when building without cargo-chef
Yup, here are some build logs: https://gist.github.com/paymog/b71cc9d87add2f8087f97f70ad257f4c
FWIW I don't see that resolver warning when building without
cargo-chef
These are the build logs from a fresh run (i.e. this line would come from the cache otherwise). I need the build logs for a second run that has a warm cache to understand if things are working or not.
Whoops, sorry about this. These logs should have that stage cached.
From the logs I can infer that you have a rust-toolchain.toml
file and that it points to an older version of Rust than the one bundled in cargo-chef
's Docker image.
The best course of action, in that case, is to "sync" the Rust version ahead of time—see this as an example.
Hmm, I'm not using the cargo-chef
docker image - I'm using the chef
planner image as shown here
It's the same, you're getting the latest Rust toolchain but your toolchain file wants 1.68.
That seems to have fixed it, thank you for your help!
I'm trying to add cargo chef to this open source project. I've modified the Dockerfile like so. When I try to build this, I see a full recompilation happening during the main build command. I also see a warning emitted during the cooking phase
Here's the recipe.json file that gets generated.
The docker build command I use is
I checked one of the
*.d
files undertarget/release/deps
and I see the hardcoded paths starting with/graph-node
which seems correct to me.