Build the image on the Go its module requires

go.mod asks for go 1.27.1 and the builder stage was golang:1.26.8-alpine,
whose GOTOOLCHAIN=local fails that build; the publish gate refuses it
before it starts. The stage now uses golang:1.27.1-alpine and sets
GOTOOLCHAIN=auto, so a later go.mod bump fetches its Go instead of
failing.

Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
2026-10-03 12:30:13 -07:00
co-authored by Hanzo Dev
parent 3d729057eb
commit fd0483569b
+4 -1
View File
@@ -9,7 +9,10 @@
# resulting dist/ into this build context. ui/embed.go imports the
# bundle via //go:embed all:dist at compile time.
FROM golang:1.26.8-alpine AS go-build
FROM golang:1.27.1-alpine AS go-build
# The golang images default to GOTOOLCHAIN=local, which fails a build whose
# go.mod asks for a newer Go than the image carries; auto fetches that Go.
ENV GOTOOLCHAIN=auto
# git: the private-module fetch below resolves `direct` via git.
RUN apk add --no-cache git
WORKDIR /src