Skip to content

fix: add support for incompatible_no_implicit_file_export flag#596

Merged
cgrindel merged 1 commit intomainfrom
gh566_no_implicit_file_export
Jan 18, 2026
Merged

fix: add support for incompatible_no_implicit_file_export flag#596
cgrindel merged 1 commit intomainfrom
gh566_no_implicit_file_export

Conversation

@cgrindel
Copy link
Copy Markdown
Owner

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 fix)

Test Plan

  • All 362 tests pass with bazel test //...
  • Build succeeds with the incompatible flag enabled
  • No visibility errors from implicit file exports

Related Issues

Fixes #566

🤖 Generated with Claude Code

@cgrindel cgrindel self-assigned this Jan 18, 2026
@cgrindel cgrindel force-pushed the gh566_no_implicit_file_export branch from ac87226 to cc9ee7c Compare January 18, 2026 21:18
@cgrindel cgrindel marked this pull request as ready for review January 18, 2026 21:19
@cgrindel
Copy link
Copy Markdown
Owner Author

@Mergifyio queue

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jan 18, 2026

queue

🟠 Waiting for conditions to match

Details
  • -closed [📌 queue requirement]
  • -conflict [📌 queue requirement]
  • -draft [📌 queue requirement]
  • any of: [📌 queue -> configuration change requirements]
    • -mergify-configuration-changed
    • check-success = Configuration changed
  • any of: [🔀 queue conditions]
    • all of: [📌 queue conditions of queue default]
      • check-success=all_ci_tests
      • check-success=conventional_commit_check
      • any of: [🛡 GitHub branch protection]
        • check-success = all_ci_tests
        • check-neutral = all_ci_tests
        • check-skipped = all_ci_tests

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jan 18, 2026

Merge Queue Status

🟠 Waiting for queue conditions

Required conditions to enter a queue
  • -closed [📌 queue requirement]
  • -conflict [📌 queue requirement]
  • -draft [📌 queue requirement]
  • any of [📌 queue -> configuration change requirements]:
    • -mergify-configuration-changed
    • check-success = Configuration changed
  • any of [🔀 queue conditions]:
    • all of [📌 queue conditions of queue default]:
      • check-success=all_ci_tests
      • check-success=conventional_commit_check
      • any of [🛡 GitHub branch protection]:
        • check-success = all_ci_tests
        • check-neutral = all_ci_tests
        • check-skipped = all_ci_tests

@cgrindel cgrindel force-pushed the gh566_no_implicit_file_export branch from cc9ee7c to 4c93677 Compare January 18, 2026 22:18
Add explicit exports_files() declarations to all packages that reference
.bzl files across package boundaries to comply with Bazel's
incompatible_no_implicit_file_export flag.

Changes:
- Enable incompatible_no_implicit_file_export flag in shared.bazelrc
- Add exports_files() for defs.bzl in bazeldoc, bzlformat, bzllib,
  bzlrelease, bzltidy, ci, markdown, and updatesrc packages
- Add exports_files() for execute_binary.bzl in shlib/rules
- Upgrade buildifier_prebuilt to 8.2.1.1 for compatibility
- Add explicit rules_python 1.8.0 dependency to override transitive
  dependency on 1.0.0 (includes PR #3471 fix)

Fixes #566

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@cgrindel cgrindel force-pushed the gh566_no_implicit_file_export branch from 4c93677 to 19e3f56 Compare January 18, 2026 22:24
@cgrindel cgrindel merged commit feddd1a into main Jan 18, 2026
45 checks passed
@cgrindel cgrindel deleted the gh566_no_implicit_file_export branch January 18, 2026 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migration needed for incompatible_no_implicit_file_export

1 participant