go.yaml.in/yaml/v4: the one test that reads YAML takes the new major #89

Merged
mikluko merged 1 commit from yaml-v4 into main 2026-11-16 10:29:55 +00:00
Owner

The only importer of the YAML library is internal/config/example_test.go, which decodes the example's StatefulSet into a struct with yaml.Unmarshal. The move from go.yaml.in/yaml/v3 to go.yaml.in/yaml/v4 is the import path: Unmarshal(in []byte, out any) error is the same, and the v3-to-v4 migration guide's changes (formatting, error shapes, custom node hooks) are of what this test does not use. v3 stays in go.mod as an indirect dependency of the Kubernetes libraries. It replaces Renovate's #60, which only added a require nothing imports, and makes #59 (v3.0.6) moot.

The only importer of the YAML library is `internal/config/example_test.go`, which decodes the example's StatefulSet into a struct with `yaml.Unmarshal`. The move from `go.yaml.in/yaml/v3` to `go.yaml.in/yaml/v4` is the import path: `Unmarshal(in []byte, out any) error` is the same, and the v3-to-v4 migration guide's changes (formatting, error shapes, custom node hooks) are of what this test does not use. v3 stays in go.mod as an indirect dependency of the Kubernetes libraries. It replaces Renovate's #60, which only added a require nothing imports, and makes #59 (v3.0.6) moot.
go.yaml.in/yaml/v4: the one test that reads YAML takes the new major
All checks were successful
test / changelog (pull_request) Successful in 4s
image / image (pull_request) Successful in 23s
test / go (pull_request) Successful in 2m18s
e3852718b5
Assisted-By: Claude <noreply@anthropic.com>
mikluko deleted branch yaml-v4 2026-11-16 10:29:56 +00:00
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/roomcity!89
No description provided.