Skip to content

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

Merged
la-cc merged 1 commit into
kubara-io:mainfrom
tuunit:chore/migrate-yaml-dependency
Mar 18, 2026
Merged

chore(dep): replace archived gopkg.in/yaml.v3 with officially maintained go.yaml.in/yaml/v3#111
la-cc merged 1 commit into
kubara-io:mainfrom
tuunit:chore/migrate-yaml-dependency

Conversation

@tuunit
Copy link
Copy Markdown
Contributor

@tuunit tuunit commented Mar 17, 2026

📝 Summary

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

🧩 Type of change

  • 🔧 CLI / Go code
  • 📦 Helm chart
  • 🧱 Terraform module
  • 📝 Documentation
  • 🧪 Test or CI change
  • ♻️ Refactor / cleanup

⚠️ Is this a breaking change?

  • Yes, this change breaks existing functionality (explain in summary)

🧪 Testing

  • CI passed
  • Manually tested (local/dev cluster)
  • Unit tested
  • Not tested (explain why below)

🔗 Related Issues / Tickets

✅ Checklist

  • Code compiles and passes all tests
  • Linting and style checks pass
  • Comments added for complex logic
  • Documentation updated (if applicable)

📎 Additional Context (optional)

@tuunit tuunit requested review from a team and Copilot March 17, 2026 05:38
Comment thread go-binary/go.mod
Comment thread go-binary/go.mod
Copy link
Copy Markdown

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 migrates the project’s direct YAML v3 usage from gopkg.in/yaml.v3 to go.yaml.in/yaml/v3, updating both implementation and unit tests, and adjusts module dependencies accordingly.

Changes:

  • Switch YAML v3 imports in config manager and tests to go.yaml.in/yaml/v3.
  • Update go.mod to add go.yaml.in/yaml/v3 as a direct dependency and move gopkg.in/yaml.v3 to indirect.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
go-binary/go.mod Adds go.yaml.in/yaml/v3 as a direct dependency; gopkg.in/yaml.v3 remains indirectly required.
go-binary/cmd/generate_test.go Updates YAML import to go.yaml.in/yaml/v3 for test config marshaling.
go-binary/assets/config/configMngr_test.go Updates YAML import to go.yaml.in/yaml/v3 for config test fixtures.
go-binary/assets/config/configMngr.go Updates YAML encoder import/alias to go.yaml.in/yaml/v3.

💡 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.

Comment thread go-binary/go.mod
Comment thread go-binary/assets/config/configMngr.go Outdated
@tuunit tuunit force-pushed the chore/migrate-yaml-dependency branch from 974b9ee to f13e3bd Compare March 17, 2026 05:43
Copy link
Copy Markdown
Contributor

@la-cc la-cc left a comment

Choose a reason for hiding this comment

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

looks great! Thanks!

@tuunit tuunit force-pushed the chore/migrate-yaml-dependency branch from 29de40e to 80ef124 Compare March 18, 2026 07:15
…ned go.yaml.in/yaml/v3

Signed-off-by: Jan Larwig <jan@larwig.com>
@tuunit tuunit force-pushed the chore/migrate-yaml-dependency branch from f36b5a9 to 96a7696 Compare March 18, 2026 11:11
@la-cc la-cc merged commit 91749f1 into kubara-io:main Mar 18, 2026
6 checks passed
@tuunit tuunit deleted the chore/migrate-yaml-dependency branch March 18, 2026 22:31
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