Skip to content

Commit 2d7b126

Browse files
authored
fix: windows local run path bug (#721)
1 parent 9471ed5 commit 2d7b126

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cargo-shuttle/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ crossbeam-channel = "0.5.6"
2222
crossterm = "0.25.0"
2323
dialoguer = { version = "0.10.2", features = ["fuzzy-select"] }
2424
dirs = "4.0.0"
25+
dunce = "1.0.3"
2526
flate2 = "1.0.25"
2627
futures = "0.3.25"
2728
git2 = "0.14.2"

cargo-shuttle/src/args.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::{
22
ffi::OsString,
3-
fs::{canonicalize, create_dir_all},
3+
fs::create_dir_all,
44
io::{self, ErrorKind},
55
path::PathBuf,
66
};
@@ -241,7 +241,7 @@ impl InitArgs {
241241

242242
// Helper function to parse and return the absolute path
243243
fn parse_path(path: OsString) -> Result<PathBuf, String> {
244-
canonicalize(&path).map_err(|e| format!("could not turn {path:?} into a real path: {e}"))
244+
dunce::canonicalize(&path).map_err(|e| format!("could not turn {path:?} into a real path: {e}"))
245245
}
246246

247247
// Helper function to parse, create if not exists, and return the absolute path

0 commit comments

Comments
 (0)