-
-
Notifications
You must be signed in to change notification settings - Fork 114
gofumpt re-formats tabs to spaces (was: New release built with go 1.19?) #254
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
Comments
What version bump do you mean? Note that the latest version, https://github.com/mvdan/gofumpt/releases/tag/v0.4.0, was already based on (and built with) Go 1.19. The only quirk is #244. If someone builds gofumpt with Go 1.18, its behavior changes, as we depend on the standard library's |
I was looking at the go.mod I analyzed this further and discovered that this also happens when using I will continue to analyze this. If it's an issue in gofmt, I'll propose an update of that dependency one a fix has been made. Thanks for your answer and the work on the tool in general! |
The issue was with my documentation, sorry for the fuzz here. Details in swaggo/swag#1386 (comment) |
I propose to make a new release built with go 1.19.
go 1.19 improved support for documentation comments a lot, see https://tip.golang.org/doc/go1.19#go-doc.
Other tools, like swagger, have started to adopt this.
The behaviour of gofumpt depends on the go version it is built with (due to the use of
go/printer
from go - see #244 (comment) if you want to learn more.gofumpt is starting to become incompatible with documentation comments using those new features as it formats them in a way that breaks the use of those new features.
I'll make a PR to bump the version in the next few days.
The text was updated successfully, but these errors were encountered: