diff --git a/changelog/custom-dub-init-type.dd b/changelog/custom-dub-init-type.dd index 62f0418..fff1b29 100644 --- a/changelog/custom-dub-init-type.dd +++ b/changelog/custom-dub-init-type.dd @@ -6,5 +6,5 @@ ) Dub init will be invoked like before. The package `custom-dub-init-dubpackage` -contains a sub package `init` which will be invoked afterwards to create a custom +contains a sub package `init-exec` which will be invoked afterwards to create a custom package skeleton. Additional arguments could be passed e.g. `-- --foo=bar`. diff --git a/source/dub/dub.d b/source/dub/dub.d index 0f81545..33f99cc 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -1215,7 +1215,7 @@ template_pack = fetch(packageName, Dependency(">=0.0.0"), defaultPlacementLocation, FetchOptions.none); } - Package initSubPackage = m_packageManager.getSubPackage(template_pack, "init", false); + Package initSubPackage = m_packageManager.getSubPackage(template_pack, "init-exec", false); auto template_dub = new Dub(null, m_packageSuppliers); template_dub.loadPackage(initSubPackage); auto compiler_binary = this.defaultCompiler; diff --git a/test/issue1651-custom-dub-init-type/custom-dub-init-dubpackage-1.0.1.zip b/test/issue1651-custom-dub-init-type/custom-dub-init-dubpackage-1.0.1.zip index 45b8b38..67a499b 100644 --- a/test/issue1651-custom-dub-init-type/custom-dub-init-dubpackage-1.0.1.zip +++ b/test/issue1651-custom-dub-init-type/custom-dub-init-dubpackage-1.0.1.zip Binary files differ