-
-
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
gci auto fix is broken #2591
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
Hello, since the last gci update (#2532), autofix is no longer supported. |
Could you please provide some suggestions on how we can get the auto-fix feature back? |
It would be nice to have the autofix feature on gci. it's really useful |
Yeah, this was the main feature of the gci, now I have to revert golangci-linter to v1.44.0 |
We (the golangci-lint team) are not responsible for changes in the linters. Autofix support can be restored in several ways, I'll try to see what I can do but the gci changes are deep, I don't promise anything. |
there are a lot of questions to gci, the auto fix is just one of them. The error messages are completely unclear, like About restoring, I see that gci can do it if we use gci cli, probably we should talk with the @daixiang0 |
@ldez I see that the logic to prepare a diff was removed in that PR err = differ.Diff(&diff, bytes.NewReader(source), bytes.NewReader(result))
if err != nil {
return nil, fmt.Errorf("can't get gci diff output: %v", err)
} I remember I had to implement it because the |
no because gci is now an analyzer, we don't have like goimports/gofmt a "diffable" output |
Welcome
Description of the problem
gci only report issues but it won't fix it
Version of golangci-lint
Configuration file
Go environment
Verbose output of running
Code example or link to a public repository
The text was updated successfully, but these errors were encountered: