diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 019b9ff..a42d1bf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,6 +35,6 @@ jobs: - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 with: go-version: stable - - uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc + - uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 with: - version: v1.55.2 + version: v1.56.2 diff --git a/.golangci.yml b/.golangci.yml index e24e49e..35fc90b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,3 +1,5 @@ +go-version: '1.21' + linters: enable: - asciicheck @@ -22,6 +24,7 @@ linters: - gci - ginkgolinter - gocheckcompilerdirectives + - gochecksumtype - goconst - gocritic - gocyclo @@ -66,12 +69,14 @@ linters: - reassign - rowserrcheck - sloglint + - spancheck - sqlclosecheck - staticcheck - stylecheck - tagalign - tagliatelle - tenv + - testifylint - testpackage - thelper - typecheck @@ -81,6 +86,7 @@ linters: - usestdlibvars - wastedassign - whitespace + - zerologlint disable: - asasalint - cyclop @@ -110,7 +116,6 @@ linters-settings: - prefix(github.com/twpayne/go-vfs) gofumpt: extra-rules: true - go-version: '1.20' module-path: github.com/twpayne/go-vfs goimports: local-prefixes: github.com/twpayne/go-vfs diff --git a/go.mod b/go.mod index d61895f..07d056b 100644 --- a/go.mod +++ b/go.mod @@ -1,13 +1,13 @@ module github.com/twpayne/go-vfs/v5 -go 1.19 +go 1.21 require ( - github.com/alecthomas/assert/v2 v2.5.0 - golang.org/x/sys v0.16.0 + github.com/alecthomas/assert/v2 v2.6.0 + golang.org/x/sys v0.17.0 ) require ( - github.com/alecthomas/repr v0.3.0 // indirect + github.com/alecthomas/repr v0.4.0 // indirect github.com/hexops/gotextdiff v1.0.3 // indirect ) diff --git a/go.sum b/go.sum index b72ce18..54729fc 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ -github.com/alecthomas/assert/v2 v2.5.0 h1:OJKYg53BQx06/bMRBSPDCO49CbCDNiUQXwdoNrt6x5w= -github.com/alecthomas/assert/v2 v2.5.0/go.mod h1:fw5suVxB+wfYJ3291t0hRTqtGzFYdSwstnRQdaQx2DM= -github.com/alecthomas/repr v0.3.0 h1:NeYzUPfjjlqHY4KtzgKJiWd6sVq2eNUPTi34PiFGjY8= -github.com/alecthomas/repr v0.3.0/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4= +github.com/alecthomas/assert/v2 v2.6.0 h1:o3WJwILtexrEUk3cUVal3oiQY2tfgr/FHWiz/v2n4FU= +github.com/alecthomas/assert/v2 v2.6.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k= +github.com/alecthomas/repr v0.4.0 h1:GhI2A8MACjfegCPVq9f1FLvIBS+DrQ2KQBFZP1iFzXc= +github.com/alecthomas/repr v0.4.0/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= -golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= -golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y= +golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=