-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add executable as a direct dependency (#1082)
* Add executable as a direct dependency This fixes a bug introduced by #958. Before #958, `rootpath` on a Scala binary resolved to the wrapper binary so other rules could treat it as an opaque executable. After that PR `rootpath` now resolves to the JAR instead of the wrapper binary. Adding the executable back as a direct dependency fixes that. * Add a testcase
- Loading branch information
1 parent
041138f
commit 3b51ba7
Showing
3 changed files
with
35 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eou pipefail | ||
|
||
content="$(cat $1)" | ||
expected=$'test/ScalaBinary\ntest/ScalaBinary.jar' | ||
if [ "$content" != "$expected" ]; then | ||
echo "Unexpected rootpaths: $content" | ||
echo "$expected" | ||
exit 1 | ||
fi |