Skip to content

fix #2720 yaml encoding of hex strings#2729

Closed
vikstrous wants to merge 2 commits intocue-lang:masterfrom
vikstrous:fix-hex-encoding
Closed

fix #2720 yaml encoding of hex strings#2729
vikstrous wants to merge 2 commits intocue-lang:masterfrom
vikstrous:fix-hex-encoding

Conversation

@vikstrous
Copy link
Copy Markdown
Contributor

See #2720 for details

@vikstrous vikstrous requested a review from cueckoo as a code owner December 8, 2023 20:48
Signed-off-by: Viktor Stanchev <me@viktorstanchev.com>
Copy link
Copy Markdown
Member

@mvdan mvdan left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! I'm not particularly familiar with internal/encoding/yaml myself, but the fix looks simple and clear enough to me.

The test case should go in the encoding/yaml package, for example as part of TestYAMLValues, since internal/encoding/yaml is our fork of go-yaml with all the inherited tests. If/when we eventually update our go-yaml fork or move to an entirely different YAML library, I definitely don't want to lose this regression test :)

@mvdan mvdan self-assigned this Dec 14, 2023
Signed-off-by: Viktor Stanchev <me@viktorstanchev.com>
@vikstrous2
Copy link
Copy Markdown

I added the test case to encoding/yaml.

@mvdan
Copy link
Copy Markdown
Member

mvdan commented Dec 15, 2023

Thank you! Imported to Gerrit as https://review.gerrithub.io/c/cue-lang/cue/+/1173689.

I hope you don't mind that I wrote a longer commit message to add context to the git log, and I also added a note in the test case to remind ourselves that upstream hasn't fixed this yet. I also removed the internal/encoding/yaml test, as it was now redundant.

@vikstrous
Copy link
Copy Markdown
Contributor Author

vikstrous commented Dec 15, 2023 via email

@cueckoo cueckoo closed this in 0b3455c Dec 15, 2023
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