From b7e31b815b0bc5ecfa5977a44237f8bdb83e506a Mon Sep 17 00:00:00 2001 From: Xavier Bonaventura Date: Mon, 8 Nov 2021 21:49:04 +0100 Subject: [PATCH] Do not use constraints from bazel_tools Fixes #674 --- toolchains/kubectl/BUILD | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/toolchains/kubectl/BUILD b/toolchains/kubectl/BUILD index a30ae84d..ba7edf30 100644 --- a/toolchains/kubectl/BUILD +++ b/toolchains/kubectl/BUILD @@ -35,8 +35,8 @@ kubectl_toolchain( toolchain( name = "kubectl_linux_amd64_toolchain", target_compatible_with = [ - "@bazel_tools//platforms:linux", - "@bazel_tools//platforms:x86_64", + "@platforms//os:linux", + "@platforms//cpu:x86_64", ], toolchain = "@k8s_config//:toolchain", toolchain_type = ":toolchain_type", @@ -45,8 +45,8 @@ toolchain( toolchain( name = "kubectl_linux_s390x_toolchain", target_compatible_with = [ - "@bazel_tools//platforms:linux", - "@bazel_tools//platforms:s390x", + "@platforms//os:linux", + "@platforms//cpu:s390x", ], toolchain = "@k8s_config//:toolchain", toolchain_type = ":toolchain_type", @@ -55,8 +55,8 @@ toolchain( toolchain( name = "kubectl_linux_arm64_toolchain", target_compatible_with = [ - "@bazel_tools//platforms:linux", - "@bazel_tools//platforms:aarch64", + "@platforms//os:linux", + "@platforms//cpu:aarch64", ], toolchain = "@k8s_config//:toolchain", toolchain_type = ":toolchain_type", @@ -65,8 +65,8 @@ toolchain( toolchain( name = "kubectl_osx_toolchain", target_compatible_with = [ - "@bazel_tools//platforms:osx", - "@bazel_tools//platforms:x86_64", + "@platforms//os:osx", + "@platforms//cpu:x86_64", ], toolchain = "@k8s_config//:toolchain", toolchain_type = ":toolchain_type", @@ -75,8 +75,8 @@ toolchain( toolchain( name = "kubectl_windows_toolchain", target_compatible_with = [ - "@bazel_tools//platforms:windows", - "@bazel_tools//platforms:x86_64", + "@platforms//os:windows", + "@platforms//cpu:x86_64", ], toolchain = "@k8s_config//:toolchain", toolchain_type = ":toolchain_type",