-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test to ensure subincluding subrepo target before subrepo is defi…
…ned errors (#2988) Co-authored-by: rgodden <rgodden@thoughtmachine.net>
- Loading branch information
1 parent
825ef4c
commit 90450b7
Showing
6 changed files
with
33 additions
and
8 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 @@ | ||
subinclude("//test/build_defs") | ||
|
||
please_repo_e2e_test( | ||
name = "same_package_error", | ||
expect_output_contains = { | ||
"output": "is not defined in this package yet", | ||
}, | ||
expected_failure = True, | ||
plz_command = "plz build //:all 2>output", | ||
repo = "test_repo", | ||
) |
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,6 @@ | ||
subinclude("///subrepo//:foo") | ||
|
||
local_repository( | ||
name = "subrepo", | ||
path = "subrepo", | ||
) |
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,4 @@ | ||
genrule( | ||
name = "foo", | ||
cmd = "touch foo.txt", | ||
) |