A tool for D language that installs dependencies from arbitrary git repos/branches locally.
Based on work by Timur Gafarov.
- Create a
dirimere.json
file in your Dub project. It should look like this:
[
{"name": "alyx2", "version": "v0.13.0", "url" : "[email protected]:o3o_d/alyx2.git"},
{"name": "bindbc-raylib", "version": "0.1.0", "url" : "[email protected]:o3o/bindbc-raylib.git"}
]
- Modify your dub file on order to use
.dirimere
//dub.sdl
dependency "alyx2:db" path="./.dirimere/alyx2-0.13.0"
- Install
dirimere
and run it:
dub fetch dirimere
dub run dirimere
It will create .dirimere
folder and clone the repositories. It is recommended to add .dirimere
folder to .gitignore
.
- Build your project with Dub as usual.
dirimere.json
is an array of Json objects.
Each object has the following values
Name of package. Will be used to create the path where the gits get cloned to.
Version of package. Will be used to get the tag and create the path where the gits get cloned to.
Must be vm.n.p
or m.n.p
. (examples v0.1.0
, 1.5.0
, etc)
Repository URL.