rust-lang / rls

Repository for the Rust Language Server (aka RLS)
Other
3.52k stars 257 forks source link

Usage of cargo's target-dir not consistent with cargo for relative paths #1745

Open dhardy opened 3 years ago

dhardy commented 3 years ago

My Cargo config looks like this:

$ cd $HOME
$ cat .cargo/config 
[build]
target-dir = ".cache/cargo"

Cargo resolves this to $HOME/.cache/cargo. Interpretation of relative paths within config files is detailed here.

When using RLS, I get the following within my project directory:

$ ls .cache/cargo/
CACHEDIR.TAG  rls

RLS's interpretation of this is here.

Related: #1167 #527