Repository: comtrya/comtrya (language: rust)

Issue:
bug: manifest directory resolution fails when falls inside a symlink
We try to strip the prefix off the manifest directory (line 29 of manifest/mod) and this fails when the resolution of the path isn't canonical.


Discussion / hints:

Fix patch:
diff --git a/src/main.rs b/src/main.rs
index 5c6d8cf8..4d883a2b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -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!();


Test patch: