From 42e36af55b6b6b57c98fb5b0565bd32e797941e0 Mon Sep 17 00:00:00 2001 From: Ryan D McGuire Date: Mon, 16 Dec 2024 14:24:31 -0500 Subject: [PATCH] Add gofumpt to tools --- Makefile | 1 + go.mod | 2 ++ go.sum | 4 ++++ tools.go | 1 + 4 files changed, 8 insertions(+) diff --git a/Makefile b/Makefile index a782191..a09161f 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ all: tools schema generate test build install tools: go install golang.org/x/tools/cmd/stringer go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen + go install mvdan.cc/gofumpt # Retrieve and prepare schema schema: diff --git a/go.mod b/go.mod index 20b125f..29673ad 100644 --- a/go.mod +++ b/go.mod @@ -13,6 +13,7 @@ require ( github.com/spf13/cobra v1.8.1 golang.org/x/tools v0.27.0 k8s.io/utils v0.0.0-20241104163129-6fe5fd82f078 + mvdan.cc/gofumpt v0.7.0 ) require ( @@ -21,6 +22,7 @@ require ( github.com/getkin/kin-openapi v0.128.0 // indirect github.com/go-openapi/jsonpointer v0.21.0 // indirect github.com/go-openapi/swag v0.23.0 // indirect + github.com/google/go-cmp v0.6.0 // indirect github.com/google/uuid v1.6.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/invopop/yaml v0.3.1 // indirect diff --git a/go.sum b/go.sum index b14d85c..48127b8 100644 --- a/go.sum +++ b/go.sum @@ -26,6 +26,8 @@ github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1 github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= +github.com/go-quicktest/qt v1.101.0 h1:O1K29Txy5P2OK0dGo59b7b0LR6wKfIhttaAhHUyn7eI= +github.com/go-quicktest/qt v1.101.0/go.mod h1:14Bz/f7NwaXPtdYEgzsx46kqSxVwTbzVZsDC26tQJow= github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= github.com/go-test/deep v1.0.8 h1:TDsG77qcSprGbC6vTN8OuXp5g+J+b5Pcguhf7Zt61VM= github.com/go-test/deep v1.0.8/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= @@ -213,3 +215,5 @@ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= k8s.io/utils v0.0.0-20241104163129-6fe5fd82f078 h1:jGnCPejIetjiy2gqaJ5V0NLwTpF4wbQ6cZIItJCSHno= k8s.io/utils v0.0.0-20241104163129-6fe5fd82f078/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= +mvdan.cc/gofumpt v0.7.0 h1:bg91ttqXmi9y2xawvkuMXyvAA/1ZGJqYAEGjXuP0JXU= +mvdan.cc/gofumpt v0.7.0/go.mod h1:txVFJy/Sc/mvaycET54pV8SW8gWxTlUuGHVEcncmNUo= diff --git a/tools.go b/tools.go index 095648e..b5472b6 100644 --- a/tools.go +++ b/tools.go @@ -6,4 +6,5 @@ package main import ( _ "github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen" _ "golang.org/x/tools/cmd/stringer" + _ "mvdan.cc/gofumpt" )