On Mon, 21 Oct 2013 08:55:53 +0200, Sönke Ludwig wrote:

I'll look into the assertion failure, it's probably a missing error
message along the lines of "The target type is 'sourceLibrary', which
has no target. Stopping build.", or did you invoke the "dub build " on a
dependent project?

No, I invoked the build on dgraph itself. I did imagine there might be such a "no target" issue for a sourceLibrary, but I had assumed it would not get in the way of building executable subpackages.

But what you can do, assuming that you only have files that need not
be compiled, is to set "targetType": "sourceLibrary" and then put all
files in an "import" folder instead of "source", or manually set
"sourcePaths": [] to avoid compiling them.

I'll give that a go.

If you have a mixture of files, just put those into an "import" folder
which don't need to be compiled up front. The target type in this case
can be the default "library".

Well, leaving aside the stuff that would go in the "import" folder, the only things needing to be built are executables, not a library. The executables shouldn't be built in the case of someone just wanting dgraph as a library, though -- they're test demos, not essential tools. It seemed natural to make them subpackages in that case.