bazel-contrib / bazel-contrib/rules_foreign_cc

Migration needed for Automatic Exec Groups

Open
#1,300 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
737
Forks
270
PR merge metrics
No merged PRs in 30d

Description

Migration to [Automatic Exec Groups](https://bazel.build/extending/auto-exec-groups) (AEGs) is needed since its incompatible flag (--incompatible_auto_exec_groups) will be enabled for Bazel@Head by default next week (week of 14th of October), thus it will be breaking [rules_foreign_cc](https://github.com/bazel-contrib/rules_foreign_cc). Please migrate and fix potential errors, in order to unblock your project and users who depend on your project. Potential errors can be triggered by building your project with this incompatible flag. Note that AEGs will not be flipped by default for Bazel 8, but for Bazel at head after Bazel 8 cut.

For more details, please check:
- [The reference issue ](https://github.com/bazelbuild/bazel/issues/19981)
- [General Bazel documentation for AEGs](https://bazel.build/extending/auto-exec-groups)
- Particularly interesting parts could be
- [Most common errors](https://bazel.build/extending/auto-exec-groups#potential-problems) you could see during this migration
- [How to disable AEGs](https://bazel.build/extending/auto-exec-groups#how-disable) until fully migrated

Never heard of incompatible flags before? We have [documentation](https://docs.bazel.build/versions/master/backward-compatibility.html) that explains everything.

If you have any questions, please file an issue in https://github.com/bazelbuild/bazel/issues.

Contributor guide

Open the contributing guide

Research direction

Read the linked Automatic Exec Groups documentation and Bazel reference issue first. Build rules_foreign_cc with --incompatible_auto_exec_groups, then use the reported errors to guide the migration; done means the project builds successfully with the flag enabled.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.