tools/gofumpt: Update module mvdan.cc/gofumpt to v0.5.0
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
mvdan.cc/gofumpt | require | minor |
v0.4.0 -> v0.5.0
|
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
mvdan/gofumpt
v0.5.0
This release is based on Go 1.20's gofmt, and requires Go 1.19 or later.
The biggest change in this release is that we now vendor copies of the packages
go/format
, go/printer
, and go/doc/comment
on top of cmd/gofmt
itself.
This allows for each gofumpt release to format code in exactly the same way
no matter what Go version is used to build it, as Go versions can change those
three packages in ways that alter formatting behavior.
This vendoring adds a small amount of duplication when using the
mvdan.cc/gofumpt/format
library, but it's the only way to make gofumpt
versions consistent in their behavior and formatting, just like gofmt.
The jump to Go 1.20's go/printer
should also bring a small performance
improvement, as we contributed patches to make printing about 25% faster:
The following changes are included as well:
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.