Thread overview
Need advice on using DUB registry
Apr 02, 2017
Eric
Apr 02, 2017
rikki cattermole
Apr 02, 2017
Eric
Apr 02, 2017
drug
April 02, 2017
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?
April 02, 2017
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!
April 02, 2017
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?"
April 02, 2017
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.