Skip to content

Commit

Permalink
Fix symlink for windows. (#464)
Browse files Browse the repository at this point in the history
Fix #417.
The parameters for symlink_file for windows were in wrong order.
  • Loading branch information
lehrbaumm authored Jan 29, 2022
1 parent 80772c1 commit 3bf358a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impl/src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ fn make_symlink(src: &Path, dest: &Path) -> Result<()> {
/// Create a symlink file on windows systems
#[cfg(target_family = "windows")]
fn make_symlink(src: &Path, dest: &Path) -> Result<()> {
std::os::windows::fs::symlink_file(dest, src)
std::os::windows::fs::symlink_file(src, dest)
.with_context(|| "Failed to create symlink for generating metadata")
}

Expand Down

0 comments on commit 3bf358a

Please sign in to comment.