Skip to content
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

Fix pathElements; do not default to empty list #507

Closed
wants to merge 1 commit into from

Conversation

holzensp
Copy link
Contributor

Extracted from #472, because it is unrelated.

@holzensp holzensp requested a review from bioball May 28, 2024 14:12
@bioball
Copy link
Contributor

bioball commented May 28, 2024

This change was separately made in #480. Was there a particular reason that we wanted to revert it?

Copy link
Contributor

@HT154 HT154 left a comment

Choose a reason for hiding this comment

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

This change fully breaks pkl-go: #255 (comment)

Golang represents empty slices and nil identically. When a response with no path elements is encoded to msgpack it is encoded as a null and not an empty sequence.

@holzensp
Copy link
Contributor Author

Nope, this was my bad. I was behind and got the direction of change wrong.

@holzensp holzensp closed this May 28, 2024
@holzensp holzensp deleted the pathElementsFix branch May 28, 2024 16:21
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.

None yet

3 participants