Need advice on using DUB registry
drug via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Apr 2 07:58:33 PDT 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.
More information about the Digitalmars-d-learn
mailing list