From d4e71b43f249635e57845600a8662f4d15f723e0 Mon Sep 17 00:00:00 2001 From: Sergii Khliustin Date: Tue, 30 Apr 2024 18:35:57 +0200 Subject: [PATCH] Fix BCR build --- BUILD.bazel | 4 ++-- MODULE.bazel | 8 +++----- repositories.bzl | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 01414768..049cc521 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,5 +1,5 @@ -load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library") -load("@build_bazel_rules_apple//apple:macos.bzl", "macos_command_line_application") +load("@rules_swift//swift:swift.bzl", "swift_library") +load("@rules_apple//apple:macos.bzl", "macos_command_line_application") load("@rules_cc//cc:defs.bzl", "objc_library") SWIFT_VERSION = "5" diff --git a/MODULE.bazel b/MODULE.bazel index 766a3065..0fb81f80 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -13,18 +13,16 @@ bazel_dep( ) bazel_dep( name = "apple_support", - version = "1.15.1", - repo_name = "build_bazel_apple_support", + version = "1.15.1" ) bazel_dep( name = "rules_apple", - version = "3.5.1", - repo_name = "build_bazel_rules_apple", + version = "3.5.1" ) bazel_dep( name = "rules_swift", version = "1.18.0", - repo_name = "build_bazel_rules_swift", + repo_name = "rules_swift", ) bazel_dep( name = "rules_cc", diff --git a/repositories.bzl b/repositories.bzl index e537af0a..f932e43c 100644 --- a/repositories.bzl +++ b/repositories.bzl @@ -41,7 +41,7 @@ def namespaced_http_archive(name, **kwargs): def namespaced_build_file(libs): return """ package(default_visibility = ["//visibility:public"]) -load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library") +load("@rules_swift//swift:swift.bzl", "swift_library") """ + "\n\n".join(libs) def namespaced_swift_library(name, srcs, deps = None, defines = None, copts=[]):