chore(go): bump github.com/pelletier/go-toml/v2 from 2.2.4 to 2.4.2#406
Merged
amoeba merged 1 commit intoJul 10, 2026
Merged
Conversation
b5819f9 to
1a06b46
Compare
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml) from 2.2.4 to 2.4.2. - [Release notes](https://github.com/pelletier/go-toml/releases) - [Commits](pelletier/go-toml@v2.2.4...v2.4.2) --- updated-dependencies: - dependency-name: github.com/pelletier/go-toml/v2 dependency-version: 2.4.2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
1a06b46 to
198f5af
Compare
Member
|
This bump is fine but I found it produces a non-consequential serialization difference. In 2.4.x they have a completely rewritten parser/serializer. Under 2.4.x, empty TOML tables have one fewer trailing newline: |
zeroshade
pushed a commit
that referenced
this pull request
Jul 10, 2026
go-toml rewrote their serializer in their 2.4.x series and it introduced a non-consequential serialization difference. We were missing a regression test that could have caught this so this PR adds that test. See #406 (comment).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps github.com/pelletier/go-toml/v2 from 2.2.4 to 2.4.2.
Release notes
Sourced from github.com/pelletier/go-toml/v2's releases.
... (truncated)
Commits
25fc130Flatten embedded structs whose toml tag only sets options (#1079)2586526build(deps): bump actions/checkout from 6 to 7 (#1074)4ef6436Fix multiline string, array indentation, and omitempty behaviore3b2270build(deps): bump docker/setup-buildx-action from 3 to 4 (#1073)abaa568ci: fix release Docker attestations + enable manual tag re-release (#1071)b99e8dbdocs: remove "Migrating from v1" section from README (#1070)5a548e3Reimplementation of the parser, decoder, and encoder (#1067)3c357d6fix: report quoted string requirement for unquoted values (#1063)bf5d424Contextualize redefinition errors as DecodeError (#1069)eb85928Support TOML v1.1.0 (#1068)