Re: dub subpckages and how to depend on them internally

2018-06-03 Thread aliak via Digitalmars-d
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] =

Re: dub subpckages and how to depend on them internally

2018-06-03 Thread Jesse Phillips via Digitalmars-d
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] =

Re: dub subpckages and how to depend on them internally

2018-06-03 Thread aliak via Digitalmars-d
On Thursday, 31 May 2018 at 20:01:43 UTC, Jesse Phillips wrote: On Thursday, 31 May 2018 at 17:56:57 UTC, aliak wrote: root |-- sub1/source |-- sub2/source Do that. You can have a top level source folder, but this is going to be code separate from your subpackage. The subpackage can

Re: dub subpckages and how to depend on them internally

2018-05-31 Thread Jesse Phillips via Digitalmars-d
On Thursday, 31 May 2018 at 17:56:57 UTC, aliak wrote: On Thursday, 31 May 2018 at 13:54:07 UTC, Jesse Phillips wrote: On Tuesday, 29 May 2018 at 23:41:59 UTC, aliak wrote: Hi, I'm trying to get dub working with subpackages and I just can't quite seem to hit the nail on the head. Any help

Re: dub subpckages and how to depend on them internally

2018-05-31 Thread drug via Digitalmars-d
On 31.05.2018 20:56, aliak wrote: On Thursday, 31 May 2018 at 13:54:07 UTC, Jesse Phillips wrote: On Tuesday, 29 May 2018 at 23:41:59 UTC, aliak wrote: Hi, I'm trying to get dub working with subpackages and I just can't quite seem to hit the nail on the head. Any help would be greatly

Re: dub subpckages and how to depend on them internally

2018-05-31 Thread aliak via Digitalmars-d
On Thursday, 31 May 2018 at 13:54:07 UTC, Jesse Phillips wrote: On Tuesday, 29 May 2018 at 23:41:59 UTC, aliak wrote: Hi, I'm trying to get dub working with subpackages and I just can't quite seem to hit the nail on the head. Any help would be greatly appreciated. Move your sub packages out

Re: dub subpckages and how to depend on them internally

2018-05-31 Thread aliak via Digitalmars-d
On Thursday, 31 May 2018 at 12:55:10 UTC, Martin Tschierschke wrote: I had a similar struggle, may be the version is the missing hint: "dependencies": { "diet-ng": "~>1.4", , mylib":{ "versions": "~master", "path": "/home/mt/d/mylib"

Re: dub subpckages and how to depend on them internally

2018-05-31 Thread Jesse Phillips via Digitalmars-d
On Tuesday, 29 May 2018 at 23:41:59 UTC, aliak wrote: Hi, I'm trying to get dub working with subpackages and I just can't quite seem to hit the nail on the head. Any help would be greatly appreciated. Move your sub packages out of source. And each package will have it's own src folder, which

Re: dub subpckages and how to depend on them internally

2018-05-31 Thread Martin Tschierschke via Digitalmars-d
On Tuesday, 29 May 2018 at 23:41:59 UTC, aliak wrote: Hi, I'm trying to get dub working with subpackages and I just can't quite seem to hit the nail on the head. Any help would be greatly appreciated. This is the current setup is like this, and there's a shared source folder as well called

dub subpckages and how to depend on them internally

2018-05-29 Thread aliak via Digitalmars-d
Hi, I'm trying to get dub working with subpackages and I just can't quite seem to hit the nail on the head. Any help would be greatly appreciated. This is the current setup is like this, and there's a shared source folder as well called "common" and "sub2" depends on "sub1". lib |--