Skip to content

Commit c35727b

Browse files
authored
document dependency repository (#46)
fix dlang/dub#2180
1 parent 28de236 commit c35727b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

views/package_format_json.dt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,10 @@ block body
403403
p <code>"default": true</code> - Choose an optional dependency by default.
404404
p With this set to <code>true</code>, the dependency will be chosen by default if no dub.selections.json exists yet. If omitted, this attribute defaults to <code>false</code>. Note that this only has an effect if the "optional" attribute is set to <code>true</code>.
405405
p Note that versions prior to 0.9.25 will ignore this attribute.
406+
li
407+
p <code>"repository": "git+https://example.org/repository.git"</code> - clone a git repository as dependency.
408+
p This also requires <code>"version"</code> to be set to the git commit hash (7 to 40 hex characters).
409+
p Supported since DUB v1.23.0.
406410
li
407411
p Since v1.24.0, <a href="#build-settings">build settings</a> fields can be used to be applied to dependencies.
408412
p Note that as of v1.24.0 only <code>dflags</code> is taken into account.

views/package_format_sdl.dt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,10 @@ block body
385385
p <code>default=true</code> - Choose an optional dependency by default.
386386
p With this set to <code>true</code>, the dependency will be chosen by default if no dub.selections.json exists yet. If omitted, this attribute defaults to <code>false</code>. Note that this only has an effect if the "optional" attribute is set to <code>true</code>.
387387
p Note that versions prior to 0.9.25 will ignore this attribute.
388+
li
389+
p <code>repository="git+https://example.org/repository.git"</code> - clone a git repository as dependency.
390+
p This also requires the <code>version</code> attribute to be set to the git commit hash (7 to 40 hex characters).
391+
p Supported since DUB v1.23.0.
388392
li
389393
p Since v1.24.0, <a href="#build-settings">build settings</a> fields can be used to be applied to dependencies.
390394
p Note that as of v1.24.0 only <code>dflags</code> is taken into account.

0 commit comments

Comments
 (0)