-
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
5 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
DIR=$(dirname "${BASH_SOURCE[0]}") | ||
|
||
. "$DIR"/common.sh | ||
|
||
dub remove main-package --non-interactive --version=* 2>/dev/null || true | ||
dub remove dependency-package --non-interactive --version=* 2>/dev/null || true | ||
|
||
|
||
echo "Trying to fetch fs-sdl-dubpackage" | ||
"$DUB" --cache=local fetch main-package --skip-registry=all --registry=file://"$DIR"/issue1556-fetch-and-build-pkgs | ||
|
||
echo "Trying to build it (should fetch dependency-package)" | ||
"$DUB" --cache=local build main-package --skip-registry=all --registry=file://"$DIR"/issue1556-fetch-and-build-pkgs | ||
|