dub github dependencies?

evilrat via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 4 21:10:43 PDT 2014


On Thursday, 4 September 2014 at 17:22:42 UTC, Gary Willoughby 
wrote:
> On Thursday, 4 September 2014 at 16:43:13 UTC, evilrat wrote:
>> how i can specify github repo & branch? i've already tried 
>> adding everything i have in mind but no luck so far.
>> so in theory it should be like this:
>> -------------- dub.json
>> "dependencies": {
>> "cairod": {"version": "~ReworkWin32", "path": 
>> "https://github.com/evilrat666/cairoD.git"}
>> }
>> ------------
>> but it says missing package description, while it obviuosly 
>> there...
>> any suggestions? i know i could use local clone but what if 
>> someone else need to use it?
>
> Packages have to exist on http://code.dlang.org/

not really, first off, cairod already in dub registry, and 
second, you can set path to anywhere on local FS as long as it is 
dub package(how do you suppose subpackages work then?), but 
unfortunately it doesn't works with github that way.


More information about the Digitalmars-d-learn mailing list