-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
A-configurationArea: cargo config files and env varsArea: cargo config files and env varsA-layoutArea: target output directory layout, naming, and organizationArea: target output directory layout, naming, and organizationC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.
Description
Problem
Once build.build-dir
config is set, it seems that it cannot be unset by usual ways of overriding configuration (I assume the unstable.build-dir = true
is going away).
cargo b --config 'build.build-dir=false' # expected a string, but found a boolean
cargo b --config 'build.build-dir=""' # the build directory is set to an empty string
CARGO_BUILD_BUILD_DIR= cargo b # the build directory is set to an empty string
rustc bootstrap is incompatible with build-dir
, and the simplest solution would be to turn it off.
Proposed Solution
Perhaps allow false
as a valid value, similar to build = false
in Cargo.toml
. However, true
doesn't make sense in this case.
Notes
No response
Metadata
Metadata
Assignees
Labels
A-configurationArea: cargo config files and env varsArea: cargo config files and env varsA-layoutArea: target output directory layout, naming, and organizationArea: target output directory layout, naming, and organizationC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.