Skip to content
/ example-codegen Public template

An example repository to demonstrate codegen support in Pants

License

Notifications You must be signed in to change notification settings

pantsbuild/example-codegen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f7584b4 · Apr 1, 2025

History

30 Commits
Feb 12, 2025
Sep 6, 2023
Sep 6, 2023
Jan 25, 2022
Jan 15, 2022
Mar 1, 2023
Sep 24, 2023
Sep 6, 2023
Jan 26, 2022
Apr 1, 2025

Repository files navigation

example-codegen

An example repository to demonstrate codegen support in Pants.

You run Pants goals using the pants launcher binary, which will bootstrap the version of Pants configured for this repo if necessary.

See here for how to install the pants binary.

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 with buf
  • pants lint :: - lint Protobuf with buf
  • 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.

About

An example repository to demonstrate codegen support in Pants

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published