Skip to content

feat: update yaml package import from gopkg.in to go.yaml.in#3817

Open
fifsky wants to merge 2 commits into
go-kratos:mainfrom
fifsky:feat/update-yaml-import-v2
Open

feat: update yaml package import from gopkg.in to go.yaml.in#3817
fifsky wants to merge 2 commits into
go-kratos:mainfrom
fifsky:feat/update-yaml-import-v2

Conversation

@fifsky
Copy link
Copy Markdown
Contributor

@fifsky fifsky commented Apr 22, 2026

Summary

Update the YAML package import path from the legacy gopkg.in/yaml.v3 to the canonical go.yaml.in/yaml/v3 path.

Changes

  • encoding/yaml/yaml.go: Changed import from gopkg.in/yaml.v3 to go.yaml.in/yaml/v3
  • go.mod: Updated dependency to use go.yaml.in/yaml/v3

Rationale

The go.yaml.in domain is the official canonical path for the YAML package, maintained by the official YAML organization. This migration aligns with Go best practices for module path canonicalization.

- Replace gopkg.in/yaml.v3 with go.yaml.in/yaml/v3 in encoding/yaml/yaml.go
- Update go.mod dependency to use go.yaml.in/yaml/v3

The go.yaml.in domain is the official canonical path for the yaml package.
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Apr 22, 2026
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant