Migrate from gopkg.in/yaml to goccy/go-yaml#458
Open
dciangot wants to merge 1 commit intointerlink-hq:mainfrom
Open
Migrate from gopkg.in/yaml to goccy/go-yaml#458dciangot wants to merge 1 commit intointerlink-hq:mainfrom
dciangot wants to merge 1 commit intointerlink-hq:mainfrom
Conversation
Replace gopkg.in/yaml.v2 and gopkg.in/yaml.v3 with github.com/goccy/go-yaml in all package imports. The gopkg.in/yaml packages are archived and no longer maintained, while goccy/go-yaml is actively maintained and provides better performance and compatibility. Modified files: - pkg/interlink/config.go - pkg/virtualkubelet/virtualkubelet.go - cmd/installer/main.go Signed-off-by: Diego Ciangottini <diego.ciangottini@pg.infn.it>
✅ Deploy Preview for interlink-dev canceled.
|
dciangot
commented
Oct 5, 2025
Member
Author
dciangot
left a comment
There was a problem hiding this comment.
This PR updates the project dependencies from the deprecated gopkg.in/yaml to the maintained github.com/goccy/go-yaml. It compiles successfully and maintains compatibility. Please review for migration impact and performance benefits.
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.
Summary
This PR migrates the project from the archived
gopkg.in/yamlpackages to the actively maintainedgithub.com/goccy/go-yamlpackage.gopkg.in/yaml.v2andgopkg.in/yaml.v3imports withgithub.com/goccy/go-yamlChanges
pkg/interlink/config.go: Updated YAML importpkg/virtualkubelet/virtualkubelet.go: Updated YAML importcmd/installer/main.go: Updated YAML importgo.mod: Added goccy/go-yaml dependencyTest plan
References
Similar migration: interlink-hq/interlink-slurm-plugin#95