fix: emulate wally deps fs placement to wally's

Fixes #14
This commit is contained in:
daimond113 2024-12-07 20:59:01 +01:00
parent 4d3ddd50cb
commit f6fce8be9e
No known key found for this signature in database
GPG key ID: 3A8ECE51328B513C

View file

@ -52,6 +52,18 @@ impl DependencyGraphNode {
name: &PackageNames, name: &PackageNames,
version: &Version, version: &Version,
) -> PathBuf { ) -> 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() path.as_ref()
.join(name.escaped()) .join(name.escaped())
.join(version.to_string()) .join(version.to_string())