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

build(deps): bump github.com/google/yamlfmt from 0.11.0 to 0.15.0 in /hack/tools #397

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 30, 2025

Bumps github.com/google/yamlfmt from 0.11.0 to 0.15.0.

Release notes

Sourced from github.com/google/yamlfmt's releases.

v0.15.0

Happy 2025!

New year new yamlfmt release! This one once again only features things contributed by the community. I am working on a major feature that I was hoping to finish before pushing this release out, but I ran into a snag and I didn't want to delay these things getting released.

Breaking Changes

New Minimum Go Version is 1.21

Originally I was keeping this library compatible with Go 1.18, which was the latest at the time. There was a time when I tried to update the minimum version to Go 1.20 when it was released, and I ended up getting complaints so I kept it where it was. Go 1.18 is long EOL, and it makes more sense as an application to stay up to date to in-support releases. So the new rule of thumb will be to maintain compatibility with the oldest non-EOL version of Go going forward.

Features

gitlab output format

Generate yamlfmt results in GitLab Code Quality report format. See more info here.

gitignore match type

We had support already for gitignore_excludes, i.e. using a gitignore file to match which files to exclude, similar to how it works with Git. However, it can be useful for positive matches, i.e. what files to actually include, since the gitignore patterns can also be negated meaning that all includes and excludes can be managed by a single gitignore-style file. See more info here.

yamlfmt Docker image

yamlfmt is now available as a Docker image! This was originally done for the purpose of using yamlfmt in CI, but could be useful in other scenarios too. See download and usage instructions in the README.

Contributors

  • Thanks @​octo for contributing the gitlab output format and gitignore match type, as well as improvements to the integration test workflow
  • Thanks @​mrueg for updating the build and test flows from Go 1.18 to Go 1.21 and removing EOL versions
  • Thanks @​fsrv-xyz for the Docker image work
  • Thanks @​alexandear for doc fixes and test name typo fixes
  • Thanks @​wusatosi for the pre-commit doc update

I'm hoping my big new feature will be ready for the next update. Thanks for using yamlfmt, and thanks to all the contributors!

v0.14.0

Shoutouts To The Community Release

I have been in not the best health the last while, which is why this release took so long to cut. On the bright side, this release features more contributions from the community than from myself. Thank you to everyone who contributed!

Features

strip_directives

yaml.v3 does not support directives. The best thing to do would be to add some amount of support for directives, which I will do in the future just taking it as far as the parser not failing upon finding a directive. In the short term, I added a hotfix style feature that will strip the directives before formatting and put them back in. The feature is fraught with edge cases and only works reliably with directives at the top of the file. See the explanations I added in the docs.

gitignore_excludes searches up the directory structure for the nearest .gitignore

... (truncated)

Commits

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)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 30, 2025
@dependabot dependabot bot requested a review from 65278 as a code owner January 30, 2025 10:49
@dependabot dependabot bot added the go Pull requests that update Go code label Jan 30, 2025
Copy link

🚀 e2e tests run

We add labels to the PRs to control the e2e test runs by running specific tests and skipping some test contexts,
please follow this guide:

Label Behaviour
none Run Generic tests
e2e/none skip all e2e tests (documentation etc) - overrides all e2e/* labels Do not run any tests (overrides all e2e/ flags)
e2e/flatcar run Flatcar e2e tests Add Flatcar tests to the run

ℹ️ Ask a Member to add the requested labels if you don't have enough permissions.

Copy link

External PR

Test runs on external PRs require manual approval.

Note: This PR changes the following non-go, non-docs files:
hack/tools/go.mod
hack/tools/go.sum

@wikkyk wikkyk added the e2e/none skip all e2e tests (documentation etc) - overrides all e2e/* labels label Feb 5, 2025
Bumps [github.com/google/yamlfmt](https://github.com/google/yamlfmt) from 0.11.0 to 0.15.0.
- [Release notes](https://github.com/google/yamlfmt/releases)
- [Changelog](https://github.com/google/yamlfmt/blob/main/.goreleaser.yaml)
- [Commits](google/yamlfmt@v0.11.0...v0.15.0)

---
updated-dependencies:
- dependency-name: github.com/google/yamlfmt
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/go_modules/hack/tools/github.com/google/yamlfmt-0.15.0 branch from 1507a24 to 52d549b Compare February 5, 2025 08:51
Copy link

github-actions bot commented Feb 5, 2025

External PR

Test runs on external PRs require manual approval.

Note: This PR changes the following non-go, non-docs files:
hack/tools/go.mod
hack/tools/go.sum

Copy link

sonarqubecloud bot commented Feb 5, 2025

@wikkyk wikkyk merged commit e6e23d8 into main Feb 5, 2025
11 checks passed
@wikkyk wikkyk deleted the dependabot/go_modules/hack/tools/github.com/google/yamlfmt-0.15.0 branch February 5, 2025 09:15
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 e2e/none skip all e2e tests (documentation etc) - overrides all e2e/* labels go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant