-
Notifications
You must be signed in to change notification settings - Fork 2.9k
cargo config get doesn't seem to pick up RUSTFLAGS or RUSTDOCFLAGS #12087
Copy link
Copy link
Open
Labels
A-documenting-cargo-itselfArea: Cargo's documentationArea: Cargo's documentationA-rustflagsArea: rustflagsArea: rustflagsC-bugCategory: bugCategory: bugE-hardExperience: HardExperience: HardS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Z-cargo-configNightly: cargo config subcommandNightly: cargo config subcommand
Metadata
Metadata
Assignees
Labels
A-documenting-cargo-itselfArea: Cargo's documentationArea: Cargo's documentationA-rustflagsArea: rustflagsArea: rustflagsC-bugCategory: bugCategory: bugE-hardExperience: HardExperience: HardS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Z-cargo-configNightly: cargo config subcommandNightly: cargo config subcommand
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem
cargo config get build.rustdocflagsandcargo config get build.rustflagsdo not seem to behave as I would have expected.If the respective environment variables are set (i.e.
RUSTDOCFLAGSandRUSTFLAGS) but no value is set in.cargo/config.toml, I'd expect the environment variable value to be returned.Instead, the command fails with:
Steps
and
Possible Solution(s)
No response
Notes
Is this intended behaviour?
Version
No response