Skip to content

Commit

Permalink
Makefile: Use 'GOVERSION' variable
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
praveenkumar committed May 7, 2024
1 parent 82b1862 commit 9bdaac7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 9bdaac7

Please sign in to comment.