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

golangci-lint run --version hangs instead of exiting #3066

Closed
4 tasks done
rski opened this issue Aug 5, 2022 · 1 comment · Fixed by #3067
Closed
4 tasks done

golangci-lint run --version hangs instead of exiting #3066

rski opened this issue Aug 5, 2022 · 1 comment · Fixed by #3067
Labels
area: CLI Related to CLI bug Something isn't working

Comments

@rski
Copy link
Contributor

rski commented Aug 5, 2022

  • 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/)

Description of the problem

golangci-lint run --version
golangci-lint has version 1.48.0 built from 2d8fea81 on 2022-08-04T18:44:38Z

ERRO Running error: context loading failed: failed to load packages: timed out to load packages: context deadline exceeded 
ERRO Timeout exceeded: try increasing it by passing --timeout option 

As far as I can tell, this is a regression from 1.47.x

Version of golangci-lint

$ golangci-lint --version
# Paste output here

Configuration file

$ cat .golangci.yml
# paste output here

Go environment

$ go version && go env
# paste output here
go version go1.18.4 linux/amd64
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/rski/.cache/go-build"
GOENV="/home/rski/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/rski/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/rski/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/nix/store/wzq7am3816mv7vc73wq5wjh1xc2fmyim-go-1.18.4/share/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/nix/store/wzq7am3816mv7vc73wq5wjh1xc2fmyim-go-1.18.4/share/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.18.4"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/rski/Code/go/src/arista/go.mod"
GOWORK=""
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-build2326600941=/tmp/go-build -gno-record-gcc-switches"

Verbose output of running

before

golangci-lint run --version -v                                                                                                                                                   
INFO [config_reader] Config search paths: [ [redacted ] ] 
golangci-lint has version 1.47.2 built from 61673b34 on 2022-07-21T10:53:45Z

after:

golangci-lint run --version -v                                                                                                                                                   
INFO [config_reader] Config search paths:
golangci-lint has version 1.48.0 built from 2d8fea81 on 2022-08-04T18:44:38Z
INFO [lintersdb] Active 9 linters: [deadcode errcheck gosimple govet ineffassign staticcheck typecheck unused varcheck] 
@rski rski added the bug Something isn't working label Aug 5, 2022
@rski rski assigned rski and unassigned rski Aug 5, 2022
@ldez ldez added the area: CLI Related to CLI label Aug 5, 2022
@ldez
Copy link
Member

ldez commented Aug 5, 2022

Hello, I created a PR to fix that: #3067

@ldez ldez closed this as completed in #3067 Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: CLI Related to CLI bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants