dub subpckages and how to depend on them internally

aliak something at something.com
Sun Jun 3 22:28:30 UTC 2018


On Sunday, 3 June 2018 at 15:23:52 UTC, Jesse Phillips wrote:
> On Sunday, 3 June 2018 at 12:08:44 UTC, aliak wrote:
>>
>> The exact error for that setup is:
>>
>> source/app.d(4,9): Error: module `liba` is in file 
>> 'lib/liba.d' which cannot be read
>> import path[0] = source/
>> import path[1] = ../lib/liba/source/
>> import path[2] = ../lib/libb/source/
>> import path[3] = /usr/local/opt/dmd/include/dlang/dmd
>>
>>
>> Am I missing sourcePaths or something somewhere?
>
> This is a very complicated answer, so I made a pull request 
> instead:
>
> https://github.com/aliak00/dub-subpackages/pull/1
>
> lib/liba/source/suba
>
> corrected:
>
> lib/liba/source/liba/suba

Ahhh, I see where I went wrong now. Thanks a lot for the help! 
And I like the extras you threw in there as well :D

Cheers
- Ali




More information about the Digitalmars-d mailing list