build(server): codes 依赖改伪版本 pin(经 gitea),去本地路径 replace
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) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013nMthbVEmQquxBRKb9Fj8u
This commit is contained in:
+1
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user