Add runtime version reporting
This commit is contained in:
@@ -456,7 +456,7 @@ LGPL licensing and attribution notices remain consistent.
|
||||
|
||||
## Stage 2: Implement the runtime version facade
|
||||
|
||||
Status: Pending. Depends on Stage 1.
|
||||
Status: Complete. Depends on Stage 1.
|
||||
|
||||
1. Implement `buildinfo.Version` and its internal injected-string and main-module
|
||||
fallback logic. Keep runtime state private and the public accessor small.
|
||||
@@ -470,6 +470,15 @@ Acceptance: a source-built fixture reports `dev`; a fixture linked with a stable
|
||||
version reports that version. Fallback metadata uses the executable main module.
|
||||
CLI version output is correct and no runtime orchestration initialization occurs.
|
||||
|
||||
Completion evidence: implemented `buildinfo.Version`, its private injected
|
||||
string and main-module fallback, and the internal linker-symbol contract. Unit
|
||||
tests cover injection precedence and missing, development, and stable main
|
||||
module metadata. Built and ran a separate consumer executable from source and
|
||||
with an injected stable version using network-disabled Go commands; both
|
||||
reported the selected value. CLI tests cover its version line, and the CLI's
|
||||
dependency closure contains no orchestration package. Added runtime consumer
|
||||
guidance and documented the command contract.
|
||||
|
||||
## Stage 3: Protect public contracts and dependency direction
|
||||
|
||||
Status: Pending. Depends on Stage 2.
|
||||
|
||||
Reference in New Issue
Block a user