Skip to content

Commit

Permalink
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 ac936f7 commit 6bdc8cf
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 @@ -30,6 +30,7 @@ public class AppleBootstrap implements Bootstrap {
PackageIdentifier.createUnchecked("_builtins", ""),
PackageIdentifier.createUnchecked("apple_support", ""),
PackageIdentifier.createUnchecked("bazel_tools", ""),
PackageIdentifier.createUnchecked("build_bazel_rules_apple", ""), // alias for rules_apple
PackageIdentifier.createUnchecked("build_bazel_rules_swift", ""), // alias for rules_swift
PackageIdentifier.createUnchecked("io_bazel_rules_go", ""), // alias for rules_go
PackageIdentifier.createUnchecked("local_config_cc", ""),
Expand Down

0 comments on commit 6bdc8cf

Please sign in to comment.