Skip to content

Commit 94eacb7

Browse files
committed
all: test with the latest released Go version
This change updates the Makefile to call ./cmd/latestgo, which returns the latest tagged version of Go. This is how CI also builds the playground. Now, local testing is more similar. Change-Id: I825ddb08573fade2c7451dcd44f97bd25c2253fa Reviewed-on: https://go-review.googlesource.com/c/playground/+/297635 Trust: Alexander Rakoczy <[email protected]> Run-TryBot: Alexander Rakoczy <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 4d02eef commit 94eacb7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ CLOUDBUILD_PLAYGROUND_TRIGGER_ID := $(shell jq -r .id ${CLOUDBUILD_PLAYGROUND_TR
33
CLOUDBUILD_GO_TRIGGER_JSON := deploy/go_trigger.json
44
CLOUDBUILD_GO_TRIGGER_ID := $(shell jq -r .id ${CLOUDBUILD_GO_TRIGGER_JSON})
55
GCLOUD_ACCESS_TOKEN := $(shell gcloud auth print-access-token)
6+
LATEST_GO := $(shell go run ./cmd/latestgo)
67

78
.PHONY: docker test update-cloudbuild-trigger
89

910
docker:
10-
docker build -t golang/playground .
11+
docker build --build-arg GO_VERSION=$(LATEST_GO) -t golang/playground .
1112

1213
runlocal:
1314
docker network create sandnet || true

0 commit comments

Comments
 (0)