From 81b68c21e6cd74a69d7440d3eef0a9fc2c0d6b2a Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Fri, 17 Feb 2023 14:26:50 -0800 Subject: [PATCH] Use common rules_swift name (#389) This is required for users who include Yams without bzlmod today --- BUILD | 2 +- MODULE.bazel | 3 ++- Tests/BUILD | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/BUILD b/BUILD index 3ffb9812..c13d7260 100644 --- a/BUILD +++ b/BUILD @@ -1,4 +1,4 @@ -load("@rules_swift//swift:swift.bzl", "swift_library") +load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library") cc_library( name = "CYaml", diff --git a/MODULE.bazel b/MODULE.bazel index 35b002c2..53b8715c 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -4,6 +4,7 @@ module( compatibility_level = 1, ) +bazel_dep(name = "rules_swift", version = "1.5.1", repo_name = "build_bazel_rules_swift") + bazel_dep(name = "platforms", version = "0.0.6", dev_dependency = True) bazel_dep(name = "rules_apple", version = "2.0.0", dev_dependency = True) -bazel_dep(name = "rules_swift", version = "1.5.1") diff --git a/Tests/BUILD b/Tests/BUILD index 3cf0db77..b2f01f80 100644 --- a/Tests/BUILD +++ b/Tests/BUILD @@ -2,7 +2,7 @@ load("@rules_apple//apple:macos.bzl", "macos_build_test") load("@rules_apple//apple:watchos.bzl", "watchos_build_test") load("@rules_apple//apple:tvos.bzl", "tvos_build_test") load("@rules_apple//apple:ios.bzl", "ios_build_test") -load("@rules_swift//swift:swift.bzl", "swift_test") +load("@build_bazel_rules_swift//swift:swift.bzl", "swift_test") config_setting( name = "linux",