Ignore [build]
in .cargo/config for cargo install
#2507
Labels
A-configuration
Area: cargo config files and env vars
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-install
I tried to install
cargo-edit
throughcargo install
. But it failed with:The reason was that the current directory contains a
.cargo/config
that overrides the default target. Socargo install
tried to build for that target, too.I found that a bit surprising since
cargo install
is close to something likeapt-get install
, which is independent of the current directory. Is there a reason whycargo install
doesn't just ignore.cargo/config
files?The text was updated successfully, but these errors were encountered: