Skip to content

Bump github.com/google/yamlfmt from 0.19.0 to 0.21.0#10

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/go_modules/github.com/google/yamlfmt-0.21.0
Open

Bump github.com/google/yamlfmt from 0.19.0 to 0.21.0#10
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/go_modules/github.com/google/yamlfmt-0.21.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 1, 2026

Bumps github.com/google/yamlfmt from 0.19.0 to 0.21.0.

Release notes

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

v0.21.0

Sorry to folks who were likely waiting on the stuff in this release, it's pretty packed. I got sick in December and took my holiday leave early, and I decided to fully and completely disconnect. Lots of stuff packed into this one now that I'm back. Happy new year!

Features

Force single or double quotes #288

You can now force all quoted strings in a yaml document to be ' or ". See the basic formatter docs for more info.

KYAML Formatter #302

yamlfmt can now support the new KYAML format from the Kubernetes project. The support for this is via a new formatter type called kyaml. I built support for alternate formatters into the architecture of yamlfmt all the way back when I first started the tool, but this is the first time I'm actually publishing a new formatter. I recommend a full read of the formatter documentation to get a sense of how to use this alternate formatter.

Bug Fixes

Gitlab output format #272

I don't use Gitlab and didn't implement the feature so I'm not sure if this has been broken the whole time or if there was a schema change somewhere that bricked it, but Gitlab output format from yamlfmt was missing some required fields. This should work now with the new fields added into the output schema.

/dev/stdin as an argument instead of - did not work #291

You're only allowed to read from stdin once in POSIX, but I inadvertently had a codepath that would read the file for a different purpose before reading it for formatting. This caused yamlfmt not to work under that circumstance. This edge case is handled now.

Filepath collector panic #300

In a scenario where filepath.Walk fails to read something from the filesystem, I wasn't handling the error case properly. This never came up because I never had an error case ever appear locally and the linter that would yell at me about missed error checks didn't pick up that particular pattern that filepath.Walk propogates errors with. There should no longer be panics in error scenarios; new behaviour is that paths that failed to read will be surfaced and all other successful reads will be formatted.

Contributions

Thanks to @​slipknois for fixing the Gitlab output format.

v0.20.0

Features

-version flag works when using go install

The previous method of version retrieval only worked when downloading the binary through GitHub releases or one of the community-made packages. When using go install, the version would always be dev because the ldflags weren't being used to set the version. It now falls back to debug.BuildInfo so that the version will be displayed properly when installing through this method.

Fixes

Performance Issues when formatting large files

Details in #283. Two fixes were submitted:

  • Use of strings.Repeat instead of manually looping during string construction #284
  • Changing logic to only construct a diff string when the debug code is active #287

If you have experienced similar performance issues, these fixes should help.

Contributors

... (truncated)

Commits
  • 21ca532 gitlab: add missing newlines (#309)
  • d4f731b Solving missing line param on gitlab codequality (#298)
  • 29ac068 Fix filepath collector panic (#306)
  • 930a3bc Force single or double quotes (#304)
  • 7a4eb58 New Formatter KYAML (#303)
  • 4ce7180 [ci] Update Go matrix (#297)
  • a547b13 [command] Fix /dev/stdin arg handling (#296)
  • 17d6d33 [yamlfmt] Change FileDiff to use bytes by default (#295)
  • 42486ac engine: don't construct diff string if it isn't requested (#287)
  • 00c0bef internal/multilinediff: change string concatenation to use strings.Repeat ins...
  • 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 [github.com/google/yamlfmt](https://github.com/google/yamlfmt) from 0.19.0 to 0.21.0.
- [Release notes](https://github.com/google/yamlfmt/releases)
- [Commits](google/yamlfmt@v0.19.0...v0.21.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Feb 1, 2026
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants