ITADN

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

#42Opensudiplun 创建于 2025-07-11
S
sudipluncommented
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
1 条评论