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

lexgen: incorporate new tools.ozone namespace; bunch of old lexicons deprecated #617

Merged
merged 11 commits into from
Mar 12, 2024

Conversation

bnewbold
Copy link
Collaborator

@bnewbold bnewbold commented Mar 12, 2024

DO NOT MERGE YET

This is based off the atproto PR: bluesky-social/atproto#2288

Does mostly expected things, adding api/ozone for tools.ozone.* namespace. Easier than expected because no records in that namespace, so no cborgen needed.

There are some cborgen changes rolled up in this PR. I think I didn't commit changes to at least the bsky codegen, something about string and pointer-to-string. I assume those are unrelated to the namespace stuff and should be resolved in a separate clean PR.

I haven't self-reviewed or tested this at all, should do that before merging or deploying. I think I caught all the string constants with com.atproto.admin.defs#whatever in code, but there might be more lurking (these don't result in compile-time errors).

@bnewbold bnewbold requested a review from ericvolp12 March 12, 2024 02:48
@ericvolp12
Copy link
Collaborator

@bnewbold the pointer and string changes are manual fixes that we need for now while a cborgen bug gets worked out. Iirc this has to do with pointers to strings and there's only one spot in the generated code that causes this error. If you manually replace the string(<var>) with &<var> in that line you can get it to build.

Copy link
Collaborator

@ericvolp12 ericvolp12 left a comment

Choose a reason for hiding this comment

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

LGTM

@bnewbold bnewbold marked this pull request as ready for review March 12, 2024 22:48
@bnewbold bnewbold merged commit 4b304fb into main Mar 12, 2024
7 checks passed
@bnewbold bnewbold deleted the bnewbold/ozone-namespace branch March 12, 2024 23:30
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.

2 participants