We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4376eb8 commit bfe141eCopy full SHA for bfe141e
crates/cli/src/main.rs
@@ -178,14 +178,13 @@ fn parse_path_in_wsl(source: &str, wsl: &str) -> Result<String> {
178
.arg("--distribution")
179
.arg(distro_name)
180
.arg("--exec")
181
- .arg("wslpath")
182
- .arg("-m")
+ .arg("realpath")
+ .arg("-s")
183
.arg(&source.path)
184
.output()?;
185
186
let result = String::from_utf8_lossy(&output.stdout);
187
- let prefix = format!("//wsl.localhost/{}", distro_name);
188
- source.path = Path::new(result.trim().strip_prefix(&prefix).unwrap_or(&result)).to_owned();
+ source.path = Path::new(result.trim()).to_owned();
189
190
Ok(source.to_string(|path| path.to_string_lossy().into_owned()))
191
}
0 commit comments