diff --git a/.bazelrc b/.bazelrc index 325b24b0aa..44ce0eb8e2 100644 --- a/.bazelrc +++ b/.bazelrc @@ -62,6 +62,8 @@ build --incompatible_merge_fixed_and_default_shell_env # https://github.com/bazelbuild/bazel/issues/23043. build --incompatible_autoload_externally= +common --incompatible_disable_native_repo_rules + ############################################################################### ## Bzlmod ############################################################################### diff --git a/examples/crate_universe_local_path/WORKSPACE.bazel b/examples/crate_universe_local_path/WORKSPACE.bazel index 98f3b67424..9badf2b141 100644 --- a/examples/crate_universe_local_path/WORKSPACE.bazel +++ b/examples/crate_universe_local_path/WORKSPACE.bazel @@ -1,3 +1,5 @@ +load("@bazel_tools//tools/build_defs/repo:local.bzl", "local_repository") + local_repository( name = "rules_rust", path = "../../", diff --git a/examples/nix_cross_compiling/bazel/platforms/BUILD.bazel b/examples/nix_cross_compiling/bazel/platforms/BUILD.bazel index bed7e836e1..70cb4df0db 100644 --- a/examples/nix_cross_compiling/bazel/platforms/BUILD.bazel +++ b/examples/nix_cross_compiling/bazel/platforms/BUILD.bazel @@ -4,7 +4,7 @@ package(default_visibility = ["//visibility:public"]) platform( name = "host", constraint_values = ["@platforms//os:nixos"], - parents = ["@local_config_platform//:host"], + parents = ["@platforms//host"], ) # Platforms diff --git a/examples/zig_cross_compiling/WORKSPACE.bazel b/examples/zig_cross_compiling/WORKSPACE.bazel index a426f11bcb..71e50f86c7 100644 --- a/examples/zig_cross_compiling/WORKSPACE.bazel +++ b/examples/zig_cross_compiling/WORKSPACE.bazel @@ -17,6 +17,8 @@ register_toolchains( "@zig_sdk//toolchain:linux_arm64_gnu.2.28", ) +load("@bazel_tools//tools/build_defs/repo:local.bzl", "local_repository") + local_repository( name = "rules_rust", path = "../..",