update --check on a source build silently compares against stable
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
先從 internal/update/version.go 的第 178–185 行附近和 cmd/codeaf/update.go 的第 65–80 行附近開始,然後執行使用 make build 和 bin/codeaf update --check 的確定性重現。使用 source-build 標記新增或更新 cmd/codeaf 測試。完成標準是 check 拒絕或回報沒有 channel,指出 source-build 路徑,且不聲稱 stable 是比較對象。
由索引模型根據 Issue 內容生成。
描述
What happened
On a make build binary of dev 461a43fb6 (2026-09-29), codeaf update --check answers as though the build were on the stable channel and exits 0:
the newest stable codeaf is v0.4.1 · this codeaf is 461a43fb6
The manual's shell-update section says update --check follows a dev-* build's channel, and that "a source build refuses and names its path: rebuild with make build, or install a release". Plain codeaf update does refuse on a source build; --check does not, and silently compares against stable. --check --dev names the newest dev build correctly. Installed dev and staging builds check their own channel correctly.
Replication
Deterministic (network, no model). make build && bin/codeaf update --check; echo $? → the stable sentence and 0.
Where it goes wrong
internal/update/version.go (~178–185) maps any tag that is not a dev tag to stable; cmd/codeaf/update.go (~65–80) applies its source-build refusal only when --check is absent.
Acceptance
bin/codeaf update --check on a source build says what the manual says for a source build (refuses and names its path, or says it has no channel) and does not claim stable is the comparison — a cmd/codeaf test with a source-build stamp.
Found by the 2026-09-29 pre-release happy-path pass (dev lane 5, F-5.5).
- 主要語言
- Go
- 星號
- 115
- 分支
- 14
- 平均合併
- 10 小時 6 分鐘
- 30 天內合併 PR
- 223
環境準備
我們還沒有檢查這個專案的環境設定檔。先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Agent-Field/CodeAF 的其他 Issue
-
area:chat bug sev:papercut
難度 2/5 1-3 小時 新手友好度 68/100
Agent-Field/CodeAF#1805 ·
維護者通常 1 天內回覆
-
area:session bug sev:papercut
難度 2/5 1-3 小時 新手友好度 82/100
Agent-Field/CodeAF#1779 ·
維護者通常 1 天內回覆
-
area:session bug sev:papercut
難度 2/5 1-3 小時 新手友好度 78/100
Agent-Field/CodeAF#1768 ·
維護者通常 1 天內回覆
-
area:chat bug sev:papercut
難度 2/5 1-3 小時 新手友好度 78/100
Agent-Field/CodeAF#1742 ·
維護者通常 1 天內回覆
-
area:chat bug sev:papercut
難度 2/5 1-3 小時 新手友好度 86/100
Agent-Field/CodeAF#1592 ·
維護者通常 1 天內回覆
查看 Agent-Field/CodeAF 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
containerd/containerd#14476 · 1 則留言 ·
維護者通常 1 天內回覆
-
kind/bug
難度 2/5 1-3 小時 新手友好度 78/100
ome-projects/ome#1242 ·
維護者通常 1 天內回覆
-
copy design-review mac P3
難度 2/5 1-3 小時 新手友好度 88/100
tosunlab/hisarapp-core#510 ·