www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - dub github dependencies?

reply "evilrat" <evilrat666 gmail.com> writes:
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?
Sep 04 2014
parent reply "Gary Willoughby" <dev nomad.so> writes:
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/
Sep 04 2014
parent "evilrat" <evilrat666 gmail.com> writes:
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.
Sep 04 2014