Skip to content

fix(deps): update module mvdan.cc/gofumpt to v0.6.0 #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 16, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 16, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mvdan.cc/gofumpt v0.2.1 -> v0.6.0 age adoption passing confidence

Release Notes

mvdan/gofumpt (mvdan.cc/gofumpt)

v0.6.0

Compare Source

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]
  • Consider simple error checks even if they use the = operator - [#​271]
  • Ignore //line directives to avoid panics - [#​288]

v0.5.0

Compare Source

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:

The following changes are included as well:

  • Skip testdata dirs by default like we already do for vendor - [#​260]
  • Avoid inserting newlines incorrectly in some func signatures - [#​235]
  • Avoid joining some comments with the previous line - [#​256]
  • Fix gofumpt -version for release archives - [#​253]

v0.4.0

Compare Source

This release is based on Go 1.19's gofmt, and requires Go 1.18 or later.
We recommend building gofumpt with Go 1.19 for the best formatting results.

The jump from Go 1.18 brings diffing in pure Go, removing the need to exec diff,
and a small parsing speed-up thanks to go/parser.SkipObjectResolution.

The following formatting fixes are included as well:

  • Allow grouping declarations with comments - [#​212]
  • Properly measure the length of case clauses - [#​217]
  • Fix a few crashes found by Go's native fuzzing

v0.3.1

Compare Source

This bugfix release resolves a number of issues:

  • Avoid "too many open files" error regression introduced by [v0.3.0] - [#​208]
  • Use the go.mod relative to each Go file when deriving flag defaults - [#​211]
  • Remove unintentional debug prints when directly formatting files

v0.3.0

Compare Source

This is gofumpt's third major release, based on Go 1.18's gofmt.
The jump from Go 1.17's gofmt should bring a noticeable speed-up,
as the tool can now format many files concurrently.
On an 8-core laptop, formatting a large codebase is 4x as fast.

The following formatting rules are added:

  • Functions should separate ) { where the indentation helps readability
  • Field lists should not have leading or trailing empty lines

The following changes are included as well:

  • Generated files are now fully formatted when given as explicit arguments
  • Prepare for Go 1.18's module workspaces, which could cause errors
  • Import paths sharing a prefix with the current module path are no longer
    grouped with standard library imports
  • format.Options gains a ModulePath field per the last bullet point

Configuration

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

🚦 Automerge: Disabled because a matching PR was automerged previously.

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.


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

This PR has been generated by Mend Renovate. View repository job log here.

Copy link

codecov bot commented May 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.35%. Comparing base (fc56785) to head (27ba0ea).

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #21   +/-   ##
=======================================
  Coverage   80.35%   80.35%           
=======================================
  Files           9        9           
  Lines         285      285           
=======================================
  Hits          229      229           
  Misses         50       50           
  Partials        6        6           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@corani corani merged commit 537c481 into master May 16, 2024
5 checks passed
@corani corani deleted the renovate/mvdan.cc-gofumpt-0.x branch May 16, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant