Expected behaviour of build.env.passthrough in 0.2.2? #862
-
I recently updated cross to 0.2.2, and noticed that env passthrough via For a minimal reproduction, if I have a [build.env]
passthrough = ["CARGO_TERM_COLOR"] and run: CARGO_TERM_COLOR=never cross build --target aarch64-unknown-linux-gnu this will still give me a coloured output, as if the env var was not set or passed through. Note that in 0.2.1, this will give me an uncoloured output. However, if in 0.2.2, I instead write: [target.aarch64-unknown-linux-gnu.env]
passthrough = ["CARGO_TERM_COLOR"] and run the same command as above, then it will work properly. I'm not sure if this is expected behaviour or not, hence why I didn't reporting it as a bug/issue. Was the previous behaviour in 0.2.1 changed such that this is intended? For context, this is actually causing issues for me as I used to use an environment variable to trigger certain actions. As such, I would like to know if this is intended or not so I can adjust my GitHub workflows accordingly. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Update: See the comment below.
Just some extra information below, just to ensure you have the available information to update your actions. We also allow you to provide default values for passthrough variables and volumes (see #748), and that should be everything covering config sources. If you use both Let me double check though. |
Beta Was this translation helpful? Give feedback.
-
#863 has been merged, and I've documented the expected behavior above. We should be doing another patch release with the fixes here. |
Beta Was this translation helpful? Give feedback.
#863 has been merged, and I've documented the expected behavior above. We should be doing another patch release with the fixes here.