Skip to content

Commit

Permalink
lexgen: incorporate new tools.ozone namespace; bunch of old lexicons …
Browse files Browse the repository at this point in the history
…deprecated (#617)

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).~
  • Loading branch information
bnewbold authored Mar 12, 2024
2 parents 8ecf685 + ea0eb13 commit 4b304fb
Show file tree
Hide file tree
Showing 39 changed files with 1,241 additions and 1,546 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ check: ## Compile everything, checking syntax (does not output binaries)
lexgen: ## Run codegen tool for lexicons (lexicon JSON to Go packages)
go run ./cmd/lexgen/ --package bsky --prefix app.bsky --outdir api/bsky $(LEXDIR)
go run ./cmd/lexgen/ --package atproto --prefix com.atproto --outdir api/atproto $(LEXDIR)
go run ./cmd/lexgen/ --package ozone --prefix tools.ozone --outdir api/ozone $(LEXDIR)

.PHONY: cborgen
cborgen: ## Run codegen tool for CBOR serialization
Expand Down
33 changes: 0 additions & 33 deletions api/atproto/admincreateCommunicationTemplate.go

This file was deleted.

782 changes: 0 additions & 782 deletions api/atproto/admindefs.go

Large diffs are not rendered by default.

25 changes: 0 additions & 25 deletions api/atproto/admindeleteCommunicationTemplate.go

This file was deleted.

174 changes: 0 additions & 174 deletions api/atproto/adminemitModerationEvent.go

This file was deleted.

25 changes: 0 additions & 25 deletions api/atproto/admingetModerationEvent.go

This file was deleted.

26 changes: 0 additions & 26 deletions api/atproto/admingetRecord.go

This file was deleted.

25 changes: 0 additions & 25 deletions api/atproto/admingetRepo.go

This file was deleted.

26 changes: 0 additions & 26 deletions api/atproto/adminlistCommunicationTemplates.go

This file was deleted.

36 changes: 0 additions & 36 deletions api/atproto/adminsearchRepos.go

This file was deleted.

Loading

0 comments on commit 4b304fb

Please sign in to comment.