Skip to content

fix(deps): update module github.com/google/yamlfmt to v0.21.0#276

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-google-yamlfmt-0.x
Open

fix(deps): update module github.com/google/yamlfmt to v0.21.0#276
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-google-yamlfmt-0.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented May 31, 2026

This PR contains the following updates:

Package Change Age Confidence
github.com/google/yamlfmt v0.20.0v0.21.0 age confidence

Release Notes

google/yamlfmt (github.com/google/yamlfmt)

v0.21.0

Compare Source

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.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At 12:00 AM through 04:59 AM and 10:00 PM through 11:59 PM, Monday through Friday (* 0-4,22-23 * * 1-5)
    • Only on Sunday and Saturday (* * * * 0,6)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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 was generated by Mend Renovate. View the repository job log.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 31, 2026

Renovate PR Review Results

⚖️ Safety Assessment: ✅ Safe

🔍 Release Content Analysis

New Features (additive, no breaking changes):

  • Force single or double quotes: New option to normalize all quoted strings to ' or " — opt-in via config, no impact on existing defaults
  • KYAML Formatter: New kyaml formatter type for Kubernetes YAML — optional alternative, does not affect the existing basic formatter

Bug Fixes:

  • GitLab output format (chore(main): release 0.28.0 #272): Missing required fields added to the GitLab output schema — no impact on non-GitLab usage
  • /dev/stdin as argument (#291): Prevented double-read of stdin when passing /dev/stdin explicitly — edge-case fix, no behavioral change for normal file inputs
  • Filepath collector panic (#300): filepath.Walk error paths were not handled; now surfaces partial failures instead of panicking — defensive improvement only

Security: No security-related fixes, but the panic fix (#300) is a minor robustness improvement.

Breaking Changes: None identified. The release notes describe purely additive features and targeted bug fixes.

🎯 Impact Scope Investigation

Usage in codebase (internal/prettier/yaml.go):

  • Imports github.com/google/yamlfmt and github.com/google/yamlfmt/formatters/basic
  • Uses only three API surface points:
    • yamlfmt.Factory interface
    • basic.BasicFormatterFactory{} struct (implements Factory)
    • factory.NewFormatter(nil)formatter.Format([]byte) call chain
  • None of these interfaces changed in v0.21.0

Build verification: go build ./... completes without errors after the version bump.

Test verification: go test ./internal/prettier/... passes (ok, 0.005s).

Transitive dependencies: Only go.mod and go.sum were modified in the diff; no indirect dependency conflicts introduced.

💡 Recommended Actions

  • No code changes required — the update is a drop-in replacement
  • Merge as-is; CI should be green

🔗 Reference Links

Generated by koki-develop/claude-renovate-review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants