Skip to content

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

Compare Source

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:

  • Skip testdata dirs by default like we already do for vendor - [#​260]
  • Avoid inserting newlines incorrectly in some func signatures - [#​235]
  • Avoid joining some comments with the previous line - [#​256]
  • Fix gofumpt -version for release archives - [#​253]

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, click this checkbox.

This MR has been generated by Renovate Bot.

Merge request reports