Skip to content

Commit

Permalink
Use canonicalized path in command
Browse files Browse the repository at this point in the history
The command is not run from the same working directory, so using
relative paths was causing failures.
  • Loading branch information
kylewillmon committed May 9, 2023
1 parent 829104d commit 380d222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lockfile_generator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub trait Generator {
.collect::<Result<Vec<_>>>()?;

// Generate lockfile at the target location.
let mut command = self.command(manifest_path);
let mut command = self.command(&canonicalized);
command.current_dir(project_path);
command.stdin(Stdio::null());
command.stdout(Stdio::null());
Expand Down

0 comments on commit 380d222

Please sign in to comment.