diff --git a/.github/workflows/linters.yaml b/.github/workflows/linters.yaml index 36bbba2..0221dee 100644 --- a/.github/workflows/linters.yaml +++ b/.github/workflows/linters.yaml @@ -14,9 +14,9 @@ jobs: name: golangci-lint runs-on: ubuntu-latest steps: - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: - go-version: "1.20" + go-version: "1.22" cache: false - name: Checkout the code uses: actions/checkout@v4.1.0 @@ -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 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")