From 299e557005a0737aac24714521b8ba97f2f270fd Mon Sep 17 00:00:00 2001 From: Erik Kerber Date: Tue, 2 Jul 2024 19:35:53 -0500 Subject: [PATCH] Remove explicit repo name loading local bzl files --- apple/cc_toolchain_forwarder.bzl | 4 ++-- apple/internal/apple_xcframework_import.bzl | 6 +++--- apple/internal/aspects/app_intents_aspect.bzl | 2 +- apple/internal/docc.bzl | 2 +- apple/internal/framework_import_support.bzl | 10 +++++----- apple/internal/local_provisioning_profiles.bzl | 6 +++--- .../internal/partials/app_intents_metadata_bundle.bzl | 6 +++--- apple/internal/resource_actions/app_intents.bzl | 2 +- apple/internal/xcarchive.bzl | 2 +- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/apple/cc_toolchain_forwarder.bzl b/apple/cc_toolchain_forwarder.bzl index e60b3469c9..a31413f709 100644 --- a/apple/cc_toolchain_forwarder.bzl +++ b/apple/cc_toolchain_forwarder.bzl @@ -16,8 +16,8 @@ A rule for handling the cc_toolchains and their constraints for a potential "fat" Mach-O binary. """ -load("@build_bazel_rules_apple//apple/internal:providers.bzl", "new_appleplatforminfo") -load("@build_bazel_rules_apple//apple:providers.bzl", "ApplePlatformInfo") +load("//apple/internal:providers.bzl", "new_appleplatforminfo") +load("//apple:providers.bzl", "ApplePlatformInfo") load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain", "use_cpp_toolchain") def _target_os_from_rule_ctx(ctx): diff --git a/apple/internal/apple_xcframework_import.bzl b/apple/internal/apple_xcframework_import.bzl index e277994575..1247aed82b 100644 --- a/apple/internal/apple_xcframework_import.bzl +++ b/apple/internal/apple_xcframework_import.bzl @@ -32,13 +32,13 @@ load( "@build_bazel_rules_apple//apple/internal:framework_import_support.bzl", "framework_import_support", ) -load("@build_bazel_rules_apple//apple/internal:intermediates.bzl", "intermediates") -load("@build_bazel_rules_apple//apple/internal:rule_attrs.bzl", "rule_attrs") +load("//apple/internal:intermediates.bzl", "intermediates") +load("//apple/internal:rule_attrs.bzl", "rule_attrs") load( "@build_bazel_rules_apple//apple/internal/aspects:swift_usage_aspect.bzl", "SwiftUsageInfo", ) -load("@build_bazel_rules_apple//apple:providers.bzl", "AppleFrameworkImportInfo") +load("//apple:providers.bzl", "AppleFrameworkImportInfo") load( "@build_bazel_rules_apple//apple/internal/providers:framework_import_bundle_info.bzl", "AppleFrameworkImportBundleInfo", diff --git a/apple/internal/aspects/app_intents_aspect.bzl b/apple/internal/aspects/app_intents_aspect.bzl index 8b7f13fc9d..8315983b44 100644 --- a/apple/internal/aspects/app_intents_aspect.bzl +++ b/apple/internal/aspects/app_intents_aspect.bzl @@ -18,7 +18,7 @@ load( "@build_bazel_rules_apple//apple/internal/providers:app_intents_info.bzl", "AppIntentsInfo", ) -load("@build_bazel_rules_apple//apple/internal:cc_info_support.bzl", "cc_info_support") +load("//apple/internal:cc_info_support.bzl", "cc_info_support") def _app_intents_aspect_impl(target, ctx): """Implementation of the swift source files propation aspect.""" diff --git a/apple/internal/docc.bzl b/apple/internal/docc.bzl index 022ce209d2..6a98f3f70e 100644 --- a/apple/internal/docc.bzl +++ b/apple/internal/docc.bzl @@ -180,7 +180,7 @@ NOTE: At this time Swift is the only supported language for this rule. Example: ```python -load("@build_bazel_rules_apple//apple:docc.bzl", "docc_archive") +load("//apple:docc.bzl", "docc_archive") docc_archive( name = "Lib.doccarchive", diff --git a/apple/internal/framework_import_support.bzl b/apple/internal/framework_import_support.bzl index e787b94849..40ca3d4abb 100644 --- a/apple/internal/framework_import_support.bzl +++ b/apple/internal/framework_import_support.bzl @@ -14,11 +14,11 @@ """Support methods for Apple framework import rules.""" -load("@build_bazel_rules_apple//apple/internal/utils:files.bzl", "files") -load("@build_bazel_rules_apple//apple/internal:providers.bzl", "new_appleframeworkimportinfo") -load("@build_bazel_rules_apple//apple:providers.bzl", "AppleFrameworkImportInfo") -load("@build_bazel_rules_apple//apple/internal/utils:defines.bzl", "defines") -load("@build_bazel_rules_apple//apple:utils.bzl", "group_files_by_directory") +load("//apple/internal/utils:files.bzl", "files") +load("//apple/internal:providers.bzl", "new_appleframeworkimportinfo") +load("//apple:providers.bzl", "AppleFrameworkImportInfo") +load("//apple/internal/utils:defines.bzl", "defines") +load("//apple:utils.bzl", "group_files_by_directory") load( "@build_bazel_rules_swift//swift:swift.bzl", "SwiftInfo", diff --git a/apple/internal/local_provisioning_profiles.bzl b/apple/internal/local_provisioning_profiles.bzl index 47c010e34c..a4002f1f11 100644 --- a/apple/internal/local_provisioning_profiles.bzl +++ b/apple/internal/local_provisioning_profiles.bzl @@ -63,7 +63,7 @@ provisioning_profile_repository.setup( ### In your `WORKSPACE` file: ```starlark -load("@build_bazel_rules_apple//apple:apple.bzl", "provisioning_profile_repository") +load("//apple:apple.bzl", "provisioning_profile_repository") provisioning_profile_repository( name = "local_provisioning_profiles", @@ -74,7 +74,7 @@ provisioning_profile_repository( ### In your `BUILD` files (see `local_provisioning_profile` for more examples): ```starlark -load("@build_bazel_rules_apple//apple:apple.bzl", "local_provisioning_profile") +load("//apple:apple.bzl", "local_provisioning_profile") local_provisioning_profile( name = "app_debug_profile", @@ -199,7 +199,7 @@ same profile name. ## Example ```starlark -load("@build_bazel_rules_apple//apple:apple.bzl", "local_provisioning_profile") +load("//apple:apple.bzl", "local_provisioning_profile") local_provisioning_profile( name = "app_debug_profile", diff --git a/apple/internal/partials/app_intents_metadata_bundle.bzl b/apple/internal/partials/app_intents_metadata_bundle.bzl index 008709210f..d95c26a00a 100644 --- a/apple/internal/partials/app_intents_metadata_bundle.bzl +++ b/apple/internal/partials/app_intents_metadata_bundle.bzl @@ -14,9 +14,9 @@ """Partial implementation for processing AppIntents metadata bundle.""" -load("@build_bazel_rules_apple//apple/internal:intermediates.bzl", "intermediates") -load("@build_bazel_rules_apple//apple/internal:linking_support.bzl", "linking_support") -load("@build_bazel_rules_apple//apple/internal:processor.bzl", "processor") +load("//apple/internal:intermediates.bzl", "intermediates") +load("//apple/internal:linking_support.bzl", "linking_support") +load("//apple/internal:processor.bzl", "processor") load( "@build_bazel_rules_apple//apple/internal/providers:app_intents_info.bzl", "AppIntentsInfo", diff --git a/apple/internal/resource_actions/app_intents.bzl b/apple/internal/resource_actions/app_intents.bzl index cfe1dca2c5..0362e2203f 100644 --- a/apple/internal/resource_actions/app_intents.bzl +++ b/apple/internal/resource_actions/app_intents.bzl @@ -15,7 +15,7 @@ """AppIntents intents related actions.""" load("@build_bazel_apple_support//lib:apple_support.bzl", "apple_support") -load("@build_bazel_rules_apple//apple/internal:intermediates.bzl", "intermediates") +load("//apple/internal:intermediates.bzl", "intermediates") def generate_app_intents_metadata_bundle( *, diff --git a/apple/internal/xcarchive.bzl b/apple/internal/xcarchive.bzl index 0fe32599b0..b40cb531a6 100644 --- a/apple/internal/xcarchive.bzl +++ b/apple/internal/xcarchive.bzl @@ -101,7 +101,7 @@ metadata for the .xcarchive. Example: ````starlark -load("@build_bazel_rules_apple//apple:xcarchive.bzl", "xcarchive") +load("//apple:xcarchive.bzl", "xcarchive") ios_application( name = "App",