Commit 8482db4
committed
Update test aspect to fix last_green build
Updates `_aspect_impl()` in `test/aspect/aspect.bzl` to return a new
`VisitedInfo` provider instead of a `struct`. This fixes
`//test/aspect:aspect_test` when building with the `last_green` bazel:
- bazel-a91a6a77171c008598bdee53d144792c95211890-darwin-arm64
```txt
$ USE_BAZEL_VERSION=last_green \
bazel test --test_output=errors //test/aspect:aspect_test
ERROR: testing/toolchain/BUILD:10:27:
in //test/aspect:aspect.bzl%test_aspect aspect
on testing_toolchain_deps rule //testing/toolchain:junit_classpath:
Returning a struct from an aspect implementation function is deprecated.
ERROR: Analysis of target '//testing/toolchain:junit_classpath' failed
ERROR: Analysis of target '//test/aspect:aspect_test' failed; build aborted: Analysis failed
```
This `last_green` Bazel build contains the following commit, summarized
as "Remove support for returning struct providers from aspects":
- bazelbuild/bazel@07cddaf
That commit is related to:
- bazelbuild/bazel#25836
- bazelbuild/bazel#25819
- bazelbuild/intellij#76061 parent dc41be2 commit 8482db4
1 file changed
+11
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| 20 | + | |
18 | 21 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
59 | | - | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
74 | | - | |
| 76 | + | |
75 | 77 | | |
76 | | - | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | | - | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
0 commit comments