dirimere

Local dependencies for dub projects.


Keywords
application, desktop, development, build, dlang, dub
License
BSL-1.0
Install
dub fetch dirimere --version 0.5.0

Documentation

Dirimere

A tool for D language that installs dependencies from arbitrary git repos/branches locally.

Based on work by Timur Gafarov.

Usage

  1. Create a dirimere.json file in your Dub project. It should look like this:
[
   {"name": "alyx2", "version": "v0.13.0", "url" : "git@gitlab.com:o3o_d/alyx2.git"},
   {"name": "bindbc-raylib", "version": "0.1.0", "url" : "git@github.com:o3o/bindbc-raylib.git"}
]
  1. Modify your dub file on order to use .dirimere
//dub.sdl
dependency "alyx2:db" path="./.dirimere/alyx2-0.13.0"
  1. 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.

  1. Build your project with Dub as usual.

Json file

dirimere.json is an array of Json objects. Each object has the following values

name

Name of package. Will be used to create the path where the gits get cloned to.

version

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)

url

Repository URL.

References