From 94ec8be901302079a8ed084d90925d91d405cb5a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 18 Jul 2024 04:32:02 +0000 Subject: [PATCH] chore(deps): update dependency mvdan/gofumpt to v0.6.0 (#49) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mvdan/gofumpt](https://togithub.com/mvdan/gofumpt) | minor | `v0.4.0` -> `v0.6.0` | --- ### Release Notes
mvdan/gofumpt (mvdan/gofumpt) ### [`v0.6.0`](https://togithub.com/mvdan/gofumpt/blob/HEAD/CHANGELOG.md#v060---2024-01-28) [Compare Source](https://togithub.com/mvdan/gofumpt/compare/v0.5.0...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 `go` version strings from newer go.mod files - \[[#​280](https://togithub.com/mvdan/gofumpt/issues/280)] - Consider simple error checks even if they use the `=` operator - \[[#​271](https://togithub.com/mvdan/gofumpt/issues/271)] - Ignore `//line` directives to avoid panics - \[[#​288](https://togithub.com/mvdan/gofumpt/issues/288)] ### [`v0.5.0`](https://togithub.com/mvdan/gofumpt/blob/HEAD/CHANGELOG.md#v050---2023-04-09) [Compare Source](https://togithub.com/mvdan/gofumpt/compare/v0.4.0...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: - https://go.dev/cl/412555 - https://go.dev/cl/412557 - https://go.dev/cl/424924 The following changes are included as well: - Skip `testdata` dirs by default like we already do for `vendor` - \[[#​260](https://togithub.com/mvdan/gofumpt/issues/260)] - Avoid inserting newlines incorrectly in some func signatures - \[[#​235](https://togithub.com/mvdan/gofumpt/issues/235)] - Avoid joining some comments with the previous line - \[[#​256](https://togithub.com/mvdan/gofumpt/issues/256)] - Fix `gofumpt -version` for release archives - \[[#​253](https://togithub.com/mvdan/gofumpt/issues/253)]
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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 [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/DelineaXPM/github-workflows). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .aqua/aqua.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.aqua/aqua.yaml b/.aqua/aqua.yaml index f7ea4e10..4f1ad369 100644 --- a/.aqua/aqua.yaml +++ b/.aqua/aqua.yaml @@ -13,7 +13,7 @@ packages: - name: magefile/mage@v1.15.0 - name: charmbracelet/glow@v1.5.0 - name: goreleaser/goreleaser@v1.26.2 - - name: mvdan/gofumpt@v0.4.0 + - name: mvdan/gofumpt@v0.6.0 - name: anchore/syft@v0.105.1 - name: golangci/golangci-lint@v1.59.1 tags: ['lint']