Skip to content
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

deps: bump mvdan.cc/gofumpt from 0.4.0 to 0.6.0 in /build/tools #195

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Jan 29, 2024

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

Binaries built on go version go1.21.6 linux/amd64 with:

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, 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

Binaries built on go version go1.20.3 linux/amd64 with:

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 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] - 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, 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
Commits
  • 636d7a7 add release notes for v0.6.0
  • 37e0463 format: ignore //line directives when computing positions
  • 9e77a5f update deps
  • ddd4dc4 skip gomod.txtar testscript on Go 1.20
  • 5249497 add package godoc
  • 13743a4 format: support Go versions from newer go.mod files
  • 4ac1be2 Update Helix editor config
  • a8415d3 format: add a TODO to remind myself about token.File.Lines
  • 025a91f treat err assignments as a simple error check
  • 9a108c1 add Go 1.21, drop 1.19
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [mvdan.cc/gofumpt](https://github.com/mvdan/gofumpt) from 0.4.0 to 0.6.0.
- [Release notes](https://github.com/mvdan/gofumpt/releases)
- [Changelog](https://github.com/mvdan/gofumpt/blob/master/CHANGELOG.md)
- [Commits](mvdan/gofumpt@v0.4.0...v0.6.0)

---
updated-dependencies:
- dependency-name: mvdan.cc/gofumpt
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Jan 29, 2024
Copy link
Author

dependabot bot commented on behalf of github Jan 29, 2024

Dependabot tried to add @vakalapa/azure-sdn-members as a reviewer to this PR, but received the following error from GitHub:

POST https://api.github.com/repos/vakalapa/azure-container-networking/pulls/195/requested_reviewers: 422 - Reviews may only be requested from collaborators. One or more of the teams you specified is not a collaborator of the vakalapa/azure-container-networking repository. // See: https://docs.github.com/rest/pulls/review-requests#request-reviewers-for-a-pull-request

Copy link

This pull request is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days

@github-actions github-actions bot added the Stale label Mar 30, 2024
Copy link

Pull request closed due to inactivity.

@github-actions github-actions bot closed this Apr 14, 2024
Copy link
Author

dependabot bot commented on behalf of github Apr 14, 2024

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the f77bdependabot/go_modules/build/tools/mvdan.cc/gofumpt-0.6.0 branch April 14, 2024 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants