From ab25736d4a683497f38fafe09644f69bb640ed5d Mon Sep 17 00:00:00 2001 From: JP Simard Date: Sun, 29 Mar 2026 13:18:26 -0400 Subject: [PATCH] Add `max_compatibility_level = 3` for `rules_swift` dep The upcoming `rules_swift` release bumps `compatibility_level` from 2 to 3. Without `max_compatibility_level = 3` on the `bazel_dep`, Bzlmod rejects the resolution when downstream projects use that release (or a git override at a commit past the bump). Other modules in the ecosystem (`rules_apple`, `rules_swift_package_manager`, `swift-syntax`, `swift-index-store`) already declare this. Signed-off-by: JP Simard --- MODULE.bazel | 1 + 1 file changed, 1 insertion(+) diff --git a/MODULE.bazel b/MODULE.bazel index a9e93cd87..ed7069c8e 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -17,6 +17,7 @@ bazel_dep(name = "rules_cc", version = "0.2.17") bazel_dep( name = "rules_swift", version = "3.5.0", + max_compatibility_level = 3, repo_name = "build_bazel_rules_swift", ) bazel_dep(