Commit feddd1a
fix: add support for incompatible_no_implicit_file_export flag (#596)
## Summary
Adds support for Bazel's `--incompatible_no_implicit_file_export` flag
to comply with the new visibility requirements for file exports.
## Changes
- ✅ Enabled `incompatible_no_implicit_file_export` flag in
`shared.bazelrc`
- ✅ Added explicit `exports_files()` declarations for all `.bzl` files
referenced across package boundaries:
- `bazeldoc/BUILD.bazel` - exports `defs.bzl`
- `bzlformat/BUILD.bazel` - exports `defs.bzl`
- `bzllib/BUILD.bazel` - exports `defs.bzl`
- `bzlrelease/BUILD.bazel` - exports `defs.bzl`
- `bzltidy/BUILD.bazel` - exports `defs.bzl`
- `ci/BUILD.bazel` - exports `defs.bzl`
- `markdown/BUILD.bazel` - exports `defs.bzl`
- `updatesrc/BUILD.bazel` - exports `defs.bzl`
- `shlib/rules/BUILD.bazel` - exports `execute_binary.bzl`
- ✅ Upgraded `buildifier_prebuilt` from `7.3.1` to `8.2.1.1` for
compatibility
- ✅ Added explicit `rules_python` `1.8.0` dependency to override
transitive `1.0.0` (includes [PR
#3471](bazel-contrib/rules_python#3471) fix)
## Test Plan
- [x] All 362 tests pass with `bazel test //...`
- [x] Build succeeds with the incompatible flag enabled
- [x] No visibility errors from implicit file exports
## Related Issues
Fixes #566
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 8c9bf62 commit feddd1a
12 files changed
Lines changed: 27 additions & 2 deletions
File tree
- .bcr/patches
- bazeldoc
- bzlformat
- bzllib
- bzlrelease
- bzltidy
- ci
- markdown
- shlib/rules
- updatesrc
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
0 commit comments