-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Add go module & set import path to capnproto.org/go/capnp/v3 #169
Conversation
Add Louis Thibault to AUTHORS
@zenhack Is this a known issue? (i.e. should I worry about it?) |
@lthibault, I think you forgot to re-generate some test data:
|
@zenhack Right on. What's the process for regenerating test data? I can't seem to find anything 🤔 |
I'm not sure what the official way to regenerate those is; @zombiezen? I assume they're just the output of |
Alright, I've manually regenerated the test data for Concerning the errors in {
name: "zdataFilledMessage(20)",
msg: zdataFilledMessage(t, 20),
typ: "Z",
text: `(zdata = (data = "\x00\x01\x02\x03\x04\x05\x06\a\b\t\n\v\f\r\x0e\x0f\x10\x11\x12\x13"))` + "\n",
data: []byte{
0, 0, 0, 0, 9, 0, 0, 0,
0, 0, 0, 0, 3, 0, 1, 0,
28, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 1, 0,
1, 0, 0, 0, 162, 0, 0, 0,
0, 1, 2, 3, 4, 5, 6, 7,
8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 0, 0, 0, 0,
},
}, Updating the Old: I'm not sure I understand the root cause. Has Cap'n Proto's representation of binary data recently changed or something (I'm using versoin |
The text field is what the test expects Anyway, LGTM. |
@zenhack Yeah, that was my instinct as well and I've managed to reproduce the output at the command line:
Merging now. Thanks for your help! |
Looks like the switch from hex to octal happened here: capnproto/capnproto@03800df Looks like it was not entirely advertent. But, hex escapes do have the drawback that in many languages (including C/C++), they are technically not limited to two digits, and so a string like |
Fixes #166.
go.mod
with import path ascapnproto.org/go/capnp/v3