Commit ca8f6e1
authored
Fix: Bzl6 compatible README searching (#13)
Adjust the implementation of searching for a README file to avoid the
bzl7 `path.is_dir` feature. Instead just scan a bunch of paths and test
that they exist. This has the positive side-effect of making the search
order platform independent.
### Changes are visible to end-users: no
### Test plan
- Manual testing; please provide instructions so we can reproduce:
Testing on Bazel 6.5.0 which had previously regressed
```
❯ USE_BAZEL_VERSION=6.5.0 aspect build --enable_bzlmod //:report.json && cat ./bazel-bin/report.json
Starting local Bazel server and connecting to it...
INFO: Analyzed target //:report.json (6 packages loaded, 9 targets configured).
INFO: Found 1 target...
Target //:report.json up-to-date:
bazel-bin/report.json
INFO: Elapsed time: 3.190s, Critical Path: 0.02s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
{
"tools_telemetry": {
"arch": "aarch64",
"bazel_version": "6.5.0",
"bazelisk": true,
"ci": false,
"counter": null,
"deps": {
"aspect_tools_telemetry": "0.0.0",
"simple-example": "0.0.0"
},
"has_bazel_module": true,
"has_bazel_prelude": false,
"has_bazel_tool": false,
"has_bazel_workspace": true,
"id": "README.md",
"org": null,
"os": "mac os x",
"runner": null,
"shell": "/bin/zsh",
"user": "c108c75db8fa0a8414347aa58cef219be7a41e08"
}
}%
```
Touching the WORKSPACE files was required to make this 6.5.0 exercise
succeed, even with bzlmod.1 parent dd3b3df commit ca8f6e1
File tree
4 files changed
+59
-26
lines changed- collectors
- examples/simple
4 files changed
+59
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
19 | 27 | | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
23 | | - | |
| 31 | + | |
| 32 | + | |
24 | 33 | | |
25 | | - | |
26 | | - | |
27 | 34 | | |
28 | 35 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
42 | 68 | | |
43 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
44 | 73 | | |
45 | 74 | | |
46 | 75 | | |
47 | | - | |
48 | 76 | | |
49 | 77 | | |
50 | 78 | | |
51 | | - | |
| 79 | + | |
| 80 | + | |
52 | 81 | | |
53 | 82 | | |
54 | 83 | | |
55 | 84 | | |
56 | 85 | | |
57 | 86 | | |
58 | | - | |
| 87 | + | |
59 | 88 | | |
60 | 89 | | |
61 | 90 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments