-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
go-critic/ruleguard: compatibility with Go 1.18 #2414
Comments
It's more an issue with go-critic/ruleguard than golangci-lint. I recommend opening an issue on the go-critic repo. |
Very strange, I've got exactly the same error messages as |
Well, I am using 1.18beta2, and this is still an issue. Furthermore, I cannot bypass it by disabling go-ciritc in the golangci-lint configs, because it seems its always loaded no matter what. This is my config: linters-settings:
goimports:
local-prefixes: github.com/StreamElements/
govet:
check-shadowing: true
linters:
disable:
- gocritic
enable:
- bidichk
- deadcode
- durationcheck
- errcheck
- errorlint
- exportloopref
- goimports
- goconst
# - gocritic
- godot
- godox
- goheader
- gomoddirectives
- gomodguard
- goprintffuncname
- gosec
- ineffassign
- gosimple
- govet
- nolintlint
- predeclared
- rowserrcheck
- sqlclosecheck
- staticcheck
- structcheck
- tenv
- testpackage
- typecheck
- unconvert
- unparam
- unused
- varcheck
- wastedassign
- whitespace
issues:
fix: true And this is what I am getting on the command line (running using pre-commit): panic: load embedded ruleguard rules: rules/rules.go:13: can't load fmt
goroutine 1 [running]:
github.com/go-critic/go-critic/checkers.init.22()
/Users/naamanhirschfeld/.cache/pre-commit/reposlmx3ef2/golangenv-default/pkg/mod/github.com/go-critic/go-critic@v0.6.2/checkers/embedded_rules.go:46 +0x52c |
Take a look at #2438 |
would be lovely to see this released :) |
Same issue here, it really bugs me as I am not even using go-critic... |
Since go1.18 is released now, can we up the prio on this? Maybe tag it with |
Take a look at #2438. Yes go1.18 is released but the tooling provided by Go is not ready, it's not our fault. I will close this issue in favor of the PR. |
The issue should stay open until PR is merged. |
This issue is only about ruleguard but the problem is global. The PR provides information and details for all the linters, not only one. We can open a global issue but we will say the same things as in the PR. |
A single tracking issue for Go 1.18 would be great. There may need to be multiple PRs, and PRs typically have too much chatter about the actual work. |
I don't think so because the problem is related to only one thing: the SSA analyzer. If you want to help, you can contribute to solving this issue golang/go#48525 |
I will open an issue because I feel like we will have to repeat too much time the same thing on different issues. |
Welcome
Description of the problem
Go 1.18beta1 has been released.
When I run
golangci-lint run
I get:Version of golangci-lint
But I'm using v1.43, installed with
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.43.0
.Configuration file
$ cat .golangci.yml
I'm not using any config file
Go environment
Verbose output of running
Code example or link to a public repository
// add your code here
The text was updated successfully, but these errors were encountered: