Let ko install pick its Go toolchain (#185)

setup-go exports GOTOOLCHAIN=local, pinning the Go version from go.mod (1.25.9). ko v0.19.1 requires go >= 1.26.3, so `go install` of ko fails in the GitHub Actions build and release jobs.

- Set GOTOOLCHAIN=auto on the ko install step in ci.yml so Go fetches the toolchain ko needs
- Set GOTOOLCHAIN=auto on the ko/crane install step in release.yml

Reviewed-on: #185
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
This commit was merged in pull request #185.
This commit is contained in:
2026-11-21 00:03:55 +11:00
committed by BenVincent
parent 0be7e2250a
commit 801ba265fe
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -56,6 +56,8 @@ jobs:
go-version-file: go.mod
- run: go build ./...
- run: go install github.com/google/ko@v0.19.1
env:
GOTOOLCHAIN: auto
- run: ko build --push=false --bare --platform linux/amd64 ./cmd/artifactapi
env:
KO_DOCKER_REPO: ghcr.io/iuclabs/artifactapi