dub: Detected dependency cycle
unDEFER via Digitalmars-d
digitalmars-d at puremagic.com
Thu Sep 29 03:27:31 PDT 2016
Hello!
Finally I have added my bdb2d package to dub.
But something is going wrong and when I'm trying to use my own
pakcage it say me:
$ dub
Detected dependency cycle: bdb2d->bdb2d
dub.json from bdb2d:
{
"name": "bdb2d",
"targetName": "db",
"targetType": "library",
"description": "BerkeleyDB to D bindings.",
"authors": ["Nikolay (unDEFER) Krivchenkov"],
"homepage": "http://unde.su",
"license": "GPL-3.0 or later",
"sourcePaths": ["berkeleydb"],
"libs-posix": ["db"],
"subPackages": [
{
"name": "reader",
"description": "BerkeleyDB Transaction test. Reader",
"targetName": "reader",
"targetType": "executable",
"sourceFiles": ["transactions_test/reader.d"],
"targetPath": "transactions_test",
"dependencies": {
"bdb2d": "*"
}
}, {
"name": "writer",
"description": "BerkeleyDB Transaction test. Writer",
"targetName": "writer",
"targetType": "executable",
"sourceFiles": ["transactions_test/writer.d"],
"targetPath": "transactions_test",
"dependencies": {
"bdb2d": "*"
}
}
]
}
It has 2 subpackages, and they both uses bdb2d, but it is not
dependency cycle because bdb2d doesn't use these subpackages.
So What I'm doing wrong?
dub.json of the second project:
{
"name": "bdb2d",
"targetName": "db",
"targetType": "executable",
"description": "unDE - ultimate native Desktop Environment.",
"authors": ["Nikolay (unDEFER) Krivchenkov"],
"homepage": "http://unde.su",
"license": "GPL-3.0 or later",
"dependencies": {
"bdb2d": ">=5.3.28",
"derelict-sdl2":">=2.0.0"
}
}
More information about the Digitalmars-d
mailing list