-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
E-easyS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
Description
While trying to make rust-analyzer
use the bootstrap version of rustfmt
inside rustc
, @jonas-schievink discovered that using a relative path to rustfmt
won't work:
Ah, looks like it adjusts the working dir dynamically, so it can't find the command with a relative path
As a workaround, you can specify an absolute path, but I was thinking we could canonicalize the first "shell word" if it looks like a path (e.g., ./rustfmt
or build/rustfmt
but not rustfmt2
). This would require some sort of library that can do shell word-splitting, however. Perhaps there is a better way?
The which
crate would be helpful for part of this.
Metadata
Metadata
Assignees
Labels
E-easyS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now