Skip to content

chore(dep): replace archived gopkg.in/yaml.v3 with officially maintained go.yaml.in/yaml#58

Open
tuunit wants to merge 1 commit intowk8:masterfrom
tuunit:chore/migrate-yaml-dependency
Open

chore(dep): replace archived gopkg.in/yaml.v3 with officially maintained go.yaml.in/yaml#58
tuunit wants to merge 1 commit intowk8:masterfrom
tuunit:chore/migrate-yaml-dependency

Conversation

@tuunit
Copy link

@tuunit tuunit commented Mar 17, 2026

The package gopkg.in/yaml.v3 has been archived since April 2025 and is not maintained anymore. The official Yaml org stepped up and is now maintaining a new repository under go.yaml.in/yaml/v3.

Ref.:

https://github.com/go-yaml/yaml
https://github.com/yaml/go-yaml

…ned go.yaml.in/yaml

Signed-off-by: Jan Larwig <jan@larwig.com>
Copilot AI review requested due to automatic review settings March 17, 2026 05:36
Comment on lines +20 to +21
go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
Copy link
Author

Choose a reason for hiding this comment

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

This is due to testify waiting for the v4 release:
stretchr/testify#1772

Copy link

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

Updates this module’s YAML dependency to use the new officially maintained go.yaml.in/yaml/v3 module path instead of the archived gopkg.in/yaml.v3.

Changes:

  • Switched YAML imports in production and test code from gopkg.in/yaml.v3 to go.yaml.in/yaml/v3.
  • Updated go.mod/go.sum to add go.yaml.in/yaml/v3 v3.0.4.

Reviewed changes

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

Show a summary per file
File Description
yaml.go Updates YAML library import to the new module path for marshaling/unmarshaling support.
yaml_test.go Updates YAML import used by unit tests.
yaml_fuzz_test.go Updates YAML import used by fuzz tests.
go.mod Replaces direct YAML dependency with go.yaml.in/yaml/v3, but also adds gopkg.in/yaml.v3 as indirect.
go.sum Adds checksums for go.yaml.in/yaml/v3 v3.0.4.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Copy link

@ccoVeille ccoVeille left a comment

Choose a reason for hiding this comment

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

LGTM 👍

yaml/go-yaml maintainer here

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.

3 participants