Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

staticcheck installation fails with go1.16 #1251

Closed
elulcao opened this issue Apr 12, 2022 · 2 comments
Closed

staticcheck installation fails with go1.16 #1251

elulcao opened this issue Apr 12, 2022 · 2 comments

Comments

@elulcao
Copy link

elulcao commented Apr 12, 2022

Installing staticcheck@latest with go1.16 failed due to builder.go:36:2: //go:build comment without // +build

Why the go:build error at line 36, any problem with old Go versions?

"honnef.co/go/tools/go/types/typeutil"

  • The output of 'go version'
go1.16 version
go version go1.16 darwin/amd64
  • Exactly which command you ran
  • Output of the command and what's wrong with the output
go1.16 install -v honnef.co/go/tools/cmd/staticcheck@latest
go/pkg/mod/honnef.co/go/[email protected]/go/ir/builder.go:36:2: //go:build comment without // +build comment
  • The output of 'go env'
GO111MODULE="auto"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/elulcao/Library/Caches/go-build"
GOENV="/Users/elulcao/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/elulcao/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/elulcao/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/elulcao/sdk/go1.16"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/elulcao/sdk/go1.16/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/n2/hvpmf0sx2qvb5_gqw6x68v1c0000gp/T/go-build2025813865=/tmp/go-build -gno-record-gcc-switches -fno-common"
@ainar-g
Copy link
Contributor

ainar-g commented Apr 12, 2022

Go 1.16 is EOL. See https://github.com/golang/go/wiki/Go-Release-Cycle#release-maintenance.

@dominikh
Copy link
Owner

Releases support the current and previous version of Go at the time of release. The master branch supports the current version of Go.

For 2022.1 that means it supports Go 1.17 and 1.18.

@dominikh dominikh removed bug needs-triage Newly filed issue that needs triage labels Apr 12, 2022
peterbroadhurst added a commit to kaleido-io/firefly-signer that referenced this issue May 12, 2022
peterbroadhurst added a commit to hyperledger/firefly-signer that referenced this issue May 12, 2022
nvanbenschoten added a commit to nvanbenschoten/apd that referenced this issue Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants