Skip to content

[Bug]: golang:1.24 is required when building image for 4.0.1 version #8025

@komalbhagavan

Description

@komalbhagavan

Version

4.0.1

What Kubernetes platforms are you running on?

Kind

Steps to reproduce

The golang:1.23 is giving an issue when building the images , below is the error we are facing

#70 ERROR: process "/bin/sh -c go mod download" did not complete successfully: exit code: 1
------
 > [builder 3/4] RUN --mount=type=bind,target=/go/src/github.com/nginx/kubernetes-ingress/ --mount=type=cache,target=/root/.cache/go-build 	go mod download:
0.203 go: go.mod requires go >= 1.24.2 (running go 1.23.6; GOTOOLCHAIN=local)
------
ERROR: failed to build: failed to solve: process "/bin/sh -c go mod download" did not complete successfully: exit code: 1
make: *** [Makefile:148: alpine-image-plus-fips] Error 1```

So we need to update the FROM golang:1.23-alpine@sha256:2c49857f2295e89b23b28386e57e018a86620a8fede5003900f2d138ba9c4037 AS golang-builder
 in dockerfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue reporting a potential bugneeds triageAn issue that needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions