shell-operator icon indicating copy to clipboard operation
shell-operator copied to clipboard

Image can't be created for release 1.12.0 - 1.12.3

Open jmueller42 opened this issue 1 month ago • 0 comments

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:

  1. Download release https://github.com/flant/shell-operator/archive/refs/tags/v1.12.3.tar.gz
  2. Extract release
  3. 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

jmueller42 avatar Dec 09 '25 09:12 jmueller42