From e6897ecda475bc5345a98f642c345b1b387b307c Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Sat, 11 Jul 2026 09:21:53 +0800 Subject: [PATCH] =?UTF-8?q?build(server):=20codes=20=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E6=94=B9=E4=BC=AA=E7=89=88=E6=9C=AC=20pin(=E7=BB=8F=20gitea),?= =?UTF-8?q?=E5=8E=BB=E6=9C=AC=E5=9C=B0=E8=B7=AF=E5=BE=84=20replace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit replace github.com/wangjia/codes => 本地路径 换成 require github.com/wangjia/codes v0.0.0-20260710045055-c772d5256794(gitea @ c772d52)。 本地/CI 需配 GOPRIVATE=github.com/wangjia/codes + git insteadOf(github→gitea ssh)。 交叉编译 linux/amd64 已验证:部署走本地编译+传二进制,目标机无需 go/gitea。 Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_013nMthbVEmQquxBRKb9Fj8u --- server/go.mod | 7 +------ server/go.sum | 2 ++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/server/go.mod b/server/go.mod index 72a2448..7265c43 100644 --- a/server/go.mod +++ b/server/go.mod @@ -17,7 +17,7 @@ require ( github.com/testcontainers/testcontainers-go v0.43.0 github.com/testcontainers/testcontainers-go/modules/mysql v0.43.0 github.com/testcontainers/testcontainers-go/modules/redis v0.43.0 - github.com/wangjia/codes v0.0.0-00010101000000-000000000000 + github.com/wangjia/codes v0.0.0-20260710045055-c772d5256794 golang.org/x/crypto v0.52.0 golang.org/x/term v0.43.0 google.golang.org/grpc v1.81.1 @@ -301,8 +301,3 @@ require ( mvdan.cc/xurls/v2 v2.6.0 // indirect pluginrpc.com/pluginrpc v0.5.0 // indirect ) - -// Validation-branch local replace, pinned to codes @ c772d525679441d0579df6e309deba2d60254ab5. -// Coordination item for merge: swap to a real published version (git insteadOf + -// GOPRIVATE=github.com/wangjia/codes on dev + CI runner), not a local filesystem path. -replace github.com/wangjia/codes => /Users/wangjia/code/codes diff --git a/server/go.sum b/server/go.sum index fe0b2f6..a5af77d 100644 --- a/server/go.sum +++ b/server/go.sum @@ -1528,6 +1528,8 @@ github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65E github.com/ugorji/go/codec v1.2.12/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= github.com/vmware-labs/yaml-jsonpath v0.3.2 h1:/5QKeCBGdsInyDCyVNLbXyilb61MXGi9NP674f9Hobk= github.com/vmware-labs/yaml-jsonpath v0.3.2/go.mod h1:U6whw1z03QyqgWdgXxvVnQ90zN1BWz5V+51Ewf8k+rQ= +github.com/wangjia/codes v0.0.0-20260710045055-c772d5256794 h1:iFXDA0VYJE2Fo+u1ziUFNmSEePPxwdgF4XkRB/yZxA8= +github.com/wangjia/codes v0.0.0-20260710045055-c772d5256794/go.mod h1:i+6xkZaTl1t+Ik89XdPX1Cgfod9ILvk8WvuJQnkRJ1E= github.com/woodsbury/decimal128 v1.4.0 h1:xJATj7lLu4f2oObouMt2tgGiElE5gO6mSWUjQsBgUlc= github.com/woodsbury/decimal128 v1.4.0/go.mod h1:BP46FUrVjVhdTbKT+XuQh2xfQaGki9LMIRJSFuh6THU= github.com/xanzy/go-gitlab v0.15.0 h1:rWtwKTgEnXyNUGrOArN7yyc3THRkpYcKXIXia9abywQ=