www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - dub and subpackages

reply "yawniek" <dlang srtnwz.com> writes:
i'm trying to have my own versions of my dependencies as git 
submodules.

problem:
i include a local version of vibe.d and then i add other local 
versions of
packages that themselves include vibe.d

somehow my version of vibe isn't picked up by the other 
dependencies and it results in an error: "Sub package vibe-d: 
doesn't exist."

when i go and simply remove the vibe-d dependency from the 
dub.json it compiles fine.
but that can't be the solution.

dub --version
DUB version 0.9.24-rc.2+18-g4fece3c, built on Aug 14 2015
top level project uses dub.sdl, subpackages use dub.json.


whats the correct way of having a chain of packages included from 
git submodules so that every packages get's only picked once?
Aug 14 2015
parent reply "Edwin van Leeuwen" <edder tkwsping.nl> writes:
On Friday, 14 August 2015 at 08:06:15 UTC, yawniek wrote:
 i'm trying to have my own versions of my dependencies as git 
 submodules.


 whats the correct way of having a chain of packages included 
 from git submodules so that every packages get's only picked 
 once?
dub add-local allows you to add local copy of a package. This will be system wide though, not only for the current package.
Aug 14 2015
parent "yawniek" <dlang srtnwz.com> writes:
On Friday, 14 August 2015 at 08:09:18 UTC, Edwin van Leeuwen 
wrote:
 On Friday, 14 August 2015 at 08:06:15 UTC, yawniek wrote:
 dub add-local allows you to add local copy of a package. This 
 will be system wide though, not only for the current package.
i actually tried this, somehow did't work
Aug 14 2015