Skip to content

Commit 7cfe640

Browse files
authored
Fix a unit test for Bazel 5.0 (#933)
unittest.bzl does a configuration transition, and with Bazel 5.0 repository-relative labels will be interpreted not as in the main repository, but as in the repository of the transition. For us it means we have to explicitly specify which repository we mean in our test.
1 parent 251c5da commit 7cfe640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/extra_rustc_flags/extra_rustc_flags_test.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ extra_rustc_flags_present_test = analysistest.make(
5454
),
5555
},
5656
config_settings = {
57-
"//:extra_rustc_flags": [EXTRA_FLAG],
57+
"@//:extra_rustc_flags": [EXTRA_FLAG],
5858
},
5959
)
6060

0 commit comments

Comments
 (0)