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

lua: fix typo specifying \0 byte as /0 #8251

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

serprex
Copy link

@serprex serprex commented Mar 9, 2024

Probably a code path that never runs

Copy link

google-cla bot commented Mar 9, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions bot added the lua label Mar 9, 2024
serprex added a commit to PeerDB-io/peerdb that referenced this pull request Mar 9, 2024
So this turns out to be less easy than I thought a few hours ago

Flatbuffers is pretty bad, the lua side hasn't been touched for 3 years yet I found a silly typo just flipping through the code:
google/flatbuffers#8251

In particular, they seem to assume string.pack/string.unpack will exist, but in 5.1 it doesn't,
with LuaJIT they use ffi which means that works out for most 5.1 users

Solution: we're going to shim our own go implementation of the flatbuffers lua library
serprex added a commit to PeerDB-io/peerdb that referenced this pull request Mar 10, 2024
So this turns out to be less easy than I thought a few hours ago

Flatbuffers is pretty bad, the lua side hasn't been touched for 3 years yet I found a silly typo just flipping through the code:
google/flatbuffers#8251

In particular, they seem to assume string.pack/string.unpack will exist, but in 5.1 it doesn't,
with LuaJIT they use ffi which means that works out for most 5.1 users

Solution: we're going to shim our own go implementation of the flatbuffers lua library
serprex added a commit to PeerDB-io/peerdb that referenced this pull request Mar 10, 2024
So this turns out to be less easy than I thought a few hours ago

Flatbuffers is pretty bad, the lua side hasn't been touched for 3 years yet I found a silly typo just flipping through the code:
google/flatbuffers#8251

In particular, they seem to assume string.pack/string.unpack will exist, but in 5.1 it doesn't,
with LuaJIT they use ffi which means that works out for most 5.1 users

Solution: we're going to shim our own go implementation of the flatbuffers lua library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant