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: kKeep filenames to avoid incorrect require casing #8258

Closed
wants to merge 1 commit into from

Conversation

serprex
Copy link

@serprex serprex commented Mar 14, 2024

Having a struct UUID, the file generated was Uuid.lua,
but generated code passing UUID all uppercase to require,
on case sensitive filesystems this doesn't work

Update GenerateMethod to use namer_ Method to avoid changing PrependInt8 into Prependint8

@github-actions github-actions bot added c++ codegen Involving generating code from schema lua labels Mar 14, 2024
@serprex serprex force-pushed the lua-case-sensitive-require branch from ea06e3b to 5d6b630 Compare March 14, 2024 22:53
@serprex serprex changed the title lua: kKeep type names to avoid incorrect require casing lua: kUpperCamel filenames to avoid incorrect require casing Mar 14, 2024
Having a struct UUID, the file generated was Uuid.lua,
but generated code passing UUID all uppercase to require,
on case sensitive filesystems this doesn't work
@serprex serprex force-pushed the lua-case-sensitive-require branch from 5d6b630 to 7381565 Compare March 14, 2024 23:06
@serprex serprex changed the title lua: kUpperCamel filenames to avoid incorrect require casing lua: kKeep filenames to avoid incorrect require casing Mar 14, 2024
Copy link
Contributor

This pull request is stale because it has been open 6 months with no activity. Please comment or label not-stale, or this will be closed in 14 days.

@github-actions github-actions bot added the stale label Sep 24, 2024
Copy link
Contributor

github-actions bot commented Oct 9, 2024

This pull request was automatically closed due to no activity for 6 months plus the 14 day notice period.

@github-actions github-actions bot closed this Oct 9, 2024
serprex added a commit to PeerDB-io/peerdb that referenced this pull request Feb 13, 2025
generating correct lua code involved using my fork of flatbuffers,
I thought fixes would get merged upstream but flatbuffers maintainers ignored me

google/flatbuffers#8071
google/flatbuffers#8251
google/flatbuffers#8252
google/flatbuffers#8254
google/flatbuffers#8258
google/flatbuffers#8262
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ codegen Involving generating code from schema lua stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant