support x fmt
for sub and outside of rust directories
#108004
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
When we run
../x fmt compiler
inlibrary
directory, the following error will occur:Same problem will occur also when we are outside of the
rust
directory like:The problem here is,
x fmt
expects the complete path for target directory in order to work. For example, instead of running../../rust/x fmt library/std --check
, if we run../../rust/x fmt ../../rust/library/std --check
, it will work without any problem.Related zulip topic: https://rust-lang.zulipchat.com/#narrow/stream/326414-t-infra.2Fbootstrap/topic/uncomfortable.20use.20of.20.60x.20fmt.60.20from.20outside.20of.20rust.20dir
The text was updated successfully, but these errors were encountered: