-
-
Notifications
You must be signed in to change notification settings - Fork 281
use github.com/goccy/go-yaml
to parse yaml
#262
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
Conversation
sigs.k8s.io/yaml
to parse yamlgithub.com/goccy/go-yaml
to parse yaml
@@ -1,5 +1,7 @@ | |||
module dario.cat/mergo | |||
|
|||
go 1.13 | |||
go 1.21.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see why the bump, but maybe this means we just need to use something that is not YAML for testing. I appreciate the PR, but I think it's better to remove the dependency instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update: we have two options, migrate from YAML testdata files to JSON or write a toy YAML parser just for testing purpose. After looking at the testdata files, I'm leaning towards migrating to JSON.
A note: In DDEV we tried And goccy/go-yaml unmarshals the (double-quoted) string value "8.0" as "8". As should be expected, there will be differences in behavior. |
later I find yaml org start maintaining go-yaml at https://github.com/yaml/go-yaml ...
this should be bug of goccy/go-yaml I think? |
github.com/yaml/go-yaml may be the better short-term replacement since it maintains current functionality (and/or bugs) without new surprises. |
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [github.com/imdario/mergo](https://github.com/imdario/mergo) | `v0.3.16` -> `v1.0.2` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>imdario/mergo (github.com/imdario/mergo)</summary> ### [`v1.0.2`](https://github.com/darccio/mergo/releases/tag/v1.0.2) [Compare Source](darccio/mergo@v1.0.1...v1.0.2) #### What's Changed - Drops `gopkg.in/yaml.v3`, only used for loading fixtures. Thanks [@​trim21](https://github.com/trim21) for bringing to my attention ([#​262](darccio/mergo#262)) that this library is no longer maintained. **Full Changelog**: darccio/mergo@v1.0.1...v1.0.2 ### [`v1.0.1`](https://github.com/darccio/mergo/releases/tag/v1.0.1) [Compare Source](darccio/mergo@v1.0.0...v1.0.1) #### What's Changed - fixes issue [#​187](darccio/mergo#187) by [@​vsemichev](https://github.com/vsemichev) in darccio/mergo#253 - fix: `WithoutDereference` should respect non-nil struct pointers by [@​joshkaplinsky](https://github.com/joshkaplinsky) in darccio/mergo#251 #### New Contributors - [@​vsemichev](https://github.com/vsemichev) made their first contribution in darccio/mergo#253 - [@​joshkaplinsky](https://github.com/joshkaplinsky) made their first contribution in darccio/mergo#251 **Full Changelog**: darccio/mergo@v1.0.0...v1.0.1 ### [`v1.0.0`](https://github.com/darccio/mergo/releases/tag/v1.0.0): 1.0.0 released with new module URL: dario.cat/mergo [Compare Source](darccio/mergo@v0.3.16...v1.0.0) This PR is a release containing [0.3.15](https://github.com/imdario/mergo/releases/tag/v0.3.15) features but changing the module URL to `dario.cat/mergo`. #### What's Changed - feat: v1.0.0 released by [@​imdario](https://github.com/imdario) in darccio/mergo#238 **Full Changelog**: darccio/mergo@v0.3.16...v1.0.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS41MS4xIiwidXBkYXRlZEluVmVyIjoiNDEuNTEuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> <!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/forgejo/runner--> - other - [PR](https://code.forgejo.org/forgejo/runner/pulls/840): <!--number 840 --><!--line 0 --><!--description VXBkYXRlIG1vZHVsZSBnaXRodWIuY29tL2ltZGFyaW8vbWVyZ28gdG8gdjE=-->Update module github.com/imdario/mergo to v1<!--description--> <!--end release-notes-assistant--> Co-authored-by: Earl Warren <contact@earl-warren.org> Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/840 Co-authored-by: Renovate Bot <bot@kriese.eu> Co-committed-by: Renovate Bot <bot@kriese.eu>
gopkg.in/yaml.v3
is no longer maintainedhttps://github.com/go-yaml/yaml/tree/v3.0.1