From 76fa6b7580a5299c769ad605ed3a355b21979a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82?= Date: Sat, 8 Jul 2023 22:24:07 -0700 Subject: [PATCH] Run tests on the latest 2 go versions, update go directive in go.mod (#114) * Run tests on the latest 2 go versions, update go directive in go.mod We support the latest two versions; we should be testing them. Go directive shouldn't change much, I'm updating it to be in sync. We're still pre Go 1.21, so this should not affect the users. Need to update statichceck in the same PR: - without it, it cannot recognize the new go version - at the same time, staticcheck 0.3.3+ requires Go1.19 --- .github/workflows/test.yaml | 4 ++-- go.mod | 2 +- tools/go.mod | 2 +- tools/go.sum | 2 ++ 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 756a758..151c0a0 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -16,9 +16,9 @@ jobs: strategy: matrix: - go: ["1.17.x", "1.18.x"] + go: ["1.19.x", "1.20.x"] include: - - go: 1.18.x + - go: 1.20.x latest: true steps: diff --git a/go.mod b/go.mod index ce7cfc9..47ec049 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module go.uber.org/ratelimit -go 1.18 +go 1.20 require ( github.com/benbjohnson/clock v1.3.0 diff --git a/tools/go.mod b/tools/go.mod index 9ce9fbb..0126c19 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -6,7 +6,7 @@ require ( github.com/storozhukBM/benchart v1.0.0 golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 golang.org/x/perf v0.0.0-20230427221525-d343f6398b76 - honnef.co/go/tools v0.3.3 + honnef.co/go/tools v0.4.3 ) require ( diff --git a/tools/go.sum b/tools/go.sum index 1185ee1..b161956 100644 --- a/tools/go.sum +++ b/tools/go.sum @@ -115,4 +115,6 @@ google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7 google.golang.org/grpc v0.0.0-20170208002647-2a6bf6142e96/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= honnef.co/go/tools v0.3.3 h1:oDx7VAwstgpYpb3wv0oxiZlxY+foCpRAwY7Vk6XpAgA= honnef.co/go/tools v0.3.3/go.mod h1:jzwdWgg7Jdq75wlfblQxO4neNaFFSvgc1tD5Wv8U0Yw= +honnef.co/go/tools v0.4.3 h1:o/n5/K5gXqk8Gozvs2cnL0F2S1/g1vcGCAx2vETjITw= +honnef.co/go/tools v0.4.3/go.mod h1:36ZgoUOrqOk1GxwHhyryEkq8FQWkUO2xGuSMhUCcdvA= rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=