You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following an upgrade to the latest Go version (1.20.1) through asdf after uninstalling all other Go versions on my machine, I uninstalled and reinstalled golangci-lint through brew and I now seem to be getting a consistent memory leak that climbs to ~48GB memory usage in ~1 minute of running.
Version of golangci-lint
$ golangci-lint --version
# Paste output heregolangci-lint has version 1.51.1 built from b87d2c1 on 2023-02-05T00:48:10Z
$ go version && go env
# paste output herego version go1.20.1 darwin/amd64GO111MODULE=""GOARCH="amd64"GOBIN=""GOCACHE="/Users/jamie.rajewski/Library/Caches/go-build"GOENV="/Users/jamie.rajewski/Library/Application Support/go/env"GOEXE=""GOEXPERIMENT=""GOFLAGS=""GOHOSTARCH="amd64"GOHOSTOS="darwin"GOINSECURE=""GOMODCACHE="/Users/jamie.rajewski/.asdf/installs/golang/1.20.1/packages/pkg/mod"GONOPROXY="..."GONOSUMDB="..."GOOS="darwin"GOPATH="/Users/jamie.rajewski/.asdf/installs/golang/1.20.1/packages"GOPRIVATE="..."GOPROXY="https://proxy.golang.org,direct"GOROOT="/Users/jamie.rajewski/.asdf/installs/golang/1.20.1/go"GOSUMDB="sum.golang.org"GOTMPDIR=""GOTOOLDIR="/Users/jamie.rajewski/.asdf/installs/golang/1.20.1/go/pkg/tool/darwin_amd64"GOVCS=""GOVERSION="go1.20.1"GCCGO="gccgo"GOAMD64="v1"AR="ar"CC="clang"CXX="clang++"CGO_ENABLED="1"GOMOD="/Users/jamie.rajewski/PROJECT/go.mod"GOWORK=""CGO_CFLAGS="-O2 -g"CGO_CPPFLAGS=""CGO_CXXFLAGS="-O2 -g"CGO_FFLAGS="-O2 -g"CGO_LDFLAGS="-O2 -g"PKG_CONFIG="pkg-config"GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/_q/pz7mgvfx1cn9zp9x40x56ph80000gn/T/go-build956487027=/tmp/go-build -gno-record-gcc-switches -fno-common"
Verbose output of running
$ golangci-lint cache clean
$ golangci-lint run -v
# paste output hereINFO [config_reader] Config search paths: [./ /Users/jamie.rajewski/PROJECT /Users/jamie.rajewski /Users /]INFO [config_reader] Used config file .golangci.ymlINFO [lintersdb] Active 19 linters: [dogsled dupl errcheck exportloopref funlen goconst gocritic gocyclo gofmt goimports gosec gosimple govet ineffassign nakedret staticcheck typecheck unconvert unused]INFO [loader] Go packages loading at mode 575 (name|exports_file|imports|files|types_sizes|compiled_files|deps) took 7.001689984sINFO [runner/filename_unadjuster] Pre-built 0 adjustments in 60.067445ms
# Had to kill the process here as this is where it stopped reporting output but the usage steadily climbed
Code example or link to a public repository
No public code available, it's a relatively large private project. Prior to upgrading, everything functioned correctly.
The text was updated successfully, but these errors were encountered:
You can verify the go version used to build golangci-lint with the following command:
go version -m $(which golangci-lint)
ex:
$ go version -m ./golangci-lint ./golangci-lint: go1.19.5 path github.com/golangci/golangci-lint/cmd/golangci-lint mod github.com/golangci/golangci-lint (devel) dep 4d63.com/gochecknoglobals v0.1.0 h1:zeZSRqj5yCg28tCkIV/z/lWbwvNm5qnKVS15PI8nhD0=...
Welcome
Description of the problem
Following an upgrade to the latest Go version (1.20.1) through
asdf
after uninstalling all other Go versions on my machine, I uninstalled and reinstalledgolangci-lint
throughbrew
and I now seem to be getting a consistent memory leak that climbs to ~48GB memory usage in ~1 minute of running.Version of golangci-lint
Configuration file
Go environment
Verbose output of running
Code example or link to a public repository
No public code available, it's a relatively large private project. Prior to upgrading, everything functioned correctly.
The text was updated successfully, but these errors were encountered: