cargo install
ignores local source replacement
#6397
Labels
A-configuration
Area: cargo config files and env vars
cargo install
ignores local source replacement
#6397
Problem
Since #6026,
cargo install
only loads configuration from~/.cargo/config
. However, the workflow for tools like cargo-vendor is to create.cargo/config
in the current directory for source replacement. We do this for Fedora packaging too. Now that local config is ignored, so install tries to use crates.io again (which fails in Fedora offline builds).Steps
(in a crate dir that uses some crates.io dependencies)
./vendor/
.Possible Solution(s)
As a workaround,
env CARGO_HOME=$PWD/.cargo cargo install ...
seems to work.Longer term, maybe we need to scale back #6026 to more tightly address the problems it was trying to address (#6025, #5850), but I don't know the best policy for which
config
s to use.Notes
Output of
cargo version
:The text was updated successfully, but these errors were encountered: