From 71eb012dd2249d0118c9443b7b73cd596cd4e62b Mon Sep 17 00:00:00 2001 From: Shawn Hsu Date: Fri, 11 Sep 2026 14:25:26 +0800 Subject: [PATCH 1/2] fix(deps): revert go-micro.dev/v5 to v5.3.0 #90's grouped minor-and-patch bump took go-micro.dev/v5 from 5.3.0 to 5.30.0 along with 21 unrelated packages. Somewhere in that range, go-micro.dev/v5 dropped the util/addr package, which github.com/micro/plugins/v5/server/http@v1.0.2 still imports -- v1.0.2 is the latest release of that plugin, so there's no forward fix. This repo itself only touches go-micro.dev/v5/logger (pkg/log, pkg/openstack), never util/addr or the http server plugin, so pinning back to 5.3.0 doesn't affect anything this repo actually does with it. But any downstream consumer that also depends directly on micro/plugins/v5/server/http (e.g. cubecmp) gets go-micro.dev/v5 dragged up to 5.30.0 transitively via Go's minimal version selection the moment it updates this module -- which breaks their build with no way to fix it on their end. go mod tidy only touched the two go-micro.dev/v5 lines plus a handful of already-resolved transitive checksums; none of #90's other 21 package bumps are affected. Signed-off-by: Shawn Hsu Co-Authored-By: Claude Sonnet 5 --- go.mod | 2 +- go.sum | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index 5d23bd5..53d960b 100644 --- a/go.mod +++ b/go.mod @@ -23,7 +23,7 @@ require ( github.com/slack-go/slack v0.29.0 github.com/stretchr/testify v1.12.1 github.com/wneessen/go-mail v0.8.1 - go-micro.dev/v5 v5.30.0 + go-micro.dev/v5 v5.3.0 go.mongodb.org/mongo-driver v1.17.9 go.uber.org/zap v1.28.0 golang.org/x/crypto v0.55.0 diff --git a/go.sum b/go.sum index ce18c2e..cce905f 100644 --- a/go.sum +++ b/go.sum @@ -264,9 +264,8 @@ github.com/go-openapi/validate v0.20.3/go.mod h1:goDdqVGiigM3jChcrYJxD2joalke3ZX github.com/go-resty/resty/v2 v2.17.2 h1:FQW5oHYcIlkCNrMD2lloGScxcHJ0gkjshV3qcQAyHQk= github.com/go-resty/resty/v2 v2.17.2/go.mod h1:kCKZ3wWmwJaNc7S29BRtUhJwy7iqmn+2mLtQrOyQlVA= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= +github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y= github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg= -github.com/go-sql-driver/mysql v1.9.2 h1:4cNKDYQ1I84SXslGddlsrMhc8k4LeDVj6Ad6WRjiHuU= -github.com/go-sql-driver/mysql v1.9.2/go.mod h1:qn46aNg1333BRMNU69Lq93t8du/dwxI64Gl8i5p1WMU= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= @@ -348,7 +347,6 @@ github.com/hashicorp/go-retryablehttp v0.7.8 h1:ylXZWnqa7Lhqpk0L1P1LzDtGcCR0rPVU github.com/hashicorp/go-retryablehttp v0.7.8/go.mod h1:rjiScheydd+CxvumBsIrFKlx3iS0jrZ7LvzFGFmuKbw= github.com/hashicorp/go-version v1.9.0 h1:CeOIz6k+LoN3qX9Z0tyQrPtiB1DFYRPfCIBtaXPSCnA= github.com/hashicorp/go-version v1.9.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= github.com/hashicorp/golang-lru/arc/v2 v2.0.5 h1:l2zaLDubNhW4XO3LnliVj0GXO3+/CGNJAg1dcN2Fpfw= github.com/hashicorp/golang-lru/arc/v2 v2.0.5/go.mod h1:ny6zBSQZi2JxIeYcv7kt2sH2PXJtirBN7RDhRpxPkxU= github.com/hashicorp/golang-lru/v2 v2.0.5 h1:wW7h1TG88eUIJ2i69gaE3uNVtEPIagzhGvHgwfx2Vm4= @@ -431,9 +429,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0= github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= +github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU= github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= -github.com/mattn/go-sqlite3 v1.14.34 h1:3NtcvcUnFBPsuRcno8pUtupspG/GM+9nZ88zgJcp6Zk= -github.com/mattn/go-sqlite3 v1.14.34/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/micro/plugins/v5/logger/zap v1.0.2 h1:+anppx4behnmm1wJLza6j29u41cFZuclR8MfmwCxGxo= github.com/micro/plugins/v5/logger/zap v1.0.2/go.mod h1:JbcmLExYcK5g43tYDIVM80jNwABciOaXfOJ0GZfdmXA= github.com/miekg/dns v1.1.57 h1:Jzi7ApEIzwEPLHWRcafCN9LZSBbqQpxjt/wpgvg7wcM= @@ -592,8 +589,8 @@ github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78/go.mod h1:aL8wCCfTfS github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/zclconf/go-cty v1.18.1 h1:yEGE8M4iIZlyKQURZNb2SnEyZlZHUcBCnx6KF81KuwM= github.com/zclconf/go-cty v1.18.1/go.mod h1:qpnV6EDNgC1sns/AleL1fvatHw72j+S+nS+MJ+T2CSg= -go-micro.dev/v5 v5.30.0 h1:OHvY8LV39Pk/pWUhxihCa26q25SpDDnfwU3n6z9R2Vs= -go-micro.dev/v5 v5.30.0/go.mod h1:eWTF7KQRYXmjm9s5p4Pzrk5CObHQKlh6B/u573gd/Qo= +go-micro.dev/v5 v5.3.0 h1:XjFydJiQHU14zEA/JAXXR7aJVbwIwBjUajLrqi0wrJI= +go-micro.dev/v5 v5.3.0/go.mod h1:QMSZE1zIaB1TY0JI7AsePls8+slRzqWz4MKyoQMNNcM= go.mongodb.org/mongo-driver v1.0.3/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= go.mongodb.org/mongo-driver v1.1.1/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= go.mongodb.org/mongo-driver v1.3.0/go.mod h1:MSWZXKOynuguX+JSvwP8i+58jYCXxbia8HS3gZBapIE= From 2bfc28e19b4222e4b057422022a948ded2c8f2c5 Mon Sep 17 00:00:00 2001 From: Shawn Hsu Date: Fri, 11 Sep 2026 14:26:58 +0800 Subject: [PATCH 2/2] fix(ci): derive the unit-test job's Go version from go.mod go.mod was bumped to require go 1.26.0 (2026-09-07's minor-and-patch dependency update), but ci.yaml still hard-pinned actions/setup-go to 1.25 -- GOTOOLCHAIN=local means it never auto-upgrades, so the mockery step has failed with "go.mod requires go >= 1.26.0" on every PR since, this one included. Switching to go-version-file avoids the same drift happening again next time go.mod's Go version moves. Signed-off-by: Shawn Hsu Co-Authored-By: Claude Sonnet 5 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 451112e..f1d392c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,7 +16,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v7 with: - go-version: '1.25' + go-version-file: 'go.mod' - name: Setup mockery uses: brokeyourbike/go-mockery-action@v0