Skip to content

Migrate from gopkg.in/yaml to goccy/go-yaml#458

Open
dciangot wants to merge 1 commit into
interlink-hq:mainfrom
dciangot:migrate-yaml-v3
Open

Migrate from gopkg.in/yaml to goccy/go-yaml#458
dciangot wants to merge 1 commit into
interlink-hq:mainfrom
dciangot:migrate-yaml-v3

Conversation

@dciangot

@dciangot dciangot commented Oct 2, 2025

Copy link
Copy Markdown
Member

Summary

This PR migrates the project from the archived gopkg.in/yaml packages to the actively maintained github.com/goccy/go-yaml package.

  • Replaces gopkg.in/yaml.v2 and gopkg.in/yaml.v3 imports with github.com/goccy/go-yaml
  • The gopkg.in/yaml packages are archived and no longer receive updates
  • goccy/go-yaml is actively maintained with better performance and compatibility

Changes

  • pkg/interlink/config.go: Updated YAML import
  • pkg/virtualkubelet/virtualkubelet.go: Updated YAML import
  • cmd/installer/main.go: Updated YAML import
  • go.mod: Added goccy/go-yaml dependency

Test plan

  • All binaries compile successfully
  • go mod tidy completed without errors
  • Verified compatibility with existing code

References

Similar migration: interlink-hq/interlink-slurm-plugin#95

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>
@netlify

netlify Bot commented Oct 2, 2025

Copy link
Copy Markdown

Deploy Preview for interlink-dev canceled.

Name Link
🔨 Latest commit 98dcff8
🔍 Latest deploy log https://app.netlify.com/projects/interlink-dev/deploys/68dec4ee33d0e50008d9d810

@dciangot dciangot left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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.

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