chore(deps): update module mvdan.cc/gofumpt to v0.12.0 #27

Open
renovate wants to merge 1 commit from renovate/mvdan.cc-gofumpt-0.x into master
Collaborator

This PR contains the following updates:

Package Type Update Change
mvdan.cc/gofumpt indirect minor v0.9.2v0.12.0

Release Notes

mvdan/gofumpt (mvdan.cc/gofumpt)

v0.12.0

Compare Source

This release is based on Go 1.27's gofmt, and requires Go 1.26 or later.

A standard library import carrying a doc or inline comment is no longer moved
into the top import group, as the comment stayed behind and ended up detached
at the bottom of the group. See #​289.

Moving a standard library import up no longer leaves an empty line where it
used to be, which split the remaining imports into extra groups. See #​225.

A copyright header or package doc no longer makes gofumpt treat a single-line
first declaration as multi-line, adding an empty line after it.

An assignment whose right-hand side is separated by a comment is now left
alone, as merging the lines produced output which gofmt would change back.

v0.11.0

Compare Source

Like v0.10.0, this release is based on Go 1.26's gofmt, and requires Go 1.25 or later.

The multi-line function call rule introduced in v0.10.0 proved controversial,
so it is now the extra rule balance_calls, disabled by default.
It is also narrowed to only place the closing parenthesis on its own line
when the opening parenthesis ends a line. See #​74.

Avoid crashing when compiled with tinygo for Wasm, which lacks recover support,
by detecting commented-out code without the parser's bailout panic. See #​230.

Produce stable output in a single pass when a lone var declaration is adjacent
to a single-element var group, which previously required a second run. See #​355.

Keep the parentheses around an expression which begins with a composite literal
of the form T{...}, such as (s{}.Foo()), as they are required when the
expression starts an if, for, or switch clause. See #​356.

v0.10.0

Compare Source

This release is based on Go 1.26's gofmt, and requires Go 1.25 or later.

A new rule is introduced to drop unnecessary parentheses around expressions
where the inner expression is unambiguous on its own, such as f((3)).
Parentheses are kept where they are useful, such as on binary expressions. See #​44.

A new rule is introduced to require multi-line function calls to match
the opening and closing parenthesis in terms of the use of newlines. See #​74.

The -extra flag now accepts a comma-separated list of rule names to enable
individual extra rules, rather than enabling all of them at once. See #​339.

The following changes are included as well:

  • Avoid crashing on go.mod files without a module directive - #​350
  • Avoid failing when an ignored directory cannot be read - #​351
  • Avoid prefixing more kinds of commented-out Go code with spaces - #​230
  • Avoid prefixing a shebang comment with a space - #​237
  • Narrow the newlines on assignments rule to ignore complex cases - #​354
  • Fix three bugs which caused a second gofumpt run to make changes - #​132, #​345

Configuration

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

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

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


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [mvdan.cc/gofumpt](https://github.com/mvdan/gofumpt) | indirect | minor | `v0.9.2` → `v0.12.0` | --- ### Release Notes <details> <summary>mvdan/gofumpt (mvdan.cc/gofumpt)</summary> ### [`v0.12.0`](https://github.com/mvdan/gofumpt/blob/HEAD/CHANGELOG.md#v0120---2026-09-07) [Compare Source](https://github.com/mvdan/gofumpt/compare/v0.11.0...v0.12.0) This release is based on Go 1.27's gofmt, and requires Go 1.26 or later. A standard library import carrying a doc or inline comment is no longer moved into the top import group, as the comment stayed behind and ended up detached at the bottom of the group. See [#&#8203;289](https://github.com/mvdan/gofumpt/issues/289). Moving a standard library import up no longer leaves an empty line where it used to be, which split the remaining imports into extra groups. See [#&#8203;225](https://github.com/mvdan/gofumpt/issues/225). A copyright header or package doc no longer makes gofumpt treat a single-line first declaration as multi-line, adding an empty line after it. An assignment whose right-hand side is separated by a comment is now left alone, as merging the lines produced output which gofmt would change back. ### [`v0.11.0`](https://github.com/mvdan/gofumpt/blob/HEAD/CHANGELOG.md#v0110---2026-07-27) [Compare Source](https://github.com/mvdan/gofumpt/compare/v0.10.0...v0.11.0) Like v0.10.0, this release is based on Go 1.26's gofmt, and requires Go 1.25 or later. The multi-line function call rule introduced in v0.10.0 proved controversial, so it is now the extra rule `balance_calls`, disabled by default. It is also narrowed to only place the closing parenthesis on its own line when the opening parenthesis ends a line. See [#&#8203;74](https://github.com/mvdan/gofumpt/issues/74). Avoid crashing when compiled with tinygo for Wasm, which lacks recover support, by detecting commented-out code without the parser's bailout panic. See [#&#8203;230](https://github.com/mvdan/gofumpt/issues/230). Produce stable output in a single pass when a lone var declaration is adjacent to a single-element var group, which previously required a second run. See [#&#8203;355](https://github.com/mvdan/gofumpt/issues/355). Keep the parentheses around an expression which begins with a composite literal of the form `T{...}`, such as `(s{}.Foo())`, as they are required when the expression starts an `if`, `for`, or `switch` clause. See [#&#8203;356](https://github.com/mvdan/gofumpt/issues/356). ### [`v0.10.0`](https://github.com/mvdan/gofumpt/blob/HEAD/CHANGELOG.md#v0100---2026-05-04) [Compare Source](https://github.com/mvdan/gofumpt/compare/v0.9.2...v0.10.0) This release is based on Go 1.26's gofmt, and requires Go 1.25 or later. A new rule is introduced to drop unnecessary parentheses around expressions where the inner expression is unambiguous on its own, such as `f((3))`. Parentheses are kept where they are useful, such as on binary expressions. See [#&#8203;44](https://github.com/mvdan/gofumpt/issues/44). A new rule is introduced to require multi-line function calls to match the opening and closing parenthesis in terms of the use of newlines. See [#&#8203;74](https://github.com/mvdan/gofumpt/issues/74). The `-extra` flag now accepts a comma-separated list of rule names to enable individual extra rules, rather than enabling all of them at once. See [#&#8203;339](https://github.com/mvdan/gofumpt/issues/339). The following changes are included as well: - Avoid crashing on `go.mod` files without a `module` directive - [#&#8203;350](https://github.com/mvdan/gofumpt/issues/350) - Avoid failing when an ignored directory cannot be read - [#&#8203;351](https://github.com/mvdan/gofumpt/issues/351) - Avoid prefixing more kinds of commented-out Go code with spaces - [#&#8203;230](https://github.com/mvdan/gofumpt/issues/230) - Avoid prefixing a shebang comment with a space - [#&#8203;237](https://github.com/mvdan/gofumpt/issues/237) - Narrow the newlines on assignments rule to ignore complex cases - [#&#8203;354](https://github.com/mvdan/gofumpt/issues/354) - Fix three bugs which caused a second gofumpt run to make changes - [#&#8203;132](https://github.com/mvdan/gofumpt/issues/132), [#&#8203;345](https://github.com/mvdan/gofumpt/issues/345) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4wLjYiLCJ1cGRhdGVkSW5WZXIiOiI0My4wLjYiLCJ0YXJnZXRCcmFuY2giOiJtYXN0ZXIiLCJsYWJlbHMiOltdfQ==-->
chore(deps): update module mvdan.cc/gofumpt to v0.10.0
All checks were successful
Linting pipeline / Verify proper formatting (pull_request) Successful in 4s
Linting pipeline / Go linting (pull_request) Successful in 7s
Linting pipeline / Spell Check (pull_request) Successful in 8s
Linting pipeline / Shell Script Linting (pull_request) Successful in 8s
REUSE Compliance Check / reuse-compliance-check (pull_request) Successful in 7s
Go Test / go-test (pull_request) Successful in 31s
714a15324c
Author
Collaborator

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 3 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.25.5 -> 1.26.0
golang.org/x/mod v0.29.0 -> v0.40.0
golang.org/x/sync v0.17.0 -> v0.22.0
golang.org/x/tools v0.38.0 -> v0.49.0
### ℹ️ Artifact update notice ##### File name: go.mod In order to perform the update(s) described in the table above, Renovate ran the `go get` command, which resulted in the following additional change(s): - 3 additional dependencies were updated - The `go` directive was updated for compatibility reasons Details: | **Package** | **Change** | | :------------------- | :--------------------- | | `go` | `1.25.5` -> `1.26.0` | | `golang.org/x/mod` | `v0.29.0` -> `v0.40.0` | | `golang.org/x/sync` | `v0.17.0` -> `v0.22.0` | | `golang.org/x/tools` | `v0.38.0` -> `v0.49.0` |
renovate force-pushed renovate/mvdan.cc-gofumpt-0.x from 714a15324c
All checks were successful
Linting pipeline / Verify proper formatting (pull_request) Successful in 4s
Linting pipeline / Go linting (pull_request) Successful in 7s
Linting pipeline / Spell Check (pull_request) Successful in 8s
Linting pipeline / Shell Script Linting (pull_request) Successful in 8s
REUSE Compliance Check / reuse-compliance-check (pull_request) Successful in 7s
Go Test / go-test (pull_request) Successful in 31s
to b3d78cdbf0
All checks were successful
Linting pipeline / Verify proper formatting (pull_request) Successful in 4s
Linting pipeline / Go linting (pull_request) Successful in 7s
Linting pipeline / Spell Check (pull_request) Successful in 6s
Linting pipeline / Shell Script Linting (pull_request) Successful in 5s
REUSE Compliance Check / reuse-compliance-check (pull_request) Successful in 5s
Go Test / go-test (pull_request) Successful in 34s
2026-07-27 12:01:36 +02:00
Compare
renovate changed title from chore(deps): update module mvdan.cc/gofumpt to v0.10.0 to chore(deps): update module mvdan.cc/gofumpt to v0.11.0 2026-07-27 12:01:37 +02:00
renovate force-pushed renovate/mvdan.cc-gofumpt-0.x from b3d78cdbf0
All checks were successful
Linting pipeline / Verify proper formatting (pull_request) Successful in 4s
Linting pipeline / Go linting (pull_request) Successful in 7s
Linting pipeline / Spell Check (pull_request) Successful in 6s
Linting pipeline / Shell Script Linting (pull_request) Successful in 5s
REUSE Compliance Check / reuse-compliance-check (pull_request) Successful in 5s
Go Test / go-test (pull_request) Successful in 34s
to b9373932ca
All checks were successful
Linting pipeline / Go linting (pull_request) Successful in 4s
Linting pipeline / Verify proper formatting (pull_request) Successful in 4s
Linting pipeline / Spell Check (pull_request) Successful in 6s
Linting pipeline / Shell Script Linting (pull_request) Successful in 6s
REUSE Compliance Check / reuse-compliance-check (pull_request) Successful in 5s
Go Test / go-test (pull_request) Successful in 36s
2026-09-08 01:02:24 +02:00
Compare
renovate changed title from chore(deps): update module mvdan.cc/gofumpt to v0.11.0 to chore(deps): update module mvdan.cc/gofumpt to v0.12.0 2026-09-08 01:02:25 +02:00
All checks were successful
Linting pipeline / Go linting (pull_request) Successful in 4s
Required
Details
Linting pipeline / Verify proper formatting (pull_request) Successful in 4s
Required
Details
Linting pipeline / Spell Check (pull_request) Successful in 6s
Required
Details
Linting pipeline / Shell Script Linting (pull_request) Successful in 6s
Required
Details
REUSE Compliance Check / reuse-compliance-check (pull_request) Successful in 5s
Required
Details
Go Test / go-test (pull_request) Successful in 36s
Required
Details
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/mvdan.cc-gofumpt-0.x:renovate/mvdan.cc-gofumpt-0.x
git switch renovate/mvdan.cc-gofumpt-0.x
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
moritz/migraine!27
No description provided.