How is the weaviate/cmd/weaviate-server/main.go generated

I am trying to setup a local weaviate from source. I see shell scripts used to generate grpc code and swagger code. However, I could not figure out how the weaviate/cmd/weaviate-server/main.go is generated? Is there a document on how to setup a local development (including steps to generate code) for studing and contributing?

I found out weaviate/cmd/weaviate-server/main.go is generated by the script tools/gen-code-from-swagger.sh. I will need to study the swagger generate command. I guess by default it assumes the output dir to be in the cmd dir.

1 Like

Hi @Charles_Ju !

Thanks for sharing!