Open sunshowers opened 2 years ago
If people are curious how git does this, https://github.com/gitext-rs/git-config-env/tree/main/src has a rough implementation of parts of it.
Semi-related:
I got an impression that cargo doesn't give external subcommands much info, even cargo-clippy can't inherit a jobserver from cargo today.
Problem
If someone runs the command:
then the config isn't passed down to the plugin.
This was originally reported as https://github.com/nextest-rs/nextest/issues/498.
Steps
cargo --config 'build.target-dir="foo"' nextest run
target/
.(Note that
cargo nextest run --config 'build.target-dir="foo"'
works correctly, because nextest passes through Cargo configs.)Possible Solution(s)
Best solution might be to pass configs down as an environment variable that plugins can read.
Notes
No response
Version