diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4bd9c31..a8afa87 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,8 +10,8 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 + - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 - run: go build ./... - run: go test ./... - id: generate @@ -21,8 +21,8 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 - - uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 + - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 + - uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 with: - version: v1.52.2 + version: v1.59.1 diff --git a/.golangci.yml b/.golangci.yml index bc2dea9..62d9f86 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -7,30 +7,30 @@ linters: - containedctx - contextcheck - decorder - - depguard - dogsled - dupl - dupword - durationcheck + - err113 - errcheck - errchkjson - errname - errorlint - - execinquery - exhaustive - exportloopref + - fatcontext - forbidigo - forcetypeassert - gci - ginkgolinter - gocheckcompilerdirectives - gochecknoinits + - gochecksumtype - gocognit - goconst - gocritic - gocyclo - godot - - goerr113 - gofmt - gofumpt - goheader @@ -40,14 +40,17 @@ linters: - goprintffuncname - gosec - gosimple + - gosmopolitan - govet - grouper - importas + - inamedparam - ineffassign - interfacebloat - ireturn - loggercheck - makezero + - mirror - misspell - musttag - nakedret @@ -58,17 +61,23 @@ linters: - nolintlint - nonamedreturns - nosprintfhostport + - perfsprint - prealloc - predeclared - promlinter + - protogetter - reassign - revive - rowserrcheck + - sloglint + - spancheck - sqlclosecheck - staticcheck - stylecheck + - tagalign - tagliatelle - tenv + - testifylint - testpackage - thelper - tparallel @@ -79,9 +88,11 @@ linters: - usestdlibvars - wastedassign - whitespace + - zerologlint disable: + - canonicalheader - cyclop - - exhaustivestruct + - depguard - exhaustruct - funlen - gochecknoglobals @@ -91,7 +102,6 @@ linters: - maintidx - nlreturn - paralleltest - - structcheck # https://github.com/golangci/golangci-lint/issues/2649 - testableexamples - varnamelen - wrapcheck @@ -130,5 +140,5 @@ issues: - gosec path: "internal/" - linters: - - goerr113 + - err113 text: do not define dynamic errors, use wrapped static errors instead diff --git a/go.mod b/go.mod index acb6773..853cee5 100644 --- a/go.mod +++ b/go.mod @@ -3,8 +3,8 @@ module github.com/twpayne/go-kml/v3 go 1.21 require ( - github.com/alecthomas/assert/v2 v2.8.1 - github.com/twpayne/go-gpx v1.3.1 + github.com/alecthomas/assert/v2 v2.10.0 + github.com/twpayne/go-gpx v1.3.2 github.com/twpayne/go-polyline v1.1.1 github.com/twpayne/go-waypoint v0.1.0 ) @@ -13,6 +13,6 @@ require ( github.com/alecthomas/repr v0.4.0 // indirect github.com/hexops/gotextdiff v1.0.3 // indirect github.com/twpayne/go-geom v1.5.4 // indirect - golang.org/x/net v0.24.0 // indirect - golang.org/x/text v0.14.0 // indirect + golang.org/x/net v0.27.0 // indirect + golang.org/x/text v0.16.0 // indirect ) diff --git a/go.sum b/go.sum index e8b2cc8..1564a3f 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/alecthomas/assert/v2 v2.8.1 h1:YCxnYR6jjpfnEK5AK5SysALKdUEBPGH4Y7As6tBnDw0= -github.com/alecthomas/assert/v2 v2.8.1/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k= +github.com/alecthomas/assert/v2 v2.10.0 h1:jjRCHsj6hBJhkmhznrCzoNpbA3zqy0fYiUcYZP/GkPY= +github.com/alecthomas/assert/v2 v2.10.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/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -17,16 +17,16 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/twpayne/go-geom v1.5.4 h1:b8fiZd0SsEmQEeUdz2atT6KggF1KHiaZIi3DGi5p+sI= github.com/twpayne/go-geom v1.5.4/go.mod h1:Hw8RszQ2/d9Y/KfOm9CvUJo78BOoIA5g0e4P7JCVKvo= -github.com/twpayne/go-gpx v1.3.1 h1:V7fjRvQa4Hl5kEgft7JGOQYhOtPEBFbsd/5Eao4LgBM= -github.com/twpayne/go-gpx v1.3.1/go.mod h1:cOFdNmqGjdjb3POPoecMEUko160iS9AuJvknftGW7jI= +github.com/twpayne/go-gpx v1.3.2 h1:EdWLZDscyq2WzZD2fJJCUIHtLH57ZUIKsDT8KisjJcY= +github.com/twpayne/go-gpx v1.3.2/go.mod h1:srKQX/6dZGwNc2273H95Kim1GxsapjWESXxaw6jE6CQ= github.com/twpayne/go-polyline v1.1.1 h1:/tSF1BR7rN4HWj4XKqvRUNrCiYVMCvywxTFVofvDV0w= github.com/twpayne/go-polyline v1.1.1/go.mod h1:ybd9IWWivW/rlXPXuuckeKUyF3yrIim+iqA7kSl4NFY= github.com/twpayne/go-waypoint v0.1.0 h1:Ds5iK1+ag9MM9Y7Uiig1nzgD39Z402vYkpp1j+c/Y3Q= github.com/twpayne/go-waypoint v0.1.0/go.mod h1:iLAdRKZJUaMhj2nzYl9cLV3hbxol5vnI2VPmWLCDRuU= -golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= -golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= +golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=