Closed samuela closed 7 months ago
Given that I see 3rd party dependencies, it could be that pasing of args to implicit XDepsOnly
is breaking. Make sure to split your build into explicit build-deps-only and build steps using cargoArtifacts
passing.
Why do I have to do this? Why doesn't it happen automatically?
I think it is happening automatically and going wrong. :D
Why do I have to do this? Why doesn't it happen automatically?
The short answer is when buildDepsOnly
runs we strip out all sources and stub out any binary targets so that if you were to add a new target it would not require rebuilding the entire workspace from scratch. There's an existing issue for this (https://github.com/ipetkov/crane/issues/268) so will dedup this to there
The documentation suggests that adding
cargoExtraArgs = "--bin=api";
will cause crane to only build theapi
binary, as incargo build --bin=api
. However, I'm seeing the following error when doing so:Am I missing something? Is this functioning as intended?