diff --git a/dep1/dub.json b/dep1/dub.json new file mode 100644 index 0000000..b448281 --- /dev/null +++ b/dep1/dub.json @@ -0,0 +1,10 @@ +{ + "name": "dep1", + + "targetType": "sourceLibrary", + + "dependencies": { + "std-experimental-xml": ">=0.1.7 <0.2.0", + "unit-threaded:assertions": ">=0.8.0 <0.10.0" + } +} diff --git a/dep1/src/dep1.d b/dep1/src/dep1.d new file mode 100644 index 0000000..888cdcb --- /dev/null +++ b/dep1/src/dep1.d @@ -0,0 +1,6 @@ +module dep1; + +string foo () +{ + return "foo"; +} diff --git a/dep2/dub.json b/dep2/dub.json new file mode 100644 index 0000000..e6c5bd4 --- /dev/null +++ b/dep2/dub.json @@ -0,0 +1,4 @@ +{ + "name": "dep2", + "targetType": "sourceLibrary" +} diff --git a/dep2/src/dep1.d b/dep2/src/dep1.d new file mode 100644 index 0000000..888cdcb --- /dev/null +++ b/dep2/src/dep1.d @@ -0,0 +1,6 @@ +module dep1; + +string foo () +{ + return "foo"; +} diff --git a/dub.json b/dub.json new file mode 100644 index 0000000..6252119 --- /dev/null +++ b/dub.json @@ -0,0 +1,19 @@ +{ + "name": "vibe-deps-failure", + "authors": ["Joseph Wakeling"], + "description": "Simple example of DUB dependency resolution failure", + + "dependencies": { + "dep1": { "path": "dep1" }, + "dep2": { "path": "dep2" }, + "std_data_json": ">=0.18.3 <0.19.0", + "pyd": ">=0.10.5 <0.11.0", + "vibe-core": ">=1.6.0 <2.0.0", + "vibe-d:redis": ">=0.8.4 <0.9.0", + "vibe-d:tls": ">=0.8.4 <0.9.0" + }, + "subConfigurations": { + "pyd": "python36", + "vibe-d:tls": "openssl-1.1" + } +} diff --git a/src/app.d b/src/app.d new file mode 100644 index 0000000..834cd00 --- /dev/null +++ b/src/app.d @@ -0,0 +1,6 @@ +void main () +{ + import dep1 : foo; + import std.stdio : writefln; + writefln!"Hello, I'm just a stub for %s"(foo()); +}