Take the version from the git tag, not a constant (closes #80) #204

Merged
clawbot merged 1 commits from issue-80-version-from-tag into next 2026-10-14 00:00:37 +02:00
1 Commits
Author SHA1 Message Date
sneak c0c6496f8e Take the version from the git tag, not a constant (closes #80)
check / check (push) Waiting to run
`mfer version`, `mfer --version` and the banner print the revision the
build stamps into main.Gitrev or, when it stamped none (as after
`go install` of a tag), the main module's version from
runtime/debug.ReadBuildInfo. The banner no longer shows a release date.

mfer.Version and mfer.ReleaseDate go, with main.Version and the version
field and parameter in internal/cli that nothing read. A program using
the library reads the module version from its own build information.
The README says where the version comes from.

Judgement call: a binary with no build information, or none holding a
module version, prints "unknown", the word script/build already uses
when git describe gives nothing.

Model: opus-5-5
2026-10-13 19:24:17 +00:00