From a5fdd11fcfb9b874863bd9f217e609b2b6b252ad Mon Sep 17 00:00:00 2001 From: ump45nose <52391318+ump45nose@users.noreply.github.com> Date: Sat, 24 Oct 2026 16:12:11 +0800 Subject: [PATCH] README: use a golang:1.27 image in the Docker build example (#8698) The README's Compilation with Docker section builds with golang:1.25, but go.mod requires Go 1.26.0 or higher, and .go-version (used by CI) pins 1.27.3. Use golang:1.27 so the example satisfies the declared minimum. Signed-off-by: yuwk <1729065730@qq.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ea60b5c32..980c8deca 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ setup a Go environment, you could build CoreDNS easily: ``` docker run --rm -i -t \ -v $PWD:/go/src/github.com/coredns/coredns -w /go/src/github.com/coredns/coredns \ - golang:1.25 sh -c 'GOFLAGS="-buildvcs=false" make gen && GOFLAGS="-buildvcs=false" make' + golang:1.27 sh -c 'GOFLAGS="-buildvcs=false" make gen && GOFLAGS="-buildvcs=false" make' ``` The above command alone will have `coredns` binary generated.