Report the module version for a go install build (closes #18)
check / check (push) Successful in 1m41s

keyfunc --version printed dev for any binary not built with make build. When no version was stamped at build time, the tool now reports the module version recorded in the binary's build info, which go install fills in. A stamped version still wins, and a local build with neither still prints dev.

Model: opus-4-8 (implementation); fable-5-1 (summary)
This commit was merged in pull request #26.
This commit is contained in:
2026-09-21 09:39:38 +02:00
parent 860e590114
commit e6ddf49acc
3 changed files with 66 additions and 4 deletions
+2 -1
View File
@@ -55,7 +55,8 @@ refuses and exits with status 1. A mnemonic that fails the BIP-39 checksum is
refused with a message saying so.
Every command takes `--index` / `-n` and `--mnemonic-command`, and has `--help`.
`keyfunc --version` prints the version set at build time.
`keyfunc --version` prints the version. `make build` stamps it; a binary
installed with `go install` reports the module version instead.
## SSH keys: `keyfunc ssh`