Am 27.08.2015 um 17:17 schrieb Oleh:

Hello. DUB doesn't see sub packages, if I define them in main dub.json like this:

"subPackages": [
	"./component1/",
	"./component2/"
]

Error executing command build:
Failed to find a package named 'test:blank'.
But it sees them when I define like this:

"subPackages": [
	{
		"name": "component1",
		"targetType": "library",
		"sourcePaths": ["component1/source"],
		"importPaths": ["component1/source"]
	}
]

It used to work (a few moths ago) but not anymore.

My configs:

main dub.json:

"subPackages": [
	"./examples/blank/"
],

sub package:

{
	"name": "blank",
	"targetName": "blank",
	"targetType": "executable",
	"targetPath": "../../bin",
	"sourcePaths": ["./"],
	"importPaths": ["./"],
	
	"versions": ["trace"],
	
	"dependencies" : {
	}
	
}

Which command do you execute to build the project? Do you reference the
"blank" package somewhere within the main dub.json? The general sub
package feature seems to work fine, so there must be something else that
causes the error.