Repository navigation
chore(deps): 抬 contracts 钉版 v0.25.0 → v0.26.0 - #232
Merged
Merged
Conversation
L2 错误码契约底座随 contracts v0.26.0 发布后,core 自身 go.mod 仍钉 v0.25.0 ⇒ 列车终验(verify §5 读 core main 的 go.mod)判「core→contracts 期望 v0.26.0 (实得 0.25.0)」⇒ 6.5.0 卡在 tagged 收不了尾。 根因:库线仓自身钉版不在 bump 范围(bumpPRRepos 无 core)⇒ lib.contracts 随 车抬版时,只有「消费型仓」(server/fnos/openwrt/qnap)的钉版被 bump 更新,而 core 这种「库线依赖库线」的消费方钉版无人抬 ⇒ 终验才炸,已到产物发布之后。 本次单独抬钉版,并随下一趟车发 core 新版本(v0.47.0)——不重切 v0.46.0(模块 代理按版本号缓存,重打喂陈旧内容)。 contracts v0.26.0 相对 v0.25.0 **无 Go 代码改动**(仅 SECURITY.md / errcode/baseline.json / errcode/errcode_test.go / scripts/gen-errcode-baseline.sh / package.json 版本号)⇒ 导出 API 逐字不变, 本次是纯声明对齐,不改任何行为。 - go.mod: github.com/pigeonbox/contracts v0.25.0 → v0.26.0 - go.sum: 同步 h1 与 go.mod 哈希 - 验证:go build ./... / go vet ./app/... ./bootstrap/... / gofmt -l 全绿; 本地 go test ./... -count=1 全绿
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.
背景
6.5.0 列车卡在
state: tagged收不了尾,终验报唯一一处不一致:根因
lib.contracts随车跟到最新已发布 tag(v0.26.0),bump 把消费型仓(server/fnos/openwrt/qnap)的 go.mod 钉版更新到位——但 core 不在 bump 的钉版
范围(
bumpPRRepos无 core,因为 core 无仓内版本声明、版本由 tag 决定)。⇒ 库线依赖库线时,消费方(core)的自身钉版无人抬。终验 §5 读 core main 的
go.mod ⇒ 判红,且炸点在产物全部发布之后。
本次改动
单独抬 core 自身钉版,并随下一趟车发 core 新版本(v0.47.0)——不重切 v0.46.0
(模块代理按版本号缓存,重打喂陈旧内容)。
contracts v0.26.0相对v0.25.0无 Go 代码改动(仅 SECURITY.md /errcode/baseline.json / errcode/errcode_test.go / scripts/gen-errcode-baseline.sh /
package.json 版本号)⇒ 导出 API 逐字不变,本次为纯声明对齐,不改任何行为。
验证
go build ./.../go vet ./app/... ./bootstrap/.../gofmt -l全绿go test ./... -count=1全绿配套(另开 PR)
trainctl 侧补「库线 tag 钉版对账」闸:在库线 tag 落地的那一刻核对 tag 上的
go.mod 钉版 == 本趟
lib.*期望 ⇒ 把这类错位从「终验炸」前移到「打 tag 前炸」。