godel-generate-plugin
is a godel plugin for go-generate
.
It provides a task that runs "go generate" based on project configuration and a verification task that verifies that the
current state of the project matches what is expected.
generate
: runs the "go generate" task based on the plugin configuration.
When run as part of the verify
task, if apply=true
, then the generate
task is run. If apply=false
, then
generate --verify
is run, which verifies that the running "generate" does not modify the content of the target output
files. Note that, even when "apply=false", the task may change state on disk (because there is no way to control what
the individual "generate" tasks actually do).