Skip to content

Commit

Permalink
fix: windows local run path bug (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
oddgrd authored Mar 16, 2023
1 parent 9471ed5 commit 2d7b126
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cargo-shuttle/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ crossbeam-channel = "0.5.6"
crossterm = "0.25.0"
dialoguer = { version = "0.10.2", features = ["fuzzy-select"] }
dirs = "4.0.0"
dunce = "1.0.3"
flate2 = "1.0.25"
futures = "0.3.25"
git2 = "0.14.2"
Expand Down
4 changes: 2 additions & 2 deletions cargo-shuttle/src/args.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{
ffi::OsString,
fs::{canonicalize, create_dir_all},
fs::create_dir_all,
io::{self, ErrorKind},
path::PathBuf,
};
Expand Down Expand Up @@ -241,7 +241,7 @@ impl InitArgs {

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

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

0 comments on commit 2d7b126

Please sign in to comment.