diff --git a/Makefile b/Makefile index d540e943..1c549ae3 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,10 @@ format: $(GOBIN)/gofumpt $(GOBIN)/goimports $(GOBIN)/gofumpt -extra -l -w . $(GOBIN)/goimports -local github.com/cloudflare/pint -w . +tidy: + go mod tidy + @for f in $(wildcard tools/*/go.mod) ; do echo ">>> $$f" && cd $(CURDIR)/`dirname "$$f"` && go mod tidy && cd $(CURDIR) ; done + .PHONY: test test: diff --git a/go.mod b/go.mod index 7a0435a5..0f479fd6 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/cloudflare/pint -go 1.21.3 +go 1.21.4 require ( github.com/cespare/xxhash/v2 v2.2.0 diff --git a/tools/gofumpt/go.mod b/tools/gofumpt/go.mod index 28d8530a..ece07058 100644 --- a/tools/gofumpt/go.mod +++ b/tools/gofumpt/go.mod @@ -1,6 +1,6 @@ module _ -go 1.21.3 +go 1.21.4 require mvdan.cc/gofumpt v0.5.0 diff --git a/tools/goimports/go.mod b/tools/goimports/go.mod index 74db1620..034cebf6 100644 --- a/tools/goimports/go.mod +++ b/tools/goimports/go.mod @@ -1,6 +1,6 @@ module _ -go 1.21.3 +go 1.21.4 require golang.org/x/tools v0.16.0 diff --git a/tools/golangci-lint/go.mod b/tools/golangci-lint/go.mod index 7fc689d0..ef69f91a 100644 --- a/tools/golangci-lint/go.mod +++ b/tools/golangci-lint/go.mod @@ -1,6 +1,6 @@ module _ -go 1.21.3 +go 1.21.4 require github.com/golangci/golangci-lint v1.55.2