Skip to content

Commit

Permalink
[8.0.0] Add missing rules_apple allowlist alias
Browse files Browse the repository at this point in the history
If this is used from a WORKSPACE, or used in bzlmod with the repo name
overridden to the old name, rules_apple isn't correct for this
allowlist.

Closes bazelbuild#24582.

PiperOrigin-RevId: 703493907
Change-Id: Ie4f88de60775c50874169e4fb5712b7b5fe8b8bd
  • Loading branch information
keith authored and meteorcloudy committed Dec 6, 2024
1 parent f30b5d8 commit d0da8fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public final class BuiltinRestriction {
// Apple rules
BuiltinRestriction.allowlistEntry("", "third_party/bazel_rules/rules_apple"),
BuiltinRestriction.allowlistEntry("rules_apple", ""),
BuiltinRestriction.allowlistEntry("build_bazel_rules_apple", ""),

// Cc rules
BuiltinRestriction.allowlistEntry("", "third_party/bazel_rules/rules_cc"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class AppleBootstrap implements Bootstrap {
ImmutableSet.of(
PackageIdentifier.createUnchecked("_builtins", ""),
PackageIdentifier.createUnchecked("bazel_tools", ""),
PackageIdentifier.createUnchecked("build_bazel_rules_apple", ""), // alias for rules_apple
PackageIdentifier.createUnchecked("rules_apple", ""),
PackageIdentifier.createUnchecked("", "tools/build_defs/apple"));

Expand Down

0 comments on commit d0da8fe

Please sign in to comment.