diff --git a/.bazelversion b/.bazelversion index a8a188756..0ee843cc6 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -7.1.2 +7.2.0 diff --git a/lib/private/BUILD.bazel b/lib/private/BUILD.bazel index 384aa236e..67278ccce 100644 --- a/lib/private/BUILD.bazel +++ b/lib/private/BUILD.bazel @@ -263,7 +263,16 @@ bzl_library( srcs = [ "platform_utils.bzl", "@local_config_platform//:constraints.bzl", # keep - ], + "@platforms//host:constraints.bzl", # keep + ] + (select({ + "@aspect_bazel_lib//lib:bzlmod": [ + "@@platforms~host_platform~host_platform//:constraints.bzl", # keep + ], + "//conditions:default": [ + "@host_platform//:constraints.bzl", # keep + "@internal_platforms_do_not_use//host:constraints.bzl", # keep + ], + }) if is_bazel_7_or_greater() else []), visibility = ["//lib:__subpackages__"], deps = [], # keep )