Repository navigation
chore(deps): bump github.com/pelletier/go-toml/v2 from 2.2.4 to 2.4.3 - #871
Conversation
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml) from 2.2.4 to 2.4.3. - [Release notes](https://github.com/pelletier/go-toml/releases) - [Commits](pelletier/go-toml@v2.2.4...v2.4.3) --- updated-dependencies: - dependency-name: github.com/pelletier/go-toml/v2 dependency-version: 2.4.3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Dependency verification: SAFE TO MERGEPosted after merge, for the record. Verified at head Risk tier medium · ecosystems: gomod · head Every required check ran and passed. No decision is necessary. Updates
What the verifier checked
Already failing on
|
| Check | Kind | Base | PR | Outcome |
|---|---|---|---|---|
| ldcli setup reads the [tool.*] tables of a pyproject.toml that uses TOML 1.1 syntax | discriminating | fail | pass | proven (fails on base, passes on PR) |
| TOML 1.0 pyproject.toml shapes give the same Python package manager as on base | guard | pass | pass | holds on both |
Impact review
go-toml 2.2.4 → 2.4.3 removes the unsafe package (2.3.0), reimplements the parser, decoder, and encoder and adds TOML 1.1.0 (2.4.0), and fixes encoder and decoder bugs, including a bound on array and inline-table nesting against stack-overflow DoS (2.4.3). ldcli parses one file with it: internal/setup/detector.go configuredTools reads the [tool.*] tables of pyproject.toml to pick the Python package manager for ldcli setup. On base, a pyproject.toml that uses TOML 1.1 syntax fails to parse, so setup falls back to an ambiguous pip. On the PR it reads correctly. 17 TOML 1.0 shapes give the same result on both versions. viper also links go-toml for its TOML codec, but ldcli forces the yml configuration type, so that path does not run.
- github.com/pelletier/go-toml/v2 v2.2.4..v2.4.3: 2.3.0: unsafe package removed, omitzero tag, UnmarshalText and Unmarshaler fallbacks for tables, fixes for leap seconds, nil pointer map values, datetime panics, and EOF error lines. 2.3.1: DisallowUnknownFields error text, unstable parser positions. 2.4.0: TOML 1.1.0 support, parser, decoder, and encoder reimplementation, DecodeError key and context fixes. 2.4.1 and 2.4.2: encoder indentation and omitempty, embedded struct decode. 2.4.3: encoder fix for commented multi-line values, whole document to a root Unmarshaler, table placement errors with position, recursion and nil embedded pointer fixes, and maxValueNesting = 10000 for arrays and inline tables. The module still declares go 1.21.0. (source)
- Used in:
internal/setup/detector.go - Upstream behavior changes that reach ldcli: yes
- Note: ldcli setup now reads pyproject.toml files that use TOML 1.1 syntax: newlines or a trailing comma in an inline table, or a time without seconds. On base, toml.Unmarshal fails, configuredTools returns no tools, and PackageManagerChoiceFor returns pip/ambiguous, so the wizard asks the user. On the PR it returns the tool that the file configures (uv/definite or poetry/definite). This turns a parse failure into a correct read, so it is not a question for a person. Python 3.15 tomllib accepts TOML 1.1, so such files can appear in user projects. (generated/setup-pm-toml11-pyproject.sh (discriminating), Support TOML v1.1.0 pelletier/go-toml#1068)
- Note: The reimplemented parser gives the same package manager on 17 TOML 1.0 shapes: poetry, uv dotted keys, uv arrays of tables, nested hatch tables, pdm with a hatch backend, poetry plus uv, comments and strings that name tools, CRLF, multi-line strings, dates and numbers, 50 levels of nested arrays, and four invalid files (duplicate key, table redefinition, dotted key then header, unterminated header). A file that starts with a UTF-8 BOM fails to parse on both versions. That is already the behavior on main. (generated/setup-pm-pyproject-corpus.sh (guard))
- Note: Security hardening: on base, a pyproject.toml with very deep nesting can overflow the goroutine stack, which is a fatal error for
ldcli setupin that directory. 2.4.3 stops at 10000 levels with a parse error. Real files nest a few levels, so normal files are not affected. No Go vulnerability ID exists for it, and govulncheck reports no change. (fix: bound array and inline table nesting depth to prevent stack-overflow DoS pelletier/go-toml#1092) - Note: viper/internal/encoding/toml also imports go-toml, but cmd/root.go and cmd/config/config.go call SetConfigType("yml") on the configuration file, so viper never decodes TOML in ldcli. ldcli does not marshal TOML, so the encoder fixes do not reach it. (go list -deps -f '{{.ImportPath}}: {{join .Imports " "}}' . | rg go-toml, cmd/root.go, cmd/config/config.go)
Check details
pr-state
- Branch is 2 commit(s) behind
main. The checks ran on the PR merged into the currentmain.
ci-status
Workflows that PR CI must run on ebab960, and their runs on that commit:
| Workflow | Event | Run | Result |
|---|---|---|---|
.github/workflows/dependency-scan.yml |
pull_request | 38593054620 2026-10-14 | pass: success |
.github/workflows/dev-server-ui.yml |
pull_request | 38593054607 2026-10-14 | pass: success |
.github/workflows/go.yml |
pull_request | 38593054524 2026-10-14 | pass: success |
.github/workflows/lint-pr-title.yml |
pull_request_target | 38593100650 2026-10-14 | pass: success |
- Check
Cursor Bugbot: success - Check
Do Not Merge checker: success - Check
Require additional human oversight on bot PRs: success - Check
semgrep-cloud-platform/scan: success
upstream-changes
github.com/pelletier/go-toml/v2v2.2.4 → v2.4.3: pelletier/go-toml, 65 commits, 86 files, notes: release notes, full range
transitive-changes
- gomod (modules compiled into ldcli): 1 changed, 0 added, 0 removed
github.com/pelletier/go-toml/v2v2.2.4 → v2.4.3 (minor)
license-changes
github.com/pelletier/go-toml/v2@v2.4.3: MIT
go-generate-drift
Files rewritten by go generate ./... (patch saved as drift.patch next to this check's status):
internal/dev_server/api/server.gen.go | 430 +++++++++++++++-----
1 file changed, 323 insertions(+), 107 deletions(-)
The regenerated code does not compile:
# github.com/launchdarkly/ldcli/internal/dev_server/api
internal/dev_server/api/data_mapping.go:11:5: unknown field Id in struct literal of type Variation
internal/dev_server/api/get_project.go:20:3: unknown field LastSyncedFromSource in struct literal of type ProjectJSONResponse
internal/dev_server/api/patch_project.go:24:3: unknown field LastSyncedFromSource in struct literal of type ProjectJSONResponse
internal/dev_server/api/post_add_project.go:38:3: unknown field LastSyncedFromSource in struct literal of type ProjectJSONResponse
internal/dev_server/api/post_import_project.go:45:21: v.Id undefined (type Variation has no field or method Id)
internal/dev_server/api/post_import_project.go:75:3: unknown field LastSyncedFromSource in struct literal of type ProjectJSONResponse
internal/dev_server/api/server.gen.go:382:16: undefined: runtime.BindQueryParameterWithOptions
internal/dev_server/api/server.gen.go:382:114: undefined: runtime.BindQueryParameterOptions
internal/dev_server/api/server.gen.go:384:30: undefined: runtime.RequiredParameterError
internal/dev_server/api/server.gen.go:395:16: undefined: runtime.BindQueryParameterWithOptions
internal/dev_server/api/server.gen.go:395:16: too many errors
govulncheck
- Still reachable on the PR: GO-2026-5320 (github.com/yuin/goldmark, fixed in v1.7.17), GO-2026-5970 (golang.org/x/text, fixed in v0.39.0), GO-2026-6603 (stdlib, fixed in v1.26.9), GO-2026-6605 (stdlib, fixed in v1.26.9), GO-2026-6607 (stdlib, fixed in v1.26.9), GO-2026-6608 (stdlib, fixed in v1.26.9), GO-2026-6609 (stdlib, fixed in v1.26.9), GO-2026-6610 (stdlib, fixed in v1.26.9), GO-2026-6611 (stdlib, fixed in v1.26.9), GO-2026-6612 (stdlib, fixed in v1.26.9), GO-2026-6613 (stdlib, fixed in v1.26.9), GO-2026-6617 (stdlib, fixed in v1.26.9)
release-snapshot
- Release image not pullable (unauthorized). Fallback: public
goreleaser/goreleaser-cross:v1.24.2(goreleaser/goreleaser-cross@sha256:c4bfde12925cd9e23faae3e35…) with sha256-pinned musl.cc toolchains at/musl. - dist/ldcli_darwin_amd64_v1/ldcli: Mach-O 64-bit x86_64 executable,
flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE> - dist/ldcli_darwin_arm64_v8.0/ldcli: Mach-O 64-bit arm64 executable,
flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE> - dist/ldcli_linux_386_sse2/ldcli: ELF 32-bit LSB executable, Intel 80386
- dist/ldcli_linux_amd64_v1/ldcli: ELF 64-bit LSB executable, x86-64
- dist/ldcli_linux_arm64_v8.0/ldcli: ELF 64-bit LSB executable, ARM aarch64
- dist/ldcli_windows_386_sse2/ldcli.exe: PE32 executable (console) Intel 80386, for MS Windows
- dist/ldcli_windows_amd64_v1/ldcli.exe: PE32+ executable (console) x86-64, for MS Windows
- dist/ldcli_windows_arm64_v8.0/ldcli.exe: PE32+ executable (console) Aarch64, for MS Windows
- Fidelity gap: the public image plus musl.cc replace the LaunchDarkly image, which can have extras that this build does not have.
- Fidelity gap: the binaries are built, but not executed.
- Fidelity gap:
goreleaser builddoes not run thedockers,docker_manifests, orbrewssteps.
binary-smoke
ldcli --version: ldcli version dev- dev-server served /ui/ (1160 KB) and /dev/projects (
[])
generated: setup-pm-toml11-pyproject
- 3 of 3 TOML 1.1 files read correctly (ldcli setup: PackageManagerChoiceFor(dir, "python-server-sdk"))
- case multiline-inline-table => uv/definite (want uv/definite)
- case trailing-comma-inline => poetry/definite (want poetry/definite)
- case time-without-seconds => uv/definite (want uv/definite)
generated: setup-pm-pyproject-corpus
- 17 cases, 0 differ (ldcli setup: PackageManagerChoiceFor(dir, "python-server-sdk"))
- case bom => pip/ambiguous
- case crlf => poetry/definite
- case dates-and-numbers => uv/definite
- case hatch-nested-only => pip/ambiguous
- case inline-table-one-line => uv/definite
- case invalid-dotted-then-header => pip/ambiguous
- case invalid-duplicate-key => pip/ambiguous
- case invalid-redefine-table => pip/ambiguous
- case invalid-unterminated => pip/ambiguous
- case mentions-only => pip/ambiguous
- case multiline-strings => poetry/definite
- case nested-arrays-50 => uv/definite
- case pdm-with-hatch-backend => pdm/definite
- case poetry => poetry/definite
- case poetry-and-uv => poetry/ambiguous
- case uv-array-of-tables => uv/definite
- case uv-dotted-key => uv/definite
Generated by scripts/dependency-pr/verify.sh (profile full) at 2026-10-16T18:45:02Z. The verifier does not approve or merge.
Bumps github.com/pelletier/go-toml/v2 from 2.2.4 to 2.4.3.
Release notes
Sourced from github.com/pelletier/go-toml/v2's releases.
... (truncated)
Commits
071a36cfix: bound array and inline table nesting depth to prevent stack-overflow DoS...57fec25Add RawMessage marshal support to unstable (#1084)79f82e3fix: error instead of panic on nil unexported embedded pointer (#1089)a28afedunstable/kind: drop duplicate 'a' from LocalDate comment (#1062)6fa69affix: do not recurse forever on recursively embedded structs (#1087)82b792efix: report table placement errors with position and key context (#1086)f93de50perf: avoid interface boxing when decoding date/time values (#1085)21f8286Deliver the whole document to a root Unmarshaler (#994) (#1083)98e94aeUpdate bundled toml.abnf to TOML 1.1.0 and pin spec-corner behaviour (#1082)35f78d5Fix invalid TOML from commented multi-line values (#1081)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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)Note
Overview
Bumps
github.com/pelletier/go-toml/v2from 2.2.4 to 2.4.3 ingo.modandgo.sumonly; there are no application code changes in this PR.The newer release brings TOML decode/marshal bug fixes (including bounds on nested array/inline-table depth to mitigate stack-overflow DoS), clearer placement errors, and minor decode performance improvements. Behavior for valid config TOML should stay the same, with stricter handling of pathological or malformed input.
Reviewed by Cursor Bugbot for commit ebab960. Bugbot is set up for automated code reviews on this repo. Configure here.