Repository navigation
[upstream #56] Go 1.26.10 构建链固定 (7d8b91268) - #69
Merged
Merged
Conversation
(cherry picked from commit 7d8b912)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 关联任务 / Related Issue
aec575b723c046e2213602394ba96dc7be1eee04🚀 变更类型 / Type of change
📝 变更描述 / Description
通过
git cherry-pick -x 7d8b91268dab69d7150f345c448b5e250163146a移植构建链版本固定:go.mod:Go 指令与 Heroku 版本注释更新至 1.26.10,依赖不变。Dockerfile、Dockerfile.dev:Go 镜像更新至 1.26.10;生产镜像采用上游 digest。.github/workflows/release.yml、.github/workflows/electron-build.yml:从 go.mod 读取 Go 版本,保留 fork 所有额外阶段。由 Codex 辅助移植和核对。范围仅限上述五个文件。
📸 运行证明 / Proof of Work
git diff HEAD^ HEAD --check:退出 0,无空白错误。GOTOOLCHAIN=go1.26.10 go version:退出 0,输出go version go1.26.10 linux/amd64。6e633486e946ac6c534fbd90e18679e26eb3dc4a):以下全部退出 0;统一使用GOTOOLCHAIN=go1.26.10 GOWORK=off GOMAXPROCS=2。源码由候选git archive导出,构建前后 2777 个源码文件 SHA-256 一致,原 checkout 保持干净。go build -mod=readonly -p=2 -buildvcs=false -o "$E/new-api" .;go version -m "$E/new-api"确认go1.26.10。归档构建无内嵌 VCS revision,候选归属由归档 commit、源码 manifest 和产物 SHA-256 绑定。relaykit/、tokenkit/:go build -mod=readonly -p=2 ./...,两者均在GOWORK=off下成功。go test -p=2 -count=1 -v crypto/tls -run '^(TestVerifyHostname|TestVerifyCertificates|TestVerifyConnection|TestVerifyPeerCertificate)$',PASS。go test -p=2 -count=1 -v crypto/x509 -run '^(TestGoVerify|TestValidHostname|TestMatchHostnames)$',PASS。go test -mod=readonly -p=2 -count=1 -v github.com/coreos/go-oidc/v3/oidc -run '^(TestVerify|TestVerifyAudience|TestVerifySigningAlg|TestIssuerMismatchError|TestNewProvider|TestRSAVerify|TestECDSAVerify|TestEdDSAVerify)$',PASS,覆盖 issuer、audience、expiry、签名及算法校验;这是依赖层证据,不等同完整登录验证。go test -mod=readonly -p=2 -count=1 -v "$E/oidc_transport_test.go",PASS;外部证据 harness 直接调用候选OIDCProvider.ExchangeToken/GetUserInfo,验证可信证书成功、不可信 CA 和主机名不符被拒绝。未用TestOIDCProvider_GetName充当安全验证。/home/box/workspace/new-api/web/dist的 1842 个文件,逐个记录并复核 SHA-256。来源 checkout 为f492ebe415fb38c04a0da59271c87159850b9e41,web tree 与候选不同;此产物证明候选后端构建,不声称候选前端重建或可发布产物。$E=/home/box/.parallel-project-orchestrator/programs/new-api-cherry-20261022/runtime/controller/r0192-repair56;命令、日志、源码/资产/产物归属见该目录commands.json、attribution.json、asset-provenance.json、result.json。✅ 提交前检查项 / Checklist