-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
73 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -416,10 +416,10 @@ def testNativePackageRelativeLabel(self): | |
|
||
_, _, stderr = self.RunBazel(['build', '@bar//quux:book']) | ||
stderr = '\n'.join(stderr) | ||
self.assertIn('1st: @@bar~override//quux:bleb', stderr) | ||
self.assertIn('2nd: @@bar~override//bleb:bleb', stderr) | ||
self.assertIn('1st: @@bar~//quux:bleb', stderr) | ||
self.assertIn('2nd: @@bar~//bleb:bleb', stderr) | ||
self.assertIn('3rd: @@//bleb:bleb', stderr) | ||
self.assertIn('4th: @@bar~override//bleb:bleb', stderr) | ||
self.assertIn('4th: @@bar~//bleb:bleb', stderr) | ||
self.assertIn('5th: @@bleb//bleb:bleb', stderr) | ||
self.assertIn('6th: @@//bleb:bleb', stderr) | ||
|
||
|
@@ -459,10 +459,10 @@ def testWorkspaceEvaluatedBzlCanSeeRootModuleMappings(self): | |
stderr = '\n'.join(stderr) | ||
# @bar is mapped to @@baz, which Bzlmod doesn't recognize, so we leave it be | ||
self.assertIn('1st: @@baz//:z', stderr) | ||
# @my_aaa is mapped to @@aaa, which Bzlmod remaps to @@aaa~1.0 | ||
self.assertIn('2nd: @@aaa~1.0//:z', stderr) | ||
# @bbb isn't mapped in WORKSPACE, but Bzlmod maps it to @@bbb~1.0 | ||
self.assertIn('3rd: @@bbb~1.0//:z', stderr) | ||
# @my_aaa is mapped to @@aaa, which Bzlmod remaps to @@aaa~ | ||
self.assertIn('2nd: @@aaa~//:z', stderr) | ||
# @bbb isn't mapped in WORKSPACE, but Bzlmod maps it to @@bbb~ | ||
self.assertIn('3rd: @@bbb~//:z', stderr) | ||
# @blarg isn't mapped by WORKSPACE or Bzlmod | ||
self.assertIn('4th: @@blarg//:z', stderr) | ||
|
||
|
@@ -641,9 +641,9 @@ def testNativeModuleNameAndVersion(self): | |
) | ||
stderr = '\n'.join(stderr) | ||
self.assertIn('@@ reporting in: [email protected]', stderr) | ||
self.assertIn('@@foo~1.0 reporting in: [email protected]', stderr) | ||
self.assertIn('@@foo~ reporting in: [email protected]', stderr) | ||
self.assertIn( | ||
'@@foo~1.0~report_ext~report_repo reporting in: [email protected]', stderr | ||
'@@foo~~report_ext~report_repo reporting in: [email protected]', stderr | ||
) | ||
self.assertIn('@@bar~override reporting in: [email protected]', stderr) | ||
self.assertIn('@@quux reporting in: None@None', stderr) | ||
|
@@ -791,7 +791,7 @@ def testLocationNonRegistry(self): | |
) | ||
self.ScratchFile('hello/MODULE.bazel', ['wat']) | ||
_, _, stderr = self.RunBazel(['build', '@what'], allow_failure=True) | ||
self.assertIn('ERROR: @@hello~override//:MODULE.bazel', '\n'.join(stderr)) | ||
self.assertIn('ERROR: @@hello~//:MODULE.bazel', '\n'.join(stderr)) | ||
|
||
def testLoadRulesJavaSymbolThroughBazelTools(self): | ||
"""Tests that loads from @bazel_tools that delegate to other modules resolve.""" | ||
|
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
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
Oops, something went wrong.