On Thu, 28 Aug 2014 15:01:28 GMT, Marcio Martins wrote:

Hello!

I forked vibe.d on github, and now I would like to instruct dub to pull vibe.d from my fork instead of the official repository.

I tried sticking the https git repo url on the path field of the complex version specification but it didn't work.

Is this possible at all?

The easiest way is to check out the fork and then use dub add-local path/containing/vibe.d or dub add-path path/containing to make it known to DUB locally. dub list should show the fork as the first "vibe-d" entry then, and also prefer it over the same version downloaded from the registry.

The only thing that needs some attention is that DUB 0.9.21 will treat the cloned fork as the version ~master (or whatever branch is checked out), while 0.9.22 (RC 2) will treat it as the latest tagged version (e.g. 0.7.21-alpha.4), so that the dependency may need to be adjusted accordingly.

0.9.22 also provides some additional means to use the fork, namely editing the dub.selections.json file and specifying the path to the fork, or using dub add-override.