fix #1556: dub --cache=local fetch + build
Building a package that was locally cached failed, because
the dependencies whould be fetched at the wrong destination.

For example if one tries to build the package 'optional':

$ dub --cache=local fetch optional
-> optional is now at ./.dub/package/optional
$ dub --cache=local build optional
-> fails because the dependency bolts was fetched to
./.dub/package/optional/.dub/package/bolts.

This is fixed by not overwriting the root path if dub builds
a package from the cache.
1 parent 6e9623d commit bcd904883f2e3c6f0fdc8fd3db5f78c76cbb8d14
@Tobias Pankrath Tobias Pankrath authored on 11 Mar 2020
Mathias LANG committed on 15 Mar 2020
Showing 5 changed files
View
source/dub/commandline.d
View
test/issue1556-fetch-and-build-pkgs/.no_build 0 → 100644
View
test/issue1556-fetch-and-build-pkgs/dependency-package-1.0.0.zip 0 → 100644
Not supported
View
test/issue1556-fetch-and-build-pkgs/main-package-1.0.0.zip 0 → 100644
Not supported
View
test/issue1556-fetch-and-build.sh 0 → 100755