-
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #2840: Build collision for single-package and FILE_FULL_PATH
By including the package path in the buildid we avoid the problem, at the expense of not sharing the cache for packages that could be shared, but we would need to know if the code depends on __FILE__ and __FILE_FULL_PATH__ or not.
- Loading branch information
Showing
6 changed files
with
36 additions
and
3 deletions.
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
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
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
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,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
. $(dirname "${BASH_SOURCE[0]}")/common.sh | ||
|
||
pushd $(dirname "${BASH_SOURCE[0]}")/issue2840-build-collision | ||
# Copy before building, as dub uses timestamp to check for rebuild | ||
rm -rf nested/ && mkdir -p nested/ && cp -v build.d nested/ | ||
|
||
$DUB ./build.d $(pwd)/build.d | ||
pushd nested | ||
$DUB ./build.d $(pwd)/build.d | ||
popd | ||
|
||
popd |
Empty file.
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,16 @@ | ||
#!/usr/bin/env dub | ||
/++ dub.json: | ||
{ | ||
"name": "build" | ||
} | ||
+/ | ||
|
||
import std.format; | ||
|
||
immutable FullPath = __FILE_FULL_PATH__; | ||
|
||
void main (string[] args) | ||
{ | ||
assert(args.length == 2, "Expected a single argument"); | ||
assert(args[1] == FullPath, format("%s != %s -- %s", args[1], FullPath, args[0])); | ||
} |