Skip to content

chore(go): bump github.com/pelletier/go-toml/v2 from 2.2.4 to 2.4.2#406

Merged
amoeba merged 1 commit into
mainfrom
dependabot/go_modules/github.com/pelletier/go-toml/v2-2.4.2
Jul 10, 2026
Merged

chore(go): bump github.com/pelletier/go-toml/v2 from 2.2.4 to 2.4.2#406
amoeba merged 1 commit into
mainfrom
dependabot/go_modules/github.com/pelletier/go-toml/v2-2.4.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 8, 2026

Copy link
Copy Markdown
Contributor

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.

v2.4.2

What's Changed

Fixed bugs

Full Changelog: pelletier/go-toml@v2.4.1...v2.4.2

v2.4.1

What's Changed

Fixed bugs

Full Changelog: pelletier/go-toml@v2.4.0...v2.4.1

v2.4.0

What's Changed

What's new

Performance

Fixed bugs

Documentation

New Contributors

Full Changelog: pelletier/go-toml@v2.3.1...v2.4.0

v2.3.1

What's Changed

Fixed bugs

... (truncated)

Commits
  • 25fc130 Flatten embedded structs whose toml tag only sets options (#1079)
  • 2586526 build(deps): bump actions/checkout from 6 to 7 (#1074)
  • 4ef6436 Fix multiline string, array indentation, and omitempty behavior
  • e3b2270 build(deps): bump docker/setup-buildx-action from 3 to 4 (#1073)
  • abaa568 ci: fix release Docker attestations + enable manual tag re-release (#1071)
  • b99e8db docs: remove "Migrating from v1" section from README (#1070)
  • 5a548e3 Reimplementation of the parser, decoder, and encoder (#1067)
  • 3c357d6 fix: report quoted string requirement for unquoted values (#1063)
  • bf5d424 Contextualize redefinition errors as DecodeError (#1069)
  • eb85928 Support TOML v1.1.0 (#1068)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Jul 8, 2026
@dependabot dependabot Bot force-pushed the dependabot/go_modules/github.com/pelletier/go-toml/v2-2.4.2 branch 4 times, most recently from b5819f9 to 1a06b46 Compare July 10, 2026 17:22
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>
@dependabot dependabot Bot force-pushed the dependabot/go_modules/github.com/pelletier/go-toml/v2-2.4.2 branch from 1a06b46 to 198f5af Compare July 10, 2026 17:37
@amoeba

amoeba commented Jul 10, 2026

Copy link
Copy Markdown
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:

# before
$ ./dbc-toml22 init
$ ./dbc-toml22 add flightsql "snowflake>=1.0.0"
added flightsql to driver list
added snowflake to driver list with constraint >=1.0.0
use `dbc sync` to install the drivers in the list
$ cat dbc.toml
# dbc driver list
[drivers]
[drivers.flightsql]

[drivers.snowflake]
version = '>=1.0.0'
$ rm dbc.toml

# after
$ ./dbc-toml24 init
$ ./dbc-toml24 add flightsql "snowflake>=1.0.0"
added flightsql to driver list
added snowflake to driver list with constraint >=1.0.0
use `dbc sync` to install the drivers in the list
$ cat dbc.toml
# dbc driver list
[drivers]
[drivers.flightsql]
[drivers.snowflake]
version = '>=1.0.0'

@amoeba amoeba merged commit d2596ca into main Jul 10, 2026
15 checks passed
@amoeba amoeba deleted the dependabot/go_modules/github.com/pelletier/go-toml/v2-2.4.2 branch July 10, 2026 17:46
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).
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.

1 participant