Merge pull request #6650 from JohnTitor/update-go

Update Go version to 1.18
This commit is contained in:
Kubernetes Prow Robot 2022-05-13 09:31:49 -07:00 committed by GitHub
commit d858f930aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,4 @@
IMAGE_NAME=golang:1.12
export GO111MODULE=on
IMAGE_NAME=golang:1.18
export GOPROXY?=https://proxy.golang.org
default: \
@ -12,7 +11,7 @@ generate:
go run ./generator/app.go
generate-dockerized:
docker run --rm -e WHAT -e GO111MODULE -e GOPROXY -v $(shell pwd):/go/src/app:Z $(IMAGE_NAME) make -C /go/src/app generate
docker run --rm -e WHAT -e GOPROXY -v $(shell pwd):/go/src/app:Z $(IMAGE_NAME) make -C /go/src/app generate
verify:
@hack/verify.sh

2
go.mod
View File

@ -1,6 +1,6 @@
module k8s.io/community
go 1.15
go 1.18
require (
github.com/client9/misspell v0.3.4