Skip to content

Commit

Permalink
cmd/cdpgen: Switch from goimports to gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
mafredri committed Jun 4, 2022
1 parent 91594d7 commit 368e958
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/cdpgen/main.go
Expand Up @@ -224,10 +224,10 @@ func main() {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()

goimports := exec.CommandContext(ctx, "goimports", "-w", "-v", g.path())
out, err := goimports.CombinedOutput()
gofumpt := exec.CommandContext(ctx, "gofumpt", "-w", "-v", g.path())
out, err := gofumpt.CombinedOutput()
if err != nil {
log.Printf("goimports failed: %s", out)
log.Printf("gofumpt failed: %s", out)
log.Println(err)
os.Exit(1)
}
Expand Down

0 comments on commit 368e958

Please sign in to comment.