diff --git a/Makefile b/Makefile index e59e828b09c86..6624262089778 100644 --- a/Makefile +++ b/Makefile @@ -709,37 +709,37 @@ bazel-build-cli: .PHONY: bazel-crossbuild-kops bazel-crossbuild-kops: - bazel build --features=pure --platforms=@io_bazel_rules_go//go/toolchain:darwin_amd64 //cmd/kops/... - bazel build --features=pure --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //cmd/kops/... - bazel build --features=pure --platforms=@io_bazel_rules_go//go/toolchain:windows_amd64 //cmd/kops/... + bazel build --features=pure --platforms=@io_bazel_rules_go//go/toolchain:darwin_amd64_cgo //cmd/kops/... + bazel build --features=pure --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64_cgo //cmd/kops/... + bazel build --features=pure --platforms=@io_bazel_rules_go//go/toolchain:windows_amd64_cgo //cmd/kops/... .PHONY: bazel-crossbuild-nodeup bazel-crossbuild-nodeup: - bazel build --features=pure --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //cmd/nodeup/... + bazel build --features=pure --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64_cgo //cmd/nodeup/... .PHONY: bazel-crossbuild-protokube bazel-crossbuild-protokube: - bazel build --features=pure --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //protokube/... + bazel build --features=pure --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64_cgo //protokube/... .PHONY: bazel-crossbuild-dns-controller bazel-crossbuild-dns-controller: - bazel build --features=pure --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //dns-controller/... + bazel build --features=pure --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64_cgo //dns-controller/... .PHONY: bazel-crossbuild-dns-controller-image bazel-crossbuild-dns-controller-image: - bazel build --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //images:dns-controller.tar + bazel build --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64_cgo //images:dns-controller.tar .PHONY: bazel-crossbuild-protokube-image bazel-crossbuild-protokube-image: - bazel build --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //images:protokube.tar + bazel build --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64_cgo //images:protokube.tar .PHONY: bazel-crossbuild-kube-discovery-image bazel-crossbuild-kube-discovery-image: - bazel build --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //images:kube-discovery.tar + bazel build --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64_cgo //images:kube-discovery.tar .PHONY: bazel-crossbuild-node-authorizer-image bazel-crossbuild-node-authorizer-image: - bazel build --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //images:node-authorizer.tar + bazel build --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64_cgo //images:node-authorizer.tar .PHONY: bazel-push # Will always push a linux-based build up to the server @@ -794,7 +794,7 @@ push-node-authorizer: .PHONY: bazel-protokube-export bazel-protokube-export: mkdir -p ${BAZELIMAGES} - bazel build --action_env=PROTOKUBE_TAG=${PROTOKUBE_TAG} --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //images:protokube.tar + bazel build --action_env=PROTOKUBE_TAG=${PROTOKUBE_TAG} --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64_cgo //images:protokube.tar cp -fp bazel-bin/images/protokube.tar ${BAZELIMAGES}/protokube.tar gzip --force --fast ${BAZELIMAGES}/protokube.tar (${SHASUMCMD} ${BAZELIMAGES}/protokube.tar.gz | cut -d' ' -f1) > ${BAZELIMAGES}/protokube.tar.gz.sha1 diff --git a/WORKSPACE b/WORKSPACE index 3a2ceb4583002..09d2fea29899a 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -6,14 +6,14 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") http_archive( name = "io_bazel_rules_go", - urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.18.5/rules_go-0.18.5.tar.gz"], - sha256 = "a82a352bffae6bee4e95f68a8d80a70e87f42c4741e6a448bec11998fcc82329", + urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.19.3/rules_go-0.19.3.tar.gz"], + sha256 = "313f2c7a23fecc33023563f082f381a32b9b7254f727a7dd2d6380ccc6dfe09b", ) http_archive( name = "bazel_gazelle", - urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.17.0/bazel-gazelle-0.17.0.tar.gz"], - sha256 = "3c681998538231a2d24d0c07ed5a7658cb72bfb5fd4bf9911157c0e9ac6a2687", + urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.18.2/bazel-gazelle-0.18.2.tar.gz"], + sha256 = "7fc87f4170011201b1690326e8c16c5d802836e3a0d617d8f75c3af2b23180c4", ) load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")