www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Need advice on using DUB registry

reply Eric <eric makechip.com> writes:
I'm planning on some day putting a package in the DUB registry.  
My package
is dependent on my "util" package which is a collection of stuff 
I use across
all my projects.  Does this mean I also have to put my util 
package in the DUB registry?
Could I just make "util" a git sub module of the package I want 
to release?
Apr 01
parent reply rikki cattermole <rikki cattermole.co.nz> writes:
On 02/04/2017 2:37 AM, Eric wrote:
 I'm planning on some day putting a package in the DUB registry.  My package
 is dependent on my "util" package which is a collection of stuff I use
 across
 all my projects.  Does this mean I also have to put my util package in
 the DUB registry?
 Could I just make "util" a git sub module of the package I want to release?
Dub can't use git submodules. In fact it doesn't know anything about git!
Apr 01
parent reply Eric <eric makechip.com> writes:
On Sunday, 2 April 2017 at 04:14:56 UTC, rikki cattermole wrote:
 On 02/04/2017 2:37 AM, Eric wrote:
 I'm planning on some day putting a package in the DUB 
 registry.  My package
 is dependent on my "util" package which is a collection of 
 stuff I use
 across
 all my projects.  Does this mean I also have to put my util 
 package in
 the DUB registry?
 Could I just make "util" a git sub module of the package I 
 want to release?
Dub can't use git submodules. In fact it doesn't know anything about git!
So is the answer to my question, "yes, you need to put your util package in the DUB registry also?"
Apr 02
parent drug <drug2004 bk.ru> writes:
02.04.2017 17:43, Eric пишет:
 On Sunday, 2 April 2017 at 04:14:56 UTC, rikki cattermole wrote:
 On 02/04/2017 2:37 AM, Eric wrote:
 I'm planning on some day putting a package in the DUB registry.  My
 package
 is dependent on my "util" package which is a collection of stuff I use
 across
 all my projects.  Does this mean I also have to put my util package in
 the DUB registry?
 Could I just make "util" a git sub module of the package I want to
 release?
Dub can't use git submodules. In fact it doesn't know anything about git!
So is the answer to my question, "yes, you need to put your util package in the DUB registry also?"
You can clone git submodules using preBuildCommands in dub.sdl. Also you can use add-local and add this package to dub locally (but of course it won't work for others). And the finally put your package to dub registry. I do all of them depending on the situation.
Apr 02