Update module mvdan.cc/gofumpt to v0.11.0 - #50040
Merged
Merged
Conversation
Pull request dashboard statusMerged · refreshed 2026-08-04 22:32 UTC Status above doesn't look right?
|
singhvibhanshu
approved these changes
Aug 4, 2026
Member
|
/workflow-approve |
songy23
requested review from
ArthurSens,
ChrsMark,
TylerHelmuth,
VihasMakwana,
andrzej-stencel,
atoulme,
braydonk,
crobert-1,
dashpole,
dehaansa,
dmitryax,
edmocosta,
evan-bradley,
jmacd,
mx-psi and
pjanotti
as code owners
August 4, 2026 14:56
paulojmdias
approved these changes
Aug 4, 2026
songy23
approved these changes
Aug 4, 2026
songy23
left a comment
Member
There was a problem hiding this comment.
Formatting only, all diffs are generated from "make generate"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.9.2→v0.11.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
mvdan/gofumpt (mvdan.cc/gofumpt)
v0.11.0Compare 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 theexpression starts an
if,for, orswitchclause. See #356.v0.10.0Compare 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
-extraflag now accepts a comma-separated list of rule names to enableindividual extra rules, rather than enabling all of them at once. See #339.
The following changes are included as well:
go.modfiles without amoduledirective - #350Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.