Closed PhaniTeja7 closed 2 years ago
me too. igot the same issue. plz help
Hello.
I am facing exactly the same problem.. setting the ENV GO_VERSION=1.16
had no effect for me. Anybody on the problem?
version: "3.7"
services:
theia:
container_name: theia.531
build: theia-full-docker
restart: always
user: root
ports:
- 53181:3000
volumes:
- $PWD/projects:/home/project:cached
- /docker/fitness:/home/project/fitness:rw
environment:
- TZ=Europe/Prague
- UID=1000
- GUID=994
- GO_VERSION=1.16
Thanks
Was it resolved please? Thanks
@MacGyver27 changes are likely necessary in the dockerfile itself if you're interested in providing a fix (you can likely inspire yourself from official golang images for the necessary build tools and dependencies which should be updated in the dockerfile).
Hi , there is a build break for GO language server .
usr/local/go-packages/pkg/mod/github.com/golangci/golangci-lint@v1.43.0/internal/robustio/robustio_other.go:18:9: undefined: os.ReadFile note: module requires Go 1.16 github.com/golangci/golangci-lint/pkg/fsutils usr/local/go-packages/pkg/mod/github.com/golangci/golangci-lint@v1.43.0/pkg/fsutils/filecache.go:27:20: undefined: os.ReadFile note: module requires Go 1.16 github.com/go-critic/go-critic/checkers usr/local/go-packages/pkg/mod/github.com/go-critic/go-critic@v0.6.1/checkers/ruleguard_checker.go:149:17: undefined: os.ReadFile github.com/breml/bidichk/pkg/bidichk usr/local/go-packages/pkg/mod/github.com/breml/bidichk@v0.1.1/pkg/bidichk/bidichk.go:46:15: undefined: os.ReadFile note: module requires Go 1.16 The command '/bin/sh -c go get -u -v github.com/mdempsky/gocode && go get -u -v github.com/uudashr/gopkgs/cmd/gopkgs && go get -u -v github.com/ramya-rao-a/go-outline && go get -u -v github.com/acroca/go-symbols && go get -u -v golang.org/x/tools/cmd/guru && go get -u -v golang.org/x/tools/cmd/gorename && go get -u -v github.com/fatih/gomodifytags && go get -u -v github.com/haya14busa/goplay/cmd/goplay && go get -u -v github.com/josharian/impl && go get -u -v github.com/tylerb/gotype-live && go get -u -v github.com/rogpeppe/godef && go get -u -v github.com/zmb3/gogetdoc && go get -u -v golang.org/x/tools/cmd/goimports && go get -u -v github.com/sqs/goreturns && go get -u -v winterdrache.de/goformat/goformat && go get -u -v golang.org/x/lint/golint && go get -u -v github.com/cweill/gotests/... && go get -u -v github.com/alecthomas/gometalinter && go get -u -v honnef.co/go/tools/... && GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint && go get -u -v github.com/mgechev/revive && go get -u -v github.com/sourcegraph/go-langserver && go get -u -v github.com/go-delve/delve/cmd/dlv && go get -u -v github.com/davidrjenni/reftools/cmd/fillstruct && go get -u -v github.com/godoctor/godoctor' returned a non-zero code: 2
Changing the ENV GO_VERSION=1.15 \ doesnt to 1.16 doesn't work either . and below is the error when changed the version to 1.16 :
---> Running in 1dbce08b9671 go: downloading github.com/mdempsky/gocode v0.0.0-20200405233807-4acdcbdea79d go: downloading golang.org/x/tools v0.1.7 golang.org/x/tools/internal/typeparams github.com/mdempsky/gocode/internal/lookdot golang.org/x/tools/go/internal/gcimporter github.com/mdempsky/gocode/internal/suggest golang.org/x/tools/go/gcexportdata github.com/mdempsky/gocode/internal/cache github.com/mdempsky/gocode/internal/gbimporter github.com/mdempsky/gocode go: downloading github.com/uudashr/gopkgs v1.3.2 go: downloading github.com/uudashr/gopkgs v2.0.1+incompatible go: downloading github.com/uudashr/gopkgs/cmd/gopkgs v0.0.0-20191024034442-58e9141cd7d6 go get: github.com/uudashr/gopkgs/cmd/gopkgs@none updating to github.com/uudashr/gopkgs/cmd/gopkgs@v0.0.0-20191024034442-58e9141cd7d6 requires github.com/uudashr/gopkgs/v2@v2.1.0 requires github.com/uudashr/gopkgs@v0.0.0: reading github.com/uudashr/gopkgs/go.mod at revision v0.0.0: unknown revision v0.0.0 The command '/bin/sh -c go get -u -v github.com/mdempsky/gocode && go get -u -v github.com/uudashr/gopkgs/cmd/gopkgs && go get -u -v github.com/ramya-rao-a/go-outline && go get -u -v github.com/acroca/go-symbols && go get -u -v golang.org/x/tools/cmd/guru && go get -u -v golang.org/x/tools/cmd/gorename && go get -u -v github.com/fatih/gomodifytags && go get -u -v github.com/haya14busa/goplay/cmd/goplay && go get -u -v github.com/josharian/impl && go get -u -v github.com/tylerb/gotype-live && go get -u -v github.com/rogpeppe/godef && go get -u -v github.com/zmb3/gogetdoc && go get -u -v golang.org/x/tools/cmd/goimports && go get -u -v github.com/sqs/goreturns && go get -u -v winterdrache.de/goformat/goformat && go get -u -v golang.org/x/lint/golint && go get -u -v github.com/cweill/gotests/... && go get -u -v github.com/alecthomas/gometalinter && go get -u -v honnef.co/go/tools/... && GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint && go get -u -v github.com/mgechev/revive && go get -u -v github.com/sourcegraph/go-langserver && go get -u -v github.com/go-delve/delve/cmd/dlv && go get -u -v github.com/davidrjenni/reftools/cmd/fillstruct && go get -u -v github.com/godoctor/godoctor' returned a non-zero code: 1
I could root cause the issue is from " go get -u -v honnef.co/go/tools/... && \ " command => https://github.com/golang/tools