Skip to content

Commit

Permalink
Dependency: Change format for path-based dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Geod24 committed Jul 15, 2022
1 parent 156d501 commit f7c57b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion source/dub/dependency.d
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ struct Dependency {
if (!repository.empty) {
ret ~= repository.toString~"#";
}
ret ~= versionSpec;
if (path.empty)
ret ~= versionSpec;
if (optional) {
if (default_) ret ~= " (optional, default)";
else ret ~= " (optional)";
Expand Down
2 changes: 1 addition & 1 deletion test/expected-issue1037-output
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Unresolvable dependencies to package gitcompatibledubpackage:
b >=0.0.0 @DIR/b depends on gitcompatibledubpackage ~>1.0.2
b @DIR/b depends on gitcompatibledubpackage ~>1.0.2
issue1037-better-dependency-messages ~master depends on gitcompatibledubpackage 1.0.1

0 comments on commit f7c57b6

Please sign in to comment.