Report the module version for a go install build (closes #18)
check / check (push) Failing after 1s
check / check (push) Failing after 1s
--version printed "dev" for any binary not built with make build, so a user running a go install build could not say what version they had. resolveVersion now falls back to the module version from runtime/debug.ReadBuildInfo() when the build-time stamp is absent, ignoring the "(devel)" of a local build. The stamped value still wins when present. It takes the build info as an argument, so a test covers the choice without a real build. Model: opus-4-8
This commit is contained in:
@@ -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`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user