From 9f820869c0d3cce562fe71584f05a4bfd9b40c37 Mon Sep 17 00:00:00 2001 From: Alik Saring Date: Mon, 26 Feb 2024 10:33:18 -0500 Subject: [PATCH 1/3] Upgrading gopkg version --- go.mod | 2 ++ go.sum | 3 ++- gofsutil_unix_test.go | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 757c53b..cf77235 100644 --- a/go.mod +++ b/go.mod @@ -6,3 +6,5 @@ require ( github.com/sirupsen/logrus v1.9.3 golang.org/x/sys v0.13.0 ) + +require gopkg.in/yaml.v3 v3.0.0-20220521103104-8f96da9f5d5e // indirect diff --git a/go.sum b/go.sum index 2ddc4a8..0853845 100644 --- a/go.sum +++ b/go.sum @@ -12,5 +12,6 @@ golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 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= +gopkg.in/yaml.v3 v3.0.0-20220521103104-8f96da9f5d5e h1:3i3ny04XV6HbZ2N1oIBw1UBYATHAOpo4tfTF83JM3Z0= +gopkg.in/yaml.v3 v3.0.0-20220521103104-8f96da9f5d5e/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/gofsutil_unix_test.go b/gofsutil_unix_test.go index 2254d12..1be2e33 100644 --- a/gofsutil_unix_test.go +++ b/gofsutil_unix_test.go @@ -149,7 +149,7 @@ func TestWWNToDevicePath(t *testing.T) { }, } for _, tt := range tests { - t.Run("", func(st *testing.T) { + t.Run("", func(_ *testing.T) { // Change directories workingDirectory, _ := os.Getwd() err := os.Chdir("/dev/disk/by-id") From 25661f39286f39feb3cf263f68b16e2e61baef60 Mon Sep 17 00:00:00 2001 From: Alik Saring Date: Mon, 26 Feb 2024 10:44:49 -0500 Subject: [PATCH 2/3] Upgrading gopkg version --- .github/workflows/linters.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linters.yaml b/.github/workflows/linters.yaml index 36bbba2..8e0794b 100644 --- a/.github/workflows/linters.yaml +++ b/.github/workflows/linters.yaml @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/setup-go@v4 with: - go-version: "1.20" + go-version: "1.22" cache: false - name: Checkout the code uses: actions/checkout@v4.1.0 From 57d8e7ae92aedfd243381a9e8b012a5b4e8f37f0 Mon Sep 17 00:00:00 2001 From: Alik Saring Date: Mon, 26 Feb 2024 10:54:56 -0500 Subject: [PATCH 3/3] Upgrading gopkg version --- .github/workflows/linters.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linters.yaml b/.github/workflows/linters.yaml index 8e0794b..0221dee 100644 --- a/.github/workflows/linters.yaml +++ b/.github/workflows/linters.yaml @@ -14,7 +14,7 @@ jobs: name: golangci-lint runs-on: ubuntu-latest steps: - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: go-version: "1.22" cache: false @@ -24,7 +24,7 @@ jobs: run: | go mod vendor - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: - version: v1.53 + version: latest skip-cache: true