Skip to content

Image can't be created for release 1.12.0 - 1.12.3 #830

@jmueller42

Description

@jmueller42

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions