-
Notifications
You must be signed in to change notification settings - Fork 245
Open
Description
Expected behavior (what you expected to happen):
Docker build should produce an image.
Actual behavior (what actually happened):
Docker build is failing since the following line is failing
RUN GOOS=linux \
go build -ldflags="-s -w -X 'github.com/flant/shell-operator/pkg/app.Version=$appVersion'" \
-o shell-operator \
./cmd/shell-operator
error:
------
> [builder 5/7] RUN go mod download:
0.127 go: go.mod requires go >= 1.24 (running go 1.23.12; GOTOOLCHAIN=local)
------
Steps to reproduce:
- Download release https://github.com/flant/shell-operator/archive/refs/tags/v1.12.3.tar.gz
- Extract release
- Execute command
docker build -t sometag .
Anything else we should know?:
With versions 1.12.0 - 1.12.3 this problem arises.
With version 1.11.4 it is working.
Can be fixed by changing:
FROM --platform=${TARGETPLATFORM:-linux/amd64} golang:1.23-alpine AS builder
to
FROM --platform=${TARGETPLATFORM:-linux/amd64} golang:1.24-alpine AS builder
Metadata
Metadata
Assignees
Labels
No labels