nginx/nginx-directive-reference

build failures due to golang version mismatches

Closed this issue · 0 comments

ryepup commented

Describe the bug

Daily run is failing: https://github.com/nginx/nginx-directive-reference/actions/runs/12394622715

golang.org/x/tools/gopls@latest: golang.org/x/tools/gopls@v0.17.0 requires go >= 1.23.1 (running go 1.21.13; GOTOOLCHAIN=local)

To reproduce

Steps to reproduce the behavior:

  1. cd tools/devtools
  2. make devtools-image
  3. command fails on installing golang tools
------
 > [golang 2/2] RUN go install github.com/jstemmer/go-junit-report/v2@latest     && go install -v golang.org/x/tools/gopls@latest     && go install github.com/go-delve/delve/cmd/dlv@latest     && curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.1:
2.611 go: downloading github.com/jstemmer/go-junit-report/v2 v2.1.0
2.772 go: downloading github.com/jstemmer/go-junit-report v1.0.0
18.06 go: downloading golang.org/x/tools/gopls v0.17.0
18.09 go: downloading golang.org/x/tools v0.28.0
20.62 go: golang.org/x/tools/gopls@latest: golang.org/x/tools/gopls@v0.17.0 requires go >= 1.23.1 (running go 1.21.13; GOTOOLCHAIN=local)
------

Expected behavior

Command works, making an image that can be used to build the rest of the code.

Your environment

CI pipeline