Skip to content

Commit

Permalink
fix: ensure we canonicalize manifest directory in-case it's a symlink
Browse files Browse the repository at this point in the history
This is a problem because we attempt to "strip" the manifest directory as a prefix during some file.* operations and this fails when the path hasn't been resolved / canonicalized properly

Closes #146
  • Loading branch information
rawkode committed Mar 18, 2022
1 parent 802ae58 commit 5309d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ fn main() -> anyhow::Result<()> {
});

let manifest_directory = match manifest_directory {
Some(dir) => dir,
Some(dir) => dir.canonicalize().unwrap(),
None => {
error!("Failed to find manifests at {}", &manifest_location);
panic!();
Expand Down

0 comments on commit 5309d5d

Please sign in to comment.