From 338069c6fb0ee77ddcf55d06a0d08d7c5a7e2c2d Mon Sep 17 00:00:00 2001 From: Addie Bendory Date: Wed, 7 Feb 2024 19:55:41 -0500 Subject: [PATCH] Update dependencies to work with Go 1.22 (#240) * Update dependencies to work with Go 1.22 * Add go 1.22 to the build matrix in github actions --------- Co-authored-by: Addie Bendory --- .github/workflows/errcheck.yml | 2 +- go.mod | 7 ++----- go.sum | 12 +++++------- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/errcheck.yml b/.github/workflows/errcheck.yml index 6806e11..2e41a83 100644 --- a/.github/workflows/errcheck.yml +++ b/.github/workflows/errcheck.yml @@ -10,7 +10,7 @@ jobs: build: strategy: matrix: - go: ["1.18.x", "1.19.x", "1.20.x", "1.21.x"] + go: ["1.18.x", "1.19.x", "1.20.x", "1.21.x", "1.22.x"] name: go ${{ matrix.go }} runs-on: ubuntu-latest diff --git a/go.mod b/go.mod index 1c67aa8..6bd7c7f 100644 --- a/go.mod +++ b/go.mod @@ -2,9 +2,6 @@ module github.com/kisielk/errcheck go 1.18 -require golang.org/x/tools v0.9.1 +require golang.org/x/tools v0.17.0 -require ( - golang.org/x/mod v0.10.0 // indirect - golang.org/x/sys v0.8.0 // indirect -) +require golang.org/x/mod v0.14.0 // indirect diff --git a/go.sum b/go.sum index cf10794..d9ba5b9 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,5 @@ -golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= -golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI= -golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/tools v0.9.1 h1:8WMNJAz3zrtPmnYC7ISf5dEn3MT0gY7jBJfw27yrrLo= -golang.org/x/tools v0.9.1/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc= +golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0= +golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= +golang.org/x/tools v0.17.0 h1:FvmRgNOcs3kOa+T20R1uhfP9F6HgG2mfxDv1vrx1Htc= +golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps=