thockin / go-build-template

A Makefile/Dockerfile example for Go projects.
Apache License 2.0
3.25k stars 433 forks source link

Bump Golang to 1.22 #111

Closed jingyuanliang closed 8 months ago

jingyuanliang commented 8 months ago

Also set GOTOOLCHAIN=local on the go command inside Makefile so it doesn't try to download a different go toolchain based on go.mod just to extract GOOS and GOARCH, if the local toolchain doesn't match go.mod.