An example repository to demonstrate codegen support in Pants.
Refer to these docs for more information:
Some commands you can try out:
./pants export-codegen ::- see the generated files.- This isn't necessary for Pants to use the generated files, but can be useful when debugging or to generate files for IDEs.
./pants test ::- run all tests./pants fmt ::- format Protobuf withbuf./pants lint ::- lint Protobuf withbuf./pants dependencies <path/to/file>- see what depends on what
Check out our other example repositories to see other features like packaging binaries.
Note: to try out Go, you must comment out pants_ignore in pants.toml. This is so that non-Go
users do not need to have Go installed to run the project.