this repo has no description
0
fork

Configure Feed

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

make/HACKING: fix make help and minor improvements to HACKING

authored by

thepudds and committed by
bnewbold
0447a5d2 3eca1728

+6 -5
+5 -4
HACKING.md
··· 5 5 6 6 - `cmd/bigsky`: BGS+indexer daemon 7 7 - `cmd/gosky`: client CLI for talking to a PDS 8 - - `cmd/lexgen`: codegen tool for lexicons (Lexicon JSON to golang package) 8 + - `cmd/lexgen`: codegen tool for lexicons (Lexicon JSON to Go package) 9 9 - `cmd/laputa`: PDS daemon 10 10 - `cmd/stress`: connects to local/default PDS and creates a ton of random posts 11 11 - `cmd/beemo`: slack bot for moderation reporting (Bluesky Moderation Observer) ··· 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 at `../atproto/`. Also, install the `goimports` 67 - tool. Then, in *this* repository (indigo), run commands like: 66 + checkout) the JSON lexicon files at `../atproto/`. 67 + Then, in *this* repository (indigo), run commands like: 68 68 69 69 go run ./cmd/lexgen/ --package bsky --prefix app.bsky --outdir api/bsky ../atproto/lexicons/app/bsky/ 70 70 go run ./cmd/lexgen/ --package atproto --prefix com.atproto --outdir api/atproto ../atproto/lexicons/com/atproto/ ··· 72 72 You may want to delete all the codegen files before re-generating, to detect deleted files. 73 73 74 74 It can require some manual munging between the lexgen step and a later `go run ./gen` to make sure things compile at least temporarily; otherwise the `gen` will not run. 75 + In some cases, you might also need to add new types to ./gen/main.go. 75 76 76 77 To generate server stubs and handlers, push them in a temporary directory 77 78 first, then merge changes in to the actual PDS code: ··· 180 181 # create posts, including mentions and image uploads 181 182 go run ./cmd/fakermaker/ gen-posts 182 183 183 - # create more interations, such as likes, between accounts 184 + # create more interactions, such as likes, between accounts 184 185 go run ./cmd/fakermaker/ gen-interactions 185 186 186 187 # lastly, read-only queries, including timelines, notifications, and post threads
+1 -1
Makefile
··· 56 56 go build ./... 57 57 58 58 .PHONY: lexgen 59 - lexgen: ## Run syntax re-formatting (modify in place) 59 + lexgen: ## Run codegen tool for lexicons (lexicon JSON to Go packages) 60 60 go run ./cmd/lexgen/ --package bsky --prefix app.bsky --outdir api/bsky $(LEXDIR) 61 61 go run ./cmd/lexgen/ --package atproto --prefix com.atproto --outdir api/atproto $(LEXDIR) 62 62