Skip to content

replace gopkg.in/yaml with github.com/goccy/go-yaml #1725

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xqqp
Copy link

@xqqp xqqp commented Apr 4, 2025

Summary

Replace gopkg.in/yaml with github.com/goccy/go-yaml. See #1724.
This was previously attempted in #1120, but the PR got closed due to go-yaml having a high number of dependencies. This has since been resolved. go-yaml does not have any dependencies anymore.

The only downside is that go-yaml requires at least golang v1.21

@xqqp xqqp force-pushed the remove_go-yaml branch from a02a4b0 to f6586e0 Compare April 4, 2025 21:20
@ccoVeille
Copy link
Collaborator

While I get the point, removing support for old Go versions is something that should be stated by maintainer @dolmen @brackendawson

@ccoVeille
Copy link
Collaborator

Another PR was opened to address this apparently

The kubernetes' yaml version doesn't imply to bump Go minimal version

@xqqp
Copy link
Author

xqqp commented Apr 15, 2025

I also considered the Kubernetes yaml fork, but this one still has the 8 year old gopkg.in/check.v1 dependency, while github.com/goccy/go-yaml does not.

@ccoVeille
Copy link
Collaborator

ccoVeille commented Apr 15, 2025

The tests are failing.

I would say let's wait for a go/no-go from @dolmen or @brackendawson to bump minimal Go version for testify.

I don't feel like there is an urge in fixing tests if your PR is declined because of the minimal Go version bump.

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.

2 participants