Bump mvdan.cc/gofumpt from 0.4.0 to 0.6.0
Bumps mvdan.cc/gofumpt from 0.4.0 to 0.6.0.
Release notes
Sourced from mvdan.cc/gofumpt's releases.
v0.6.0
This release is based on Go 1.21's gofmt, and requires Go 1.20 or later.
The following changes are included:
- Support
goversion strings from newer go.mod files - #280- Consider simple error checks even if they use the
=operator - #271- Ignore
//linedirectives to avoid panics - #288Binaries built on
go version go1.21.6 linux/amd64with:CGO_ENABLED=0 go build -trimpath -ldflags="-w -s -X=main.version=v0.6.0"
Consider becoming a sponsor if you benefit from the work that went into this release!
#271: mvdan/gofumpt#271 #280: mvdan/gofumpt#280 #288: mvdan/gofumpt#288
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, andgo/doc/commenton top ofcmd/gofmtitself. 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/formatlibrary, 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/printershould also bring a small performance improvement, as we contributed patches to make printing about 25% faster:The following changes are included as well:
- Skip
testdatadirs by default like we already do forvendor- #260- Avoid inserting newlines incorrectly in some func signatures - #235
- Avoid joining some comments with the previous line - #256
- Fix
gofumpt -versionfor release archives - #253Binaries built on
go version go1.20.3 linux/amd64with:CGO_ENABLED=0 go build -trimpath -ldflags="-w -s -X=main.version=v0.5.0"
Consider becoming a sponsor if you benefit from the work that went into this release!
#235: mvdan/gofumpt#235 #253: mvdan/gofumpt#253 #256: mvdan/gofumpt#256 #260: mvdan/gofumpt#260
Changelog
Sourced from mvdan.cc/gofumpt's changelog.
[v0.6.0] - 2024-01-28
This release is based on Go 1.21's gofmt, and requires Go 1.20 or later.
The following changes are included:
- Support
goversion strings from newer go.mod files - #280- Consider simple error checks even if they use the
=operator - #271- Ignore
//linedirectives to avoid panics - #288[v0.5.0] - 2023-04-09
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, andgo/doc/commenton top ofcmd/gofmtitself. 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/formatlibrary, 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/printershould also bring a small performance improvement, as we contributed patches to make printing about 25% faster:The following changes are included as well:
Commits
636d7a7add release notes for v0.6.037e0463format: ignore //line directives when computing positions9e77a5fupdate depsddd4dc4skip gomod.txtar testscript on Go 1.205249497add package godoc13743a4format: support Go versions from newer go.mod files4ac1be2Update Helix editor configa8415d3format: add a TODO to remind myself about token.File.Lines025a91ftreat err assignments as a simple error check9a108c1add Go 1.21, drop 1.19- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)