From 1e04da6df370e204d223c1c43873a5b27bc8075d Mon Sep 17 00:00:00 2001 From: "F." Date: Sun, 13 Sep 2026 19:29:13 +0300 Subject: [PATCH] build(deps): bump Go toolchain to 1.27.1 and update tooling/deps - Bump Go directive to 1.27.1 in go.mod, Makefile, .golangci.yaml, .project-settings.env, and pre-commit hooks - Update golangci-lint to v2.13.2, buf to v1.73.0 - Update pre-commit hooks: hadolint v2.15.1, cspell v10.2.0, markdownlint v0.18.1 - Bump go.mod deps: ewrap v1.5.2, sectools v1.2.9, go-brrr v1.1.0, go-fiber/schema v1.8.6, and golang.org/x/{crypto,net,oauth2,sync,sys,text} - Reorder exhaustruct/exhaustruct_v5 disable entries in .golangci.yaml - Update CHANGELOG.md and go.sum accordingly --- .golangci.yaml | 4 ++-- .pre-commit-config.yaml | 6 ++--- .pre-commit/golangci-lint-hook | 2 +- .pre-commit/unit-test-hook | 2 +- .project-settings.env | 6 ++--- CHANGELOG.md | 2 +- Makefile | 6 ++--- go.mod | 22 ++++++++--------- go.sum | 44 +++++++++++++++++----------------- 9 files changed, 47 insertions(+), 47 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 1b61579..a1c02d7 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -42,7 +42,7 @@ run: # Define the Go version limit. # Mainly related to generics support since go1.18. # Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.17 - go: "1.27.0" + go: "1.27.1" linters: # Enable specific linter @@ -52,8 +52,8 @@ linters: - gomodguard_v2 - wsl_v5 disable: - - exhaustruct_v5 - exhaustruct + - exhaustruct_v5 - depguard - gomodguard - ireturn diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d8e5989..9ae1d38 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,11 +37,11 @@ repos: types: [ file, yaml ] entry: yamllint --strict -f parsable - repo: https://github.com/hadolint/hadolint - rev: v2.14.0 + rev: v2.15.1 hooks: - id: hadolint-docker - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v10.0.1 + rev: v10.2.0 hooks: # Spell check changed files - id: cspell @@ -57,7 +57,7 @@ repos: stages: [ commit-msg ] always_run: true - repo: https://github.com/markdownlint/markdownlint.git - rev: v0.17.0 + rev: v0.18.1 hooks: - id: markdownlint name: Markdownlint diff --git a/.pre-commit/golangci-lint-hook b/.pre-commit/golangci-lint-hook index 4fef37c..178d1c3 100755 --- a/.pre-commit/golangci-lint-hook +++ b/.pre-commit/golangci-lint-hook @@ -23,7 +23,7 @@ if [[ -f "${ROOT_DIR}/.project-settings.env" ]]; then # shellcheck disable=SC1090 source "${ROOT_DIR}/.project-settings.env" fi -GOLANGCI_LINT_VERSION="${GOLANGCI_LINT_VERSION:-v2.13.1}" +GOLANGCI_LINT_VERSION="${GOLANGCI_LINT_VERSION:-v2.13.2}" # ####################################### # Install dependencies to run the pre-commit hook diff --git a/.pre-commit/unit-test-hook b/.pre-commit/unit-test-hook index f633902..af2b107 100755 --- a/.pre-commit/unit-test-hook +++ b/.pre-commit/unit-test-hook @@ -21,7 +21,7 @@ hook() { local root_dir root_dir=$(git rev-parse --show-toplevel) - local toolchain_version="1.27.0" + local toolchain_version="1.27.1" if [[ -f "${root_dir}/.project-settings.env" ]]; then # shellcheck disable=SC1090 source "${root_dir}/.project-settings.env" diff --git a/.project-settings.env b/.project-settings.env index 3393065..a68d9a8 100644 --- a/.project-settings.env +++ b/.project-settings.env @@ -1,5 +1,5 @@ -GOLANGCI_LINT_VERSION=v2.13.1 -BUF_VERSION=v1.72.0 -GO_VERSION=1.27.0 +GOLANGCI_LINT_VERSION=v2.13.2 +BUF_VERSION=v1.73.0 +GO_VERSION=1.27.1 GCI_PREFIX=github.com/hyp3rd/hypercache PROTO_ENABLED=false diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c19211..dc7d7f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -823,7 +823,7 @@ Worth surfacing for contributors: `tests/merkle_node_helper.go`, `pkg/backend/dist_memory_test_helpers.go::EnableHTTPForTest` (build tag `test`). - **Lint discipline:** 35 `nolint` directives total across the repo, each with a one-line justification. - golangci-lint v2.13.1 runs clean with `--build-tags test`. + golangci-lint v2.13.2 runs clean with `--build-tags test`. ### Removed diff --git a/Makefile b/Makefile index 5896ad0..9bf18ef 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ include .project-settings.env -GOLANGCI_LINT_VERSION ?= v2.13.1 -BUF_VERSION ?= v1.72.0 -GO_VERSION ?= 1.27.0 +GOLANGCI_LINT_VERSION ?= v2.13.2 +BUF_VERSION ?= v1.73.0 +GO_VERSION ?= 1.27.1 GCI_PREFIX ?= github.com/hyp3rd/hypercache PROTO_ENABLED ?= true diff --git a/go.mod b/go.mod index 9ee321e..78621ca 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/hyp3rd/hypercache -go 1.27.0 +go 1.27.1 require ( github.com/cespare/xxhash/v2 v2.3.0 @@ -8,8 +8,8 @@ require ( github.com/go-jose/go-jose/v4 v4.1.5 github.com/goccy/go-json v0.10.6 github.com/gofiber/fiber/v3 v3.5.0 - github.com/hyp3rd/ewrap v1.5.1 - github.com/hyp3rd/sectools v1.2.8 + github.com/hyp3rd/ewrap v1.5.2 + github.com/hyp3rd/sectools v1.2.9 github.com/redis/go-redis/v9 v9.22.0 github.com/stretchr/testify v1.12.1 github.com/ugorji/go/codec v1.3.2 @@ -18,23 +18,23 @@ require ( go.opentelemetry.io/otel/sdk v1.46.0 go.opentelemetry.io/otel/sdk/metric v1.46.0 go.opentelemetry.io/otel/trace v1.46.0 - golang.org/x/crypto v0.56.0 - golang.org/x/oauth2 v0.36.0 - golang.org/x/sync v0.22.0 + golang.org/x/crypto v0.57.0 + golang.org/x/oauth2 v0.37.0 + golang.org/x/sync v0.23.0 gopkg.in/yaml.v3 v3.0.1 ) require ( github.com/go-logr/logr v1.4.4 // indirect github.com/go-logr/stdr v1.2.2 // indirect - github.com/gofiber/schema v1.8.5 // indirect + github.com/gofiber/schema v1.8.6 // indirect github.com/gofiber/utils/v2 v2.5.1 // indirect github.com/google/uuid v1.6.0 // indirect github.com/klauspost/compress v1.20.0 // indirect github.com/kr/text v0.2.0 // indirect github.com/mattn/go-colorable v0.1.15 // indirect github.com/mattn/go-isatty v0.0.24 // indirect - github.com/molecule-man/go-brrr v1.0.1 // indirect + github.com/molecule-man/go-brrr v1.1.0 // indirect github.com/philhofer/fwd v1.2.0 // indirect github.com/tinylib/msgp v1.6.4 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect @@ -42,7 +42,7 @@ require ( go.opentelemetry.io/auto/sdk v1.2.1 // indirect go.uber.org/atomic v1.11.0 // indirect go.yaml.in/yaml/v3 v3.0.5 // indirect - golang.org/x/net v0.58.0 // indirect - golang.org/x/sys v0.47.0 // indirect - golang.org/x/text v0.41.0 // indirect + golang.org/x/net v0.59.0 // indirect + golang.org/x/sys v0.48.0 // indirect + golang.org/x/text v0.42.0 // indirect ) diff --git a/go.sum b/go.sum index 56d712b..dfa9e78 100644 --- a/go.sum +++ b/go.sum @@ -20,18 +20,18 @@ github.com/goccy/go-json v0.10.6 h1:p8HrPJzOakx/mn/bQtjgNjdTcN+/S6FcG2CTtQOrHVU= github.com/goccy/go-json v0.10.6/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M= github.com/gofiber/fiber/v3 v3.5.0 h1:dk7TOUH6DXJGtOLsN2XEG+0ZML7cznzHILTVozbNEK8= github.com/gofiber/fiber/v3 v3.5.0/go.mod h1:GOVDTW+gjJvfe0iJyVujbQ1Lnx+JUjFySJRI/9/xX/w= -github.com/gofiber/schema v1.8.5 h1:f5J8jjPH5Q6ZJIb8oJxzRh+K8TxPx9Zm478Xkjj0dMg= -github.com/gofiber/schema v1.8.5/go.mod h1:85qQG6r0X0g4vKWxDdPgEVOH2eY+0mlBd950Nq+NldY= +github.com/gofiber/schema v1.8.6 h1:xVlbSg3vsyKVlfzRBps2tJ7pHx1d8mSgiaJye6Lb3xs= +github.com/gofiber/schema v1.8.6/go.mod h1:Cxh3loYVG3FLA7FzW4C5G83pL/pmCmAnuaIJ5y2HwkU= github.com/gofiber/utils/v2 v2.5.1 h1:Yrt/ljbfsgnDSHymoMvVX5PFrb9kCV/OJnDu6sYuT4A= github.com/gofiber/utils/v2 v2.5.1/go.mod h1:5GyHTNQA1I6Qwlw7BWxQsZl8iuFS4yPjLFck+wYR304= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/hyp3rd/ewrap v1.5.1 h1:rnLaig+rnpBYkL7vQsvLUJGQpCLa/Yl5RRAnWjphJPs= -github.com/hyp3rd/ewrap v1.5.1/go.mod h1:Pbote45XDYyodYzdcUH7xnWmnI6SSewbOYtTlRSsfvw= -github.com/hyp3rd/sectools v1.2.8 h1:JuZXI+0ttXzJ3DoRYpgi1fupYFGOUv0zsdSMQRwVAX8= -github.com/hyp3rd/sectools v1.2.8/go.mod h1:AUIx7NT3YjZI+ykQikURwpYvQsOqVIJ98rBtMYDo8sk= +github.com/hyp3rd/ewrap v1.5.2 h1:JeTKz6KeCJISg1nwzjEWvv9G16U1JMm0Yt4Vj8jdaHk= +github.com/hyp3rd/ewrap v1.5.2/go.mod h1:SmAVKUTUalVIYoAcPP9WpClOnl29rIKM7D3oPpG5jik= +github.com/hyp3rd/sectools v1.2.9 h1:+EFXx28b/U+J/NIOmEGHG7LIcccrY4LPsZ6Q/S7dtCk= +github.com/hyp3rd/sectools v1.2.9/go.mod h1:XSS2rdakrFM9b3EHbBHGnPzycdbhNizoCoxr3BTGByw= github.com/klauspost/compress v1.20.0 h1:a3C1ke2ohxFymNlb2HWAHjDeKCI90scRskErZkR0ezA= github.com/klauspost/compress v1.20.0/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI= github.com/klauspost/cpuid/v2 v2.2.10 h1:tBs3QSyvjDyFTq3uoc/9xFpCuOsJQFNPiAhYdw2skhE= @@ -44,8 +44,8 @@ github.com/mattn/go-colorable v0.1.15 h1:+u9SLTRGnXv73cEsnsmoZBom+dMU88B2M0aDcWy github.com/mattn/go-colorable v0.1.15/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= github.com/mattn/go-isatty v0.0.24 h1:tGZZoVgT/KiqK1c8ocVLeDS8BSWMRd47J3Lbz7vsReI= github.com/mattn/go-isatty v0.0.24/go.mod h1:nMCL3Zebbrt45jsMDgnfIwz6ydEQApk5oEI3HqDio6A= -github.com/molecule-man/go-brrr v1.0.1 h1:cEjgx8hgNw6UGdhQ94SPDbPkKuRbkUcxBO3IzbGpA/o= -github.com/molecule-man/go-brrr v1.0.1/go.mod h1:7ybW6/7gA3oKY45jOfVNjSJDtrr6ea4tzbsTkjmQDC4= +github.com/molecule-man/go-brrr v1.1.0 h1:rLBGSXA393y+5ttCBLkW34CHESop5tahrOFxVv/XDEU= +github.com/molecule-man/go-brrr v1.1.0/go.mod h1:7ybW6/7gA3oKY45jOfVNjSJDtrr6ea4tzbsTkjmQDC4= github.com/philhofer/fwd v1.2.0 h1:e6DnBTl7vGY+Gz322/ASL4Gyp1FspeMvx1RNDoToZuM= github.com/philhofer/fwd v1.2.0/go.mod h1:RqIHx9QI14HlwKwm98g9Re5prTQ6LdeRQn+gXJFxsJM= github.com/redis/go-redis/v9 v9.22.0 h1:laDvpYXTJtZLloinw1fA5Kqd6HAEH2XKxOkG/PDq2F0= @@ -88,20 +88,20 @@ go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= -golang.org/x/crypto v0.56.0 h1:GUh5Ii4J5jtcseSMiRqr1jXCNHoxjeV9Fmekc2oLy6Y= -golang.org/x/crypto v0.56.0/go.mod h1:OMW5y6CY9l38uPLmxU6l6pwcXp1obtLo3e6gT7gQR2I= -golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To= -golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU= -golang.org/x/oauth2 v0.36.0 h1:peZ/1z27fi9hUOFCAZaHyrpWG5lwe0RJEEEeH0ThlIs= -golang.org/x/oauth2 v0.36.0/go.mod h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7Q= -golang.org/x/sync v0.22.0 h1:SZjpbeLmrCk4xhRSZFNZW5gFUeCeFgjekvI/+gfScek= -golang.org/x/sync v0.22.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= -golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs= -golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= -golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8= -golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M= -golang.org/x/tools v0.48.0 h1:3+hClM1aLL5mjMKm5ovokw9epgRXPuu2tILgismM6RE= -golang.org/x/tools v0.48.0/go.mod h1:08xX0orndb/F7jJxGDicx061tyd5pcMto75YMAXr6lk= +golang.org/x/crypto v0.57.0 h1:3ZVCjf8Ggz7zneR/EHRVx68Ctf+2pmIMP2UFhh9cC6M= +golang.org/x/crypto v0.57.0/go.mod h1:Fdz0i5U6CoizGwLda9DttjSk6qlZo25zYNtR+ycvuZA= +golang.org/x/net v0.59.0 h1:5zfYln+w5XCxwrnMMJPufRgNoXEaGxl0wo5GqPXyues= +golang.org/x/net v0.59.0/go.mod h1:2DA/G1UfVbCpQPeWTmMPGY7Cs2PkBkwu743bVX5PIVg= +golang.org/x/oauth2 v0.37.0 h1:JUlcxA8oAtauLfiH8FX2/FkAWHAdi0QtGCGc+hofE98= +golang.org/x/oauth2 v0.37.0/go.mod h1:IxwZNxUULJmpBFf9K/9NTMSIfZZuvuTy1gGxhigP/58= +golang.org/x/sync v0.23.0 h1:KameEIfc1IkluZyXWLn39Wd4tURc6GbCiISGiZm2bQk= +golang.org/x/sync v0.23.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= +golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo= +golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= +golang.org/x/text v0.42.0 h1:JbOZXgfeCPU9gacVtYliJqOhD+zhrEqK4LfdpmlUZqI= +golang.org/x/text v0.42.0/go.mod h1:ojzP1Z+2QtioaF8DTtO8K5q7JWVVYwZKenzujK0Zd0E= +golang.org/x/tools v0.49.0 h1:3NI7VXzL9+1WZD52Dx2ttoPwD5DWrFGpl9mFZDlmisI= +golang.org/x/tools v0.49.0/go.mod h1:SJNXV9DBKT0UbdttsQjbfJlAE/q+y36++zo3uL3N0Oo= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=