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

Regression in golangci-lint #61

Closed
howardjohn opened this issue May 25, 2022 · 4 comments
Closed

Regression in golangci-lint #61

howardjohn opened this issue May 25, 2022 · 4 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@howardjohn
Copy link

We recently update golangci-lint and it broke gci, forcing us to disable it.

To reproduce:

istio/istio@3a245f8

$ golangci-lint run --fix -c ./common/config/.golangci-format.yml istioctl/pkg/util/proto/messageslice.go
istioctl/pkg/util/proto/messageslice.go:21:1: Expected '\t', Found '\n' at istioctl/pkg/util/proto/messageslice.go[line 21,col 1] (gci)

^

Can also run in our docker build:

./common/scripts/run.sh golangci-lint run --fix -c ./common/config/.golangci-format.yml istioctl/pkg/util/proto/messageslice.go
@daixiang0 daixiang0 added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels May 26, 2022
@daixiang0
Copy link
Owner

@howardjohn thanks for the report! Now, which version of golangci-lint do you use? I will investigate that version first.

@ivila
Copy link

ivila commented May 31, 2022

@howardjohn thanks for the report! Now, which version of golangci-lint do you use? I will investigate that version first.

reproduce at golangci-lint 1.46.2

@daixiang0
Copy link
Owner

golangci/golangci-lint#2892 I think need to wait next fix version.

@daixiang0
Copy link
Owner

daixiang0 commented Jul 6, 2022

@howardjohn @ivila please wait for the next release, 1.46.2 is released on May 17, but the fix PR is merged on May 31.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants