go-generate
pants go-generate [args]
Run each command in a package described by a //go:generate
directive. This is equivalent to running go generate
on a Go package.
Note: Just like with go generate
, the go-generate
goal is never run as part of the build and must be run manually to invoke the commands described by the //go:generate directives.
See https://go.dev/blog/generate for details.
Backend: pants.backend.experimental.go
Config section: [go-generate]