-
|
I just updated crane and I don't know if this is the intended behavior, I think it wasn't like this before. This happens on both my MacOS machine and Linux (GHA runner). The dependencies are compiled once in github:ipetkov/crane at packages.cas-api =
let
commonArgs = {
src = craneLib.cleanCargoSource ./.;
strictDeps = true;
# FIXME: make tests pass and enable this again
doCheck = false;
CARGO_PROFILE = "release";
dontStrip = true;
inherit nativeBuildInputs buildInputs;
};
in
craneLib.buildPackage (
commonArgs
// {
cargoArtifacts = craneLib.buildDepsOnly commonArgs;
}
);Logs |
Beta Was this translation helpful? Give feedback.
Answered by
ipetkov
Dec 26, 2025
Replies: 1 comment 7 replies
-
|
pinning crane to v0.21.2 fixes this (not sure about 0.21.3 because there's a ld regression on macos) |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for the reproduction! I spotted the issue: sadly on Darwin builds the derivation is built in a directory with a different name between the final and deps-only derivations. Different strings in
CARGO_BUILD_RUSTFLAGSresults in the cache being invalidated.I've opened #950 which will effectively disable this behavior when building on Darwin hosts