Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

update --check on a source build silently compares against stable

未關閉 適合新手
#1,679 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
88/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
go
領域
cli, testing

研究方向

先從 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 內容生成。

描述

area:build bug sev:papercut

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,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Agent-Field/CodeAF 的其他 Issue

查看 Agent-Field/CodeAF 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。