feat: replace unmaintained serde_yaml with maintained serde_yaml_ng#5527
feat: replace unmaintained serde_yaml with maintained serde_yaml_ng#5527RoyalOughtness wants to merge 4 commits intocoreos:mainfrom
Conversation
|
Hi @RoyalOughtness. Thanks for your PR. I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
There was a problem hiding this comment.
Code Review
This pull request correctly identifies the need to replace the unmaintained serde_yaml crate with the maintained serde_yaml_ng fork. This is a good maintenance step. However, the implementation has a syntax error in Cargo.toml that will prevent the project from building. A closing brace is missing in the dependency definition.
|
/ok-to-test |
|
Thanks for this, I am curious if this will work without some changes of the code because that cargo.lock did update a bunch of stuff. |
Is this an unrelated issue?
I could see if I can scope down the |
|
Yeah if we can keep this PR minimal just replacing serde_yaml with serde_yaml_ng with the less change to the cargo.lock as possible is easier to debug any failures in CI. |
@jmarrero Fixed |
|
I get the idea of this in principle...but the thing is that what seems to have happened with I guess if I had to weigh in on this what I'd probably say is that what we should actually do is follow Kube and actually deprecate our YAML input and only handle kyaml or so... |
|
@RoyalOughtness: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
@cgwalters where are you seeing that most crates are still using Getting rid of serde_yaml altogether makes sense too |
Well of those, a really big one in the ecosystem is https://lib.rs/crates/kube-client for example. |
|
kube-rs/kube#1770 is relevant |
|
What about we close this PR in favor of an issue for this repo that mentions kube-rs/kube#1770 so we don't forget to revisit this from time to time? |
|
I think this is better now yaml_serde |
|
@cgwalters @jmarrero FYI, they went with serde_saphyr: kube-rs/kube#1975 I can put together a PR to do the same if that works. |
See: