From 29d700f70bd1d2d365fd5f8e43d3162b7e3208e5 Mon Sep 17 00:00:00 2001 From: Lukasz Mierzwa Date: Tue, 29 Aug 2023 11:30:25 +0100 Subject: [PATCH] Add go toolchain version --- go.mod | 4 +++- tools/gofumpt/go.mod | 4 +++- tools/goimports/go.mod | 4 +++- tools/golangci-lint/go.mod | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 41482c3b..e0465187 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,8 @@ module github.com/cloudflare/pint -go 1.21.0 +go 1.21 + +toolchain go1.21.0 require ( github.com/cespare/xxhash/v2 v2.2.0 diff --git a/tools/gofumpt/go.mod b/tools/gofumpt/go.mod index 13edaee4..404fc9fb 100644 --- a/tools/gofumpt/go.mod +++ b/tools/gofumpt/go.mod @@ -1,6 +1,8 @@ module _ -go 1.21.0 +go 1.21 + +toolchain go1.21.0 require mvdan.cc/gofumpt v0.5.0 diff --git a/tools/goimports/go.mod b/tools/goimports/go.mod index 2ea17347..194cad8a 100644 --- a/tools/goimports/go.mod +++ b/tools/goimports/go.mod @@ -1,6 +1,8 @@ module _ -go 1.21.0 +go 1.21 + +toolchain go1.21.0 require golang.org/x/tools v0.12.0 diff --git a/tools/golangci-lint/go.mod b/tools/golangci-lint/go.mod index 0b1fb57a..42a0e878 100644 --- a/tools/golangci-lint/go.mod +++ b/tools/golangci-lint/go.mod @@ -1,6 +1,8 @@ module _ -go 1.21.0 +go 1.21 + +toolchain go1.21.0 require github.com/golangci/golangci-lint v1.54.2