From 8c1b558adb26186c41f8329f082fc5832b227cdd Mon Sep 17 00:00:00 2001 From: Fabio Rapposelli Date: Mon, 11 Mar 2024 14:21:09 +0100 Subject: [PATCH] go mod update to 1.22 --- .github/workflows/ci.yml | 4 ++-- go.mod | 15 +++++++++++---- vendor/github.com/emicklei/dot/go.mod | 3 --- vendor/github.com/google/licensecheck/go.mod | 3 --- vendor/github.com/jessevdk/go-flags/go.mod | 5 ----- vendor/github.com/jessevdk/go-flags/go.sum | 2 -- vendor/github.com/sirupsen/logrus/go.mod | 9 --------- vendor/github.com/sirupsen/logrus/go.sum | 14 -------------- vendor/gopkg.in/yaml.v2/go.mod | 5 ----- vendor/gopkg.in/yaml.v3/go.mod | 5 ----- vendor/modules.txt | 18 +++++++++++------- 11 files changed, 24 insertions(+), 59 deletions(-) delete mode 100644 vendor/github.com/emicklei/dot/go.mod delete mode 100644 vendor/github.com/google/licensecheck/go.mod delete mode 100644 vendor/github.com/jessevdk/go-flags/go.mod delete mode 100644 vendor/github.com/jessevdk/go-flags/go.sum delete mode 100644 vendor/github.com/sirupsen/logrus/go.mod delete mode 100644 vendor/github.com/sirupsen/logrus/go.sum delete mode 100644 vendor/gopkg.in/yaml.v2/go.mod delete mode 100644 vendor/gopkg.in/yaml.v3/go.mod diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea07de5..1eb8a39 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - go_version: ['1.16'] + go_version: ['1.22'] os: [ubuntu-latest, windows-latest, macOS-latest] steps: - name: Use Go ${{ matrix.go_version }} @@ -30,7 +30,7 @@ jobs: bash -c "./wwhrd check" - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 - if: matrix.go_version == '1.16' && matrix.os == 'ubuntu-latest' + if: matrix.go_version == '1.22' && matrix.os == 'ubuntu-latest' with: token: ${{ secrets.CODECOV_KEY }} file: ./.cover/cover.out diff --git a/go.mod b/go.mod index bb04840..b716a31 100644 --- a/go.mod +++ b/go.mod @@ -1,15 +1,22 @@ module github.com/frapposelli/wwhrd -go 1.15 +go 1.22 require ( github.com/emicklei/dot v1.6.1 github.com/google/licensecheck v0.3.1 github.com/jessevdk/go-flags v1.5.0 - github.com/kr/text v0.2.0 // indirect - github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect github.com/sirupsen/logrus v1.9.3 github.com/stretchr/testify v1.8.2 - gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect gopkg.in/yaml.v2 v2.4.0 ) + +require ( + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/kr/text v0.2.0 // indirect + github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect + gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) diff --git a/vendor/github.com/emicklei/dot/go.mod b/vendor/github.com/emicklei/dot/go.mod deleted file mode 100644 index 7906126..0000000 --- a/vendor/github.com/emicklei/dot/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module github.com/emicklei/dot - -go 1.13 diff --git a/vendor/github.com/google/licensecheck/go.mod b/vendor/github.com/google/licensecheck/go.mod deleted file mode 100644 index ae7ca5f..0000000 --- a/vendor/github.com/google/licensecheck/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module github.com/google/licensecheck - -go 1.12 diff --git a/vendor/github.com/jessevdk/go-flags/go.mod b/vendor/github.com/jessevdk/go-flags/go.mod deleted file mode 100644 index a626c5d..0000000 --- a/vendor/github.com/jessevdk/go-flags/go.mod +++ /dev/null @@ -1,5 +0,0 @@ -module github.com/jessevdk/go-flags - -go 1.15 - -require golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4 diff --git a/vendor/github.com/jessevdk/go-flags/go.sum b/vendor/github.com/jessevdk/go-flags/go.sum deleted file mode 100644 index 7503251..0000000 --- a/vendor/github.com/jessevdk/go-flags/go.sum +++ /dev/null @@ -1,2 +0,0 @@ -golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4 h1:EZ2mChiOa8udjfp6rRmswTbtZN/QzUQp4ptM4rnjHvc= -golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/vendor/github.com/sirupsen/logrus/go.mod b/vendor/github.com/sirupsen/logrus/go.mod deleted file mode 100644 index 8b3f6d3..0000000 --- a/vendor/github.com/sirupsen/logrus/go.mod +++ /dev/null @@ -1,9 +0,0 @@ -module github.com/sirupsen/logrus - -require ( - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/stretchr/testify v1.7.0 - golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 -) - -go 1.13 diff --git a/vendor/github.com/sirupsen/logrus/go.sum b/vendor/github.com/sirupsen/logrus/go.sum deleted file mode 100644 index e5fdc85..0000000 --- a/vendor/github.com/sirupsen/logrus/go.sum +++ /dev/null @@ -1,14 +0,0 @@ -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ= -golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/vendor/gopkg.in/yaml.v2/go.mod b/vendor/gopkg.in/yaml.v2/go.mod deleted file mode 100644 index 2cbb85a..0000000 --- a/vendor/gopkg.in/yaml.v2/go.mod +++ /dev/null @@ -1,5 +0,0 @@ -module gopkg.in/yaml.v2 - -go 1.15 - -require gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 diff --git a/vendor/gopkg.in/yaml.v3/go.mod b/vendor/gopkg.in/yaml.v3/go.mod deleted file mode 100644 index f407ea3..0000000 --- a/vendor/gopkg.in/yaml.v3/go.mod +++ /dev/null @@ -1,5 +0,0 @@ -module "gopkg.in/yaml.v3" - -require ( - "gopkg.in/check.v1" v0.0.0-20161208181325-20d25e280405 -) diff --git a/vendor/modules.txt b/vendor/modules.txt index e4ddbe2..e8eaef9 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,35 +1,39 @@ # github.com/davecgh/go-spew v1.1.1 +## explicit github.com/davecgh/go-spew/spew # github.com/emicklei/dot v1.6.1 -## explicit +## explicit; go 1.13 github.com/emicklei/dot # github.com/google/licensecheck v0.3.1 -## explicit +## explicit; go 1.12 github.com/google/licensecheck github.com/google/licensecheck/internal/match # github.com/jessevdk/go-flags v1.5.0 -## explicit +## explicit; go 1.15 github.com/jessevdk/go-flags # github.com/kr/text v0.2.0 ## explicit # github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e -## explicit +## explicit; go 1.12 # github.com/pmezard/go-difflib v1.0.0 +## explicit github.com/pmezard/go-difflib/difflib # github.com/sirupsen/logrus v1.9.3 -## explicit +## explicit; go 1.13 github.com/sirupsen/logrus # github.com/stretchr/testify v1.8.2 -## explicit +## explicit; go 1.13 github.com/stretchr/testify/assert # golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 +## explicit; go 1.17 golang.org/x/sys/internal/unsafeheader golang.org/x/sys/unix golang.org/x/sys/windows # gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f ## explicit # gopkg.in/yaml.v2 v2.4.0 -## explicit +## explicit; go 1.15 gopkg.in/yaml.v2 # gopkg.in/yaml.v3 v3.0.1 +## explicit gopkg.in/yaml.v3