Skip to content

Dockerfile uses Go 1.21.6 but go.mod requires Go >= 1.23.0 #42

@sudiplun

Description

@sudiplun

There is a mismatch between the Go version declared in go.mod and the one used in the Dockerfile.

  • go.mod requires:
    go 1.23
  • But Dockerfile uses:
    FROM golang:1.21.6

This results in the following error during Docker build:
go: go.mod requires go >= 1.23.0 (running go 1.21.6; GOTOOLCHAIN=local)
failed to solve: process "/bin/sh -c go mod download" did not complete successfully: exit code: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions