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:
@@ -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
|
||||
|
||||
@@ -24,6 +24,8 @@ jobs:
|
||||
- run: |
|
||||
go install github.com/google/ko@v0.19.1
|
||||
go install github.com/google/go-containerregistry/cmd/crane@v0.22.1
|
||||
env:
|
||||
GOTOOLCHAIN: auto
|
||||
- run: echo "${GITHUB_TOKEN}" | crane auth login ghcr.io -u "${GITHUB_ACTOR}" --password-stdin
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user