You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a key is specified in multiple config files, the values will get merged together. Numbers, strings, and booleans will use the value in the deeper config directory taking precedence over ancestor directories, where the home directory is the lowest priority. Arrays will be joined together with higher precedence items being placed later in the merged array.
I am finding that if I place some rustflags in ~/.cargo/config.toml and some in $myrepo/.cargo/config.toml, then cargo and cargo-config2 merge in reverse order - with I believe cargo implementing the spec behavior, and cargo-config2 doing it in reverse.
According to https://doc.rust-lang.org/nightly/cargo/reference/config.html#hierarchical-structure -
I am finding that if I place some rustflags in
~/.cargo/config.toml
and some in$myrepo/.cargo/config.toml
, then cargo and cargo-config2 merge in reverse order - with I believe cargo implementing the spec behavior, and cargo-config2 doing it in reverse.I have a repro here
https://github.com/nipunn1313/cargo_config_array_merge_repro
The text was updated successfully, but these errors were encountered: