From f6fce8be9e2671b834136a80494181e57155b41d Mon Sep 17 00:00:00 2001 From: daimond113 <72147841+daimond113@users.noreply.github.com> Date: Sat, 7 Dec 2024 20:59:01 +0100 Subject: [PATCH] fix: emulate wally deps fs placement to wally's Fixes #14 --- src/lockfile.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/lockfile.rs b/src/lockfile.rs index e776b66..883ee38 100644 --- a/src/lockfile.rs +++ b/src/lockfile.rs @@ -52,6 +52,18 @@ impl DependencyGraphNode { name: &PackageNames, version: &Version, ) -> PathBuf { + if self.pkg_ref.like_wally() { + return path + .as_ref() + .join(format!( + "{}_{}@{}", + name.as_str().0, + name.as_str().1, + version + )) + .join(name.as_str().1); + } + path.as_ref() .join(name.escaped()) .join(version.to_string())