aboutsummaryrefslogtreecommitdiff
path: root/Makefile.release
diff options
context:
space:
mode:
authorGravatar Jason Du <jasonxdu@amazon.com> 2024-03-07 11:23:13 -0800
committerGravatar GitHub <noreply@github.com> 2024-03-07 14:23:13 -0500
commit5556180ac68675879503b1381eb6d80b62aeb1d7 (patch)
tree8ecba22a8db71e78b2ea1bff39bb73190ab27dce /Makefile.release
parentb2defec33a757c4f929b3d3705c3ec71ef2872b1 (diff)
downloadcoredns-5556180ac68675879503b1381eb6d80b62aeb1d7.tar.gz
coredns-5556180ac68675879503b1381eb6d80b62aeb1d7.tar.zst
coredns-5556180ac68675879503b1381eb6d80b62aeb1d7.zip
Repo controlled Go version (#6526)
* Repo controlled Go version Signed-off-by: xdu31 <jasonxdu@amazon.com> * Bump to go1.21.8 for CVE update Signed-off-by: xdu31 <jasonxdu@amazon.com> --------- Signed-off-by: xdu31 <jasonxdu@amazon.com>
Diffstat (limited to 'Makefile.release')
-rw-r--r--Makefile.release4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.release b/Makefile.release
index f28a8ddcd..bc4108fd5 100644
--- a/Makefile.release
+++ b/Makefile.release
@@ -52,6 +52,10 @@ NAME:=coredns
VERSION:=$(shell grep 'CoreVersion' coremain/version.go | awk '{ print $$3 }' | tr -d '"')
GITHUB:=coredns
LINUX_ARCH:=amd64 arm arm64 mips64le ppc64le s390x mips riscv64
+GOLANG_VERSION ?= $(shell cat .go-version)
+
+export GOSUMDB = sum.golang.org
+export GOTOOLCHAIN = go$(GOLANG_VERSION)
all:
@echo Use the 'release' target to build a release