Declares GitCommit/BuildTime package vars (default "unknown", target of task 4.1's -ldflags -X injection), a -version flag checked before utils.PromptForTopDir()/InitLogger() (zero filesystem side effects), and extends the existing "Initialize Logger done!" startup log line with zap.String structured fields carrying both values, per design.md's explicit mandate. Live-verified end to end: -version output and the startup log's first line are byte-identical, with a real commit id (matching git rev-parse --short HEAD plus dirty suffix) and UTC timestamp -- the first full round-trip proof in this spec (earlier Go tasks could only verify via linked build-info metadata, since no consuming vars existed yet). Task 4.4/13 of build-time-versioning. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| settings | ||
| specs | ||
| steering | ||