mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
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:
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user