Repository navigation
chore(de): switch to go.in/yaml v4 and update modules - #117
Merged
Merged
Conversation
SVilgelm
force-pushed
the
chore/use-go-in-yaml-v4
branch
from
August 26, 2025 18:21
83d0bee to
e4eafc3
Compare
Replace imports of gopkg.in/yaml.v3 with the new module path go.yaml.in/yaml/v4 across source and test files to prepare for the yaml v4 release candidate. Update go.mod to require the v4 module (rc.1) and add its checksums to go.sum. This change modernizes YAML handling and aligns the project with the v4 API while preserving compatibility with existing v3 artifacts.
SVilgelm
force-pushed
the
chore/use-go-in-yaml-v4
branch
from
August 26, 2025 18:22
e4eafc3 to
e11229e
Compare
SVilgelm
enabled auto-merge (squash)
August 26, 2025 18:23
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR modernizes YAML handling by upgrading from gopkg.in/yaml.v3 to go.yaml.in/yaml/v4 across the entire codebase to prepare for the YAML v4 release candidate.
- Updates all import statements from
gopkg.in/yaml.v3togo.yaml.in/yaml/v4 - Updates go.mod to require the v4 module (rc.1) and adds v3 as an indirect dependency
- Maintains compatibility with existing v3 artifacts while adopting the v4 API
Reviewed Changes
Copilot reviewed 15 out of 16 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| go.mod | Updates YAML dependency to v4.0.0-rc.1 and moves v3 to indirect dependencies |
| *.go files | Updates YAML import statements to use the new v4 module path |
| *_test.go files | Updates YAML import statements in test files to use the new v4 module path |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Replace imports of gopkg.in/yaml.v3 with the new module path
go.yaml.in/yaml/v4 across source and test files to prepare for the
yaml v4 release candidate. Update go.mod to require the v4 module
(rc.1) and add its checksums to go.sum.
This change modernizes YAML handling and aligns the project with the
v4 API while preserving compatibility with existing v3 artifacts.