From 55bfc8c04d0058779cba0ef2a834ac47561aa878 Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Mon, 14 Jul 2025 14:44:46 +1000 Subject: [PATCH] chore: upgrade all Go packages and Hermit packages --- .golangci.yml | 34 +++++++++++-------- bin/{.go-1.19.3.pkg => .go-1.24.5.pkg} | 0 ...t-1.50.1.pkg => .golangci-lint-1.64.8.pkg} | 0 ...aser-1.15.0.pkg => .goreleaser-1.26.2.pkg} | 0 bin/{.jq-1.6.pkg => .jq-1.8.1.pkg} | 0 ...check-0.8.0.pkg => .shellcheck-0.10.0.pkg} | 0 bin/go | 2 +- bin/gofmt | 2 +- bin/golangci-lint | 2 +- bin/goreleaser | 2 +- bin/jq | 2 +- bin/shellcheck | 2 +- go.mod | 16 +++++---- go.sum | 27 ++++++++------- 14 files changed, 48 insertions(+), 41 deletions(-) rename bin/{.go-1.19.3.pkg => .go-1.24.5.pkg} (100%) rename bin/{.golangci-lint-1.50.1.pkg => .golangci-lint-1.64.8.pkg} (100%) rename bin/{.goreleaser-1.15.0.pkg => .goreleaser-1.26.2.pkg} (100%) rename bin/{.jq-1.6.pkg => .jq-1.8.1.pkg} (100%) rename bin/{.shellcheck-0.8.0.pkg => .shellcheck-0.10.0.pkg} (100%) diff --git a/.golangci.yml b/.golangci.yml index a8d1b6c..4cef7cd 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -52,6 +52,10 @@ linters: - prealloc - forbidigo - goprintffuncname + - depguard + - intrange + - mnd + - tagalign linters-settings: govet: @@ -74,22 +78,22 @@ issues: exclude-use-default: false exclude: # Captured by errcheck. - - '^(G104|G204):' + - "^(G104|G204):" # Very commonly not checked. - 'Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked' - 'exported method (.*\.MarshalJSON|.*\.UnmarshalJSON|.*\.EntityURN|.*\.GoString|.*\.Pos) should have comment or be unexported' - - 'comment on exported method' - - 'composite literal uses unkeyed fields' + - "comment on exported method" + - "composite literal uses unkeyed fields" - 'declaration of "err" shadows declaration' - - 'should not use dot imports' - - 'Potential file inclusion via variable' - - 'should have comment or be unexported' - - 'comment on exported var .* should be of the form' - - 'at least one file in a package should have a package comment' - - 'string literal contains the Unicode' - - 'methods on the same type should have the same receiver name' - - '_TokenType_name should be _TokenTypeName' - - '`_TokenType_map` should be `_TokenTypeMap`' - - 'rewrite if-else to switch statement' - - 'comment.*should be of the form' - - 'should have comment' + - "should not use dot imports" + - "Potential file inclusion via variable" + - "should have comment or be unexported" + - "comment on exported var .* should be of the form" + - "at least one file in a package should have a package comment" + - "string literal contains the Unicode" + - "methods on the same type should have the same receiver name" + - "_TokenType_name should be _TokenTypeName" + - "`_TokenType_map` should be `_TokenTypeMap`" + - "rewrite if-else to switch statement" + - "comment.*should be of the form" + - "should have comment" diff --git a/bin/.go-1.19.3.pkg b/bin/.go-1.24.5.pkg similarity index 100% rename from bin/.go-1.19.3.pkg rename to bin/.go-1.24.5.pkg diff --git a/bin/.golangci-lint-1.50.1.pkg b/bin/.golangci-lint-1.64.8.pkg similarity index 100% rename from bin/.golangci-lint-1.50.1.pkg rename to bin/.golangci-lint-1.64.8.pkg diff --git a/bin/.goreleaser-1.15.0.pkg b/bin/.goreleaser-1.26.2.pkg similarity index 100% rename from bin/.goreleaser-1.15.0.pkg rename to bin/.goreleaser-1.26.2.pkg diff --git a/bin/.jq-1.6.pkg b/bin/.jq-1.8.1.pkg similarity index 100% rename from bin/.jq-1.6.pkg rename to bin/.jq-1.8.1.pkg diff --git a/bin/.shellcheck-0.8.0.pkg b/bin/.shellcheck-0.10.0.pkg similarity index 100% rename from bin/.shellcheck-0.8.0.pkg rename to bin/.shellcheck-0.10.0.pkg diff --git a/bin/go b/bin/go index 2b403c5..37bd1da 120000 --- a/bin/go +++ b/bin/go @@ -1 +1 @@ -.go-1.19.3.pkg \ No newline at end of file +.go-1.24.5.pkg \ No newline at end of file diff --git a/bin/gofmt b/bin/gofmt index 2b403c5..37bd1da 120000 --- a/bin/gofmt +++ b/bin/gofmt @@ -1 +1 @@ -.go-1.19.3.pkg \ No newline at end of file +.go-1.24.5.pkg \ No newline at end of file diff --git a/bin/golangci-lint b/bin/golangci-lint index 141cc54..ffc9dae 120000 --- a/bin/golangci-lint +++ b/bin/golangci-lint @@ -1 +1 @@ -.golangci-lint-1.50.1.pkg \ No newline at end of file +.golangci-lint-1.64.8.pkg \ No newline at end of file diff --git a/bin/goreleaser b/bin/goreleaser index 76fa6d9..90ecbf1 120000 --- a/bin/goreleaser +++ b/bin/goreleaser @@ -1 +1 @@ -.goreleaser-1.15.0.pkg \ No newline at end of file +.goreleaser-1.26.2.pkg \ No newline at end of file diff --git a/bin/jq b/bin/jq index d7e067b..db879f9 120000 --- a/bin/jq +++ b/bin/jq @@ -1 +1 @@ -.jq-1.6.pkg \ No newline at end of file +.jq-1.8.1.pkg \ No newline at end of file diff --git a/bin/shellcheck b/bin/shellcheck index b3bc96f..a67dcb9 120000 --- a/bin/shellcheck +++ b/bin/shellcheck @@ -1 +1 @@ -.shellcheck-0.8.0.pkg \ No newline at end of file +.shellcheck-0.10.0.pkg \ No newline at end of file diff --git a/go.mod b/go.mod index c41440a..c39415d 100644 --- a/go.mod +++ b/go.mod @@ -1,20 +1,22 @@ module github.com/thnxdev/happy -go 1.19 +go 1.23.0 + +toolchain go1.24.5 require ( - github.com/alecthomas/kong v0.7.1 + github.com/alecthomas/kong v1.12.0 github.com/fatih/structtag v1.2.0 - golang.org/x/tools v0.3.0 + golang.org/x/tools v0.35.0 ) require ( - github.com/alecthomas/repr v0.1.0 // indirect + github.com/alecthomas/repr v0.4.0 // indirect github.com/hexops/gotextdiff v1.0.3 // indirect + golang.org/x/sync v0.16.0 // indirect ) require ( - github.com/alecthomas/assert/v2 v2.2.0 - golang.org/x/mod v0.7.0 // indirect - golang.org/x/sys v0.2.0 // indirect + github.com/alecthomas/assert/v2 v2.11.0 + golang.org/x/mod v0.26.0 // indirect ) diff --git a/go.sum b/go.sum index e6110c8..3df9f54 100644 --- a/go.sum +++ b/go.sum @@ -1,17 +1,18 @@ -github.com/alecthomas/assert/v2 v2.2.0 h1:f6L/b7KE2bfA+9O4FL3CM/xJccDEwPVYd5fALBiuwvw= -github.com/alecthomas/assert/v2 v2.2.0/go.mod h1:b/+1DI2Q6NckYi+3mXyH3wFb8qG37K/DuK80n7WefXA= -github.com/alecthomas/kong v0.7.1 h1:azoTh0IOfwlAX3qN9sHWTxACE2oV8Bg2gAwBsMwDQY4= -github.com/alecthomas/kong v0.7.1/go.mod h1:n1iCIO2xS46oE8ZfYCNDqdR0b0wZNrXAIAqro/2132U= -github.com/alecthomas/repr v0.1.0 h1:ENn2e1+J3k09gyj2shc0dHr/yjaWSHRlrJ4DPMevDqE= -github.com/alecthomas/repr v0.1.0/go.mod h1:2kn6fqh/zIyPLmm3ugklbEi5hg5wS435eygvNfaDQL8= +github.com/alecthomas/assert/v2 v2.11.0 h1:2Q9r3ki8+JYXvGsDyBXwH3LcJ+WK5D0gc5E8vS6K3D0= +github.com/alecthomas/assert/v2 v2.11.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k= +github.com/alecthomas/kong v1.12.0 h1:oKd/0fHSdajj5PfGDd3ScvEvpVJf9mT2mb5r9xYadYM= +github.com/alecthomas/kong v1.12.0/go.mod h1:p2vqieVMeTAnaC83txKtXe8FLke2X07aruPWXyMPQrU= +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/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4= github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= 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/mod v0.7.0 h1:LapD9S96VoQRhi/GrNTqeBJFrUjs5UHCAtTlgwA5oZA= -golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= -golang.org/x/sys v0.2.0 h1:ljd4t30dBnAvMZaQCevtY0xLLD0A+bRZXbgLMLU1F/A= -golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/tools v0.3.0 h1:SrNbZl6ECOS1qFzgTdQfWXZM9XBkiA6tkFrH9YSTPHM= -golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k= +golang.org/x/mod v0.26.0 h1:EGMPT//Ezu+ylkCijjPc+f4Aih7sZvaAr+O3EHBxvZg= +golang.org/x/mod v0.26.0/go.mod h1:/j6NAhSk8iQ723BGAUyoAcn7SlD7s15Dp9Nd/SfeaFQ= +golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw= +golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= +golang.org/x/tools v0.35.0 h1:mBffYraMEf7aa0sB+NuKnuCy8qI/9Bughn8dC2Gu5r0= +golang.org/x/tools v0.35.0/go.mod h1:NKdj5HkL/73byiZSJjqJgKn3ep7KjFkBOkR/Hps3VPw=