Skip to content

chore(de): switch to go.in/yaml v4 and update modules - #117

Merged
SVilgelm merged 1 commit into
mainfrom
chore/use-go-in-yaml-v4
Aug 26, 2025
Merged

SVilgelm merged 1 commit into
mainfrom
chore/use-go-in-yaml-v4

Conversation

@SVilgelm

@SVilgelm SVilgelm commented Aug 26, 2025 •

Copy link
Copy Markdown
Member

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.

Copilot AI review requested due to automatic review settings August 26, 2025 18:18

This comment was marked as outdated.

@SVilgelm
SVilgelm force-pushed the chore/use-go-in-yaml-v4 branch from 83d0bee to e4eafc3 Compare August 26, 2025 18:21
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
SVilgelm force-pushed the chore/use-go-in-yaml-v4 branch from e4eafc3 to e11229e Compare August 26, 2025 18:22
@SVilgelm
SVilgelm requested a review from Copilot August 26, 2025 18:23
@SVilgelm
SVilgelm enabled auto-merge (squash) August 26, 2025 18:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.v3 to go.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.

@SVilgelm
SVilgelm merged commit e4360ca into main Aug 26, 2025
@SVilgelm
SVilgelm deleted the chore/use-go-in-yaml-v4 branch August 26, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

⌂ 换网址