this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

HACKING: update lexgen docs

+4 -6
+4 -6
HACKING.md
··· 63 63 go run ./gen 64 64 65 65 To run codegen for new or updated Lexicons, using lexgen, first place (or git 66 - checout) the JSON lexicon files `$SOMEWHERE`. Also, install the `goimports` 66 + checout) the JSON lexicon files at `../atproto/`. Also, install the `goimports` 67 67 tool. Then, in *this* repository (indigo), run commands like: 68 68 69 - go run ./cmd/lexgen/ --package bsky --prefix app.bsky --outdir api/bsky $SOMEWHERE/lexicons/app/bsky/ 70 - go run ./cmd/lexgen/ --package atproto --prefix com.atproto --outdir api/atproto $SOMEWHERE/lexicons/com/atproto/ 69 + go run ./cmd/lexgen/ --package bsky --prefix app.bsky --outdir api/bsky ../atproto/lexicons/app/bsky/ 70 + go run ./cmd/lexgen/ --package atproto --prefix com.atproto --outdir api/atproto ../atproto/lexicons/com/atproto/ 71 71 72 72 You may want to delete all the codegen files before re-generating, to detect deleted files. 73 73 ··· 76 76 To generate server stubs and handlers, push them in a temporary directory 77 77 first, then merge changes in to the actual PDS code: 78 78 79 - go run ./cmd/lexgen/ --package pds --gen-server --types-import com.atproto:github.com/bluesky-social/indigo/api/atproto --types-import app.bsky:github.com/bluesky-social/indigo/api/bsky --outdir pds $SOMEWHERE/lexicons 80 - 81 79 mkdir tmppds 82 - go run ./cmd/lexgen/ --package pds --gen-server --types-import com.atproto:github.com/bluesky-social/indigo/api/atproto --types-import app.bsky:github.com/bluesky-social/indigo/api/bsky --outdir tmppds --gen-handlers $SOMEWHERE/lexicons 80 + go run ./cmd/lexgen/ --package pds --gen-server --types-import com.atproto:github.com/bluesky-social/indigo/api/atproto --types-import app.bsky:github.com/bluesky-social/indigo/api/bsky --outdir tmppds --gen-handlers ../atproto/lexicons 83 81 84 82 85 83 ## tips and tricks