-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
- Yes, I'm using a binary release within 2 latest major releases. Only such installations are supported.
- Yes, I've searched similar issues on GitHub and didn't find any.
- Yes, I've included all information below (version, config, etc).
- Yes, I've tried with the standalone linter if available. (https://golangci-lint.run/usage/linters/)
Details
Cant't install this library on Centos 7
Details
v1.14.0Config file
Details
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/cody/.cache/go-build"
GOENV="/home/cody/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/cody/workspace/golang/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/cody/workspace/golang"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/home/cody/go/go1.16.2"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/home/cody/go/go1.16.2/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16.2"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/cody/workspace/golang/src/github.com/marmotedu/iam/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build681325853=/tmp/go-build -gno-record-gcc-switches"
Details
(base) [cody@dev iam]$ go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
go: downloading github.com/tommy-muehle/go-mnd v1.3.1-0.20200224220436-e6f9a994e8fa
# github.com/golangci/golangci-lint/pkg/golinters
../../../../pkg/mod/github.com/golangci/golangci-lint@v1.40.1/pkg/golinters/gosimple.go:11:40: cannot use simple.Analyzers (type []*"honnef.co/go/tools/analysis/lint".Analyzer) as type map[string]*analysis.Analyzer in argument to setupStaticCheckAnalyzers
../../../../pkg/mod/github.com/golangci/golangci-lint@v1.40.1/pkg/golinters/staticcheck.go:11:40: cannot use staticcheck.Analyzers (type []*"honnef.co/go/tools/analysis/lint".Analyzer) as type map[string]*analysis.Analyzer in argument to setupStaticCheckAnalyzers
../../../../pkg/mod/github.com/golangci/golangci-lint@v1.40.1/pkg/golinters/stylecheck.go:11:40: cannot use stylecheck.Analyzers (type []*"honnef.co/go/tools/analysis/lint".Analyzer) as type map[string]*analysis.Analyzer in argument to setupStaticCheckAnalyzers
../../../../pkg/mod/github.com/golangci/golangci-lint@v1.40.1/pkg/golinters/unused.go:28:3: cannot use unused.Analyzer.Doc (type *"honnef.co/go/tools/analysis/lint".Documentation) as type string in field value
../../../../pkg/mod/github.com/golangci/golangci-lint@v1.40.1/pkg/golinters/unused.go:29:28: unused.Analyzer.Requires undefined (type *"honnef.co/go/tools/analysis/lint".Analyzer has no field or method Requires)
../../../../pkg/mod/github.com/golangci/golangci-lint@v1.40.1/pkg/golinters/unused.go:31:31: unused.Analyzer.Run undefined (type *"honnef.co/go/tools/analysis/lint".Analyzer has no field or method Run)
Code example or link to a public repository
// add your code hereMetadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested