Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta Adatta ai principianti
#1,679 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
88/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go
Ambito
cli, testing

Direzione di ricerca

Inizia con internal/update/version.go intorno alle righe 178–185 e cmd/codeaf/update.go intorno alle righe 65–80, quindi esegui la riproduzione deterministica con make build e bin/codeaf update --check. Aggiungi o aggiorna il test di cmd/codeaf usando un contrassegno source-build. È completato quando il check rifiuta o segnala che non è presente alcun canale, indica il percorso source-build e non sostiene che stable sia il confronto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).

Lingua principale
Go
Stelle
115
Fork
14
Merge medio
9h 44m
PR unite (30g)
775

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Agent-Field/CodeAF

Tutte le issue di Agent-Field/CodeAF

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.