This is a meta issue to coordinate the different requests for changing how cargo searches for config files. Currently there is very little control over this process, and there are several aspects that can be confusing or surprising.
Instead of incrementally making changes to add additional knobs, the Cargo team would like to see an overall strategy to make it flexible enough to accommodate most of the requested issues while still remaining relatively simple to use and understand. A change like this would likely need to go through the RFC process to flesh out the design and make sure any changes consider the big picture.
Linking issues and PRs:
This is a meta issue to coordinate the different requests for changing how cargo searches for config files. Currently there is very little control over this process, and there are several aspects that can be confusing or surprising.
Instead of incrementally making changes to add additional knobs, the Cargo team would like to see an overall strategy to make it flexible enough to accommodate most of the requested issues while still remaining relatively simple to use and understand. A change like this would likely need to go through the RFC process to flesh out the design and make sure any changes consider the big picture.
Linking issues and PRs:
--ignore-local-configflag for ignoring local.cargo/config.tomlfiles #8643 — Add a --ignore-local-config flag for ignoring local .cargo/config.toml files--ignore-local-configflag #8652 — Add a unstable --ignore-local-config flag.cargo#9306 — Support multiple cargo configuration files in.cargo/.