Skip to content

Commit

Permalink
fix1
Browse files Browse the repository at this point in the history
  • Loading branch information
Geod24 committed Jan 6, 2025
1 parent 8332956 commit ce2b9bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/dub/test/selections_from_parent_dir.d
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ dependency "pkg1" version="*"`);
dub.loadPackage();
assert(dub.project.hasAllDependencies());
// the relative path should have been adjusted (`pkg1` => `../pkg1`)
assert(dub.project.selections.getSelectedVersion(PackageName("pkg1")).path == NativePath("../pkg1"),
version (Windows)
immutable AdjustedPath = NativePath(`..\pkg1`);
else
immutable AdjustedPath = NativePath(`../pkg1`);
assert(dub.project.selections.getSelectedVersion(PackageName("pkg1")).path == AdjustedPath,
dub.project.selections.getSelectedVersion(PackageName("pkg1")).path.toString());

// invoking `dub upgrade` for the pkg2 root package should generate a local dub.selections.json,
Expand Down

0 comments on commit ce2b9bf

Please sign in to comment.