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 will be stuck and use huge memory in go 1.20 environment, both mac and linux. #3536

Closed
4 tasks done
chenyahui opened this issue Feb 2, 2023 · 4 comments
Closed
4 tasks done
Labels
duplicate This issue or pull request already exists

Comments

@chenyahui
Copy link

Welcome

  • 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 (e.g., gocritic, go vet, etc.). (https://golangci-lint.run/usage/linters/)

Description of the problem

golangci-lint will be stuck and use huge memory in go 1.20 environment, both mac and linux.

Rollback the go version to go1.19, and golangci-lint returns to normal.

mac

image

linux

image

Version of golangci-lint

$ golangci-lint --version
# Paste output here

golangci-lint has version v1.50.1 built from (unknown, mod sum: "h1:C829clMcZXEORakZlwpk7M4iDw2XiwxxKaG504SZ9zY=") on (unknown)

Configuration file

$ cat .golangci.yml
# paste output here

Go environment

$ go version && go env
# paste output here

Linux: go version go1.20 linux/amd64

Verbose output of running

$ golangci-lint cache clean
$ golangci-lint run -v
# paste output here

$ golangci-lint run
WARN [runner] The linter 'deadcode' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
WARN [runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
WARN [runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
[1] 2629 killed golangci-lint run

Code example or link to a public repository

// add your code here
@chenyahui chenyahui added the bug Something isn't working label Feb 2, 2023
@boring-cyborg
Copy link

boring-cyborg bot commented Feb 2, 2023

Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.

@vitaly-eureka-security
Copy link

I can confirm this happens on Windows as well

@csabaujvari
Copy link

I can confirm also. I'm using OSX
Screenshot 2023-02-02 at 9 10 33

@ldez
Copy link
Member

ldez commented Feb 2, 2023

duplicate of #3535,#3533,#3470

@ldez ldez closed this as completed Feb 2, 2023
@ldez ldez added duplicate This issue or pull request already exists and removed bug Something isn't working labels Feb 2, 2023
@golangci golangci locked and limited conversation to collaborators Feb 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants