Skip to content

Commit

Permalink
fix: emulate wally deps fs placement to wally's
Browse files Browse the repository at this point in the history
Fixes #14
  • Loading branch information
daimond113 committed Dec 7, 2024
1 parent 4d3ddd5 commit f6fce8b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/lockfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit f6fce8b

Please sign in to comment.