On Thu, 12 Feb 2015 11:58:17 GMT, ParticlePeter wrote:

Sorry, triggered accidentally.

One more try :-)

Inside of build setting values, it is possible to use variables using dollar notation. $PACKAGE_DIR contains the path to the package itself and all other variables are taken from the program environment.

Is this supposed to work inside the dependencies "path" settings ? E.g.:

"dependencies"  : {
    "myPackage" : { "version" : "~master" , "path" : "$MY_PACKAGE" }
}

and MY_PACKAGE is defined to be something like "D:/Code/myPackage".

This doesn't work for me, the Environment variable is not expanded. Am I missing something ?

Regards, ParticlePeter

Variables don't work in the dependencies section. The usual way to handle a situation like this is to register "myPackage" locally using either dub add local D:\Code\myPackage, or using dub add-path D:\Code. The dependency then doesn't have to specify a path at all.