Skip to content

agents: forbid compatibility logic for older Bazel versions - #4298

Merged
rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:manage_agent_config_files
Oct 21, 2026
Merged

rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:manage_agent_config_files

Conversation

@rickeylev

Copy link
Copy Markdown
Collaborator

Agents sometimes add compatibility logic or feature guards for Bazel
versions older than MINIMUM_BAZEL_VERSION in //:version.bzl.

Update workspace rules and code review auditor prompts to forbid
compatibility logic, feature guards, or comments targeting Bazel
versions older than MINIMUM_BAZEL_VERSION, and require verifying the
exact introducing Bazel version when guarding newer features.

Agents sometimes add compatibility logic or feature guards for Bazel
versions older than `MINIMUM_BAZEL_VERSION` in `//:version.bzl`.

Update workspace rules and code review auditor prompts to forbid
compatibility logic, feature guards, or comments targeting Bazel
versions older than `MINIMUM_BAZEL_VERSION`, and require verifying the
exact introducing Bazel version when guarding newer features.
@rickeylev
rickeylev requested a review from aignas as a code owner October 21, 2026 03:38
@rickeylev
rickeylev enabled auto-merge October 21, 2026 03:39
@rickeylev
rickeylev merged commit 059d892 into bazel-contrib:main Oct 21, 2026
18 checks passed
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.

1 participant