From 9bdaac799eb74ab06bc4fcc1735ae7d53ca683cd Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Fri, 3 May 2024 09:41:21 +0530 Subject: [PATCH] Makefile: Use 'GOVERSION' variable Instead of mention go version on different place better to use 'GOVERSION' variable which can be also updated by our update-go-version script (in next commit). --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b4656e2342..f4d6f41a5e 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,7 @@ DOCS_BUILD_TARGET ?= /docs/source/getting_started/master.adoc GOOS ?= $(shell go env GOOS) GOARCH ?= $(shell go env GOARCH) +GOVERSION = 1.20 HOST_BUILD_DIR=$(BUILD_DIR)/$(GOOS)-$(GOARCH) GOPATH ?= $(shell go env GOPATH) @@ -327,7 +328,7 @@ endif .PHONY: update-go-version update-go-version: - ./update-go-version.sh 1.20 + ./update-go-version.sh $(GOVERSION) .PHONY: goversioncheck goversioncheck: