On Wednesday, 5 July 2017 at 15:34:36 UTC, Jolly James wrote:
WARNING: A deprecated branch based version specification is
used for the dependency xyz.
Please use numbered versions instead.
Also note that you can still use the dub.selections.json file
to override a certain dependency to use a branch instead.
The problem is: xyz is a local package and therefor I don't
know how to specify its version. So in the dub.json of the
package abc requiring xyz is written:
"dependencies": {
"xyz": "~master"
},
Is there a cleaner solution?
You have a few options:
* Use a path dependency:
"dependencies": {
"xyz": { "path": "path/to/xyz" }
}
* Use add-local with a version on the command line:
dub add-local path/to/xyz 0.0.1
* Use add-local or add-paths and specify a version as described
by `dub add-paths -h`