-
Hello. I've been scratching my head on this for a while, and I'm not sure what to do. We have some scripts meant for use in CI. They invoke Here's the flake.nix. This is what our wrapper script looks like. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I'm not entirely certain what is happening there. Here's a few points which may be of interest:
If any part of your build is requiring the sources of stdlib crates to be built, you may need to add I noticed that this build script is running a cargo build from inside of a cargo build. Not sure if there could be some funny business there (maybe the inner invocation is not inheriting arguments/environment variables properly?). I would consider debugging that invocation directly in your CI and see if anything interesting pops up... Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the thoughtful reply. Upon more digging, I've found that -- for a reason I've not yet determined -- the PATH passed to the build script has Now I have to figure out why cargo is doing that! |
Beta Was this translation helpful? Give feedback.
-
I haven't yet gotten to the bottom of why cargo (it seems) is prepending to the PATH. But I was able to solve the issue by removing the .cargo/bin directory in CI. Thanks for your help! |
Beta Was this translation helpful? Give feedback.
I haven't yet gotten to the bottom of why cargo (it seems) is prepending to the PATH. But I was able to solve the issue by removing the .cargo/bin directory in CI.
Thanks for your help!