risor-io / risor

Fast and flexible scripting for Go developers and DevOps.
https://risor.io
Apache License 2.0
611 stars 26 forks source link

Added gofumpt to risor-modgen #179

Closed applejag closed 8 months ago

applejag commented 8 months ago

Uses https://github.com/mvdan/gofumpt programmatically.

In PR #177 I want to add CI pipeline to run gofumpt, but the generated code is not fully correctly formatted. So the pipeline would complain about the generated files all of the time.

Instead of adding gofumpt to the //go:generate comment, let's just run the formatter in the same process.