Skip to content

Conversation

SVilgelm
Copy link
Member

Switch from gopkg.in/yaml.v3 to github.com/goccy/go-yaml, due to yaml.v3 is deprecated

Switch from gopkg.in/yaml.v3 to github.com/goccy/go-yaml, due to yaml.v3 is deprecated
@Copilot Copilot AI review requested due to automatic review settings May 20, 2025 21:21
Copy link
Contributor

@Copilot Copilot AI left a comment

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 replaces the deprecated yaml.v3 parser with the newer github.com/goccy/go-yaml parser to enforce stricter configuration decoding.

  • Replaces the yaml parser in main.go with github.com/goccy/go-yaml.
  • Updates go.mod to remove yaml.v3 and add the go-yaml dependency.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
main.go Replaces the old yaml.NewDecoder with a stricter decoder using DisallowUnknownField.
go.mod Removes the deprecated yaml.v3 dependency and adds github.com/goccy/go-yaml.

@SVilgelm SVilgelm merged commit 2d78bea into main May 20, 2025
7 checks passed
@SVilgelm SVilgelm deleted the sv-branch-1 branch May 20, 2025 21:35
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.

1 participant