Skip to content

Commit

Permalink
chore(deps): update dependency mvdan/gofumpt to v0.6.0 (#49)
Browse files Browse the repository at this point in the history
[![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

<details>
<summary>mvdan/gofumpt (mvdan/gofumpt)</summary>

###
[`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 -
\[[#&#8203;280](https://togithub.com/mvdan/gofumpt/issues/280)]
- Consider simple error checks even if they use the `=` operator -
\[[#&#8203;271](https://togithub.com/mvdan/gofumpt/issues/271)]
- Ignore `//line` directives to avoid panics -
\[[#&#8203;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` -
\[[#&#8203;260](https://togithub.com/mvdan/gofumpt/issues/260)]
- Avoid inserting newlines incorrectly in some func signatures -
\[[#&#8203;235](https://togithub.com/mvdan/gofumpt/issues/235)]
- Avoid joining some comments with the previous line -
\[[#&#8203;256](https://togithub.com/mvdan/gofumpt/issues/256)]
- Fix `gofumpt -version` for release archives -
\[[#&#8203;253](https://togithub.com/mvdan/gofumpt/issues/253)]

</details>

---

### 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.

---

- [ ] <!-- rebase-check -->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).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Jul 18, 2024
1 parent 73ce289 commit 94ec8be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .aqua/aqua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ packages:
- name: magefile/[email protected]
- name: charmbracelet/[email protected]
- name: goreleaser/[email protected]
- name: mvdan/gofumpt@v0.4.0
- name: mvdan/gofumpt@v0.6.0
- name: anchore/[email protected]
- name: golangci/[email protected]
tags: ['lint']
Expand Down

0 comments on commit 94ec8be

Please sign in to comment.