diff --git a/test/tc_dub/source/app.d b/test/tc_dub/source/app.d index c8181ac..ac6766b 100644 --- a/test/tc_dub/source/app.d +++ b/test/tc_dub/source/app.d @@ -24,8 +24,10 @@ void main() // if no dependencies are fetched // or with all dependencies there a lot more assert(dub.imports.length >= 2, dub.imports.to!string); - assert(dub.stringImports[0].endsWith("views") - || dub.stringImports[0].endsWith("views/") || dub.stringImports[0].endsWith("views\\")); + assert(dub.stringImports[$ - 1].endsWith("views") + || dub.stringImports[$ - 1].endsWith("views/") + || dub.stringImports[$ - 1].endsWith("views\\"), + dub.stringImports.to!string ~ " doesn't end with `views`!"); assert(dub.fileImports.length > 10); assert(dub.configurations.length == 2); assert(dub.buildTypes.length); diff --git a/workspace-d/source/workspaced/com/dub.d b/workspace-d/source/workspaced/com/dub.d index 3a3fd0f..059956e 100644 --- a/workspace-d/source/workspaced/com/dub.d +++ b/workspace-d/source/workspaced/com/dub.d @@ -225,15 +225,9 @@ class DubComponent : ComponentWrapper try { - string[] failedPackages = null; - scope (exit) - _failedPackages = failedPackages; string[string] configs = _dub.project.getPackageConfigs(settings.platform, settings.config); - foreach (pack; _dub.project.getTopologicalPackageList(true, null, configs)) - failedPackages ~= pack.name; - failedPackages.sort!"a