krites version¶
What krites version does¶
Print the running binary's version, commit and build date, as injected at build time. Unless self-update is disabled or this is a development build, it also contacts the release source to report whether a newer version is available.
Usage¶
Flags¶
| Flag | Default | What it does |
|---|---|---|
--check |
false |
Exit non-zero when the release source is unreachable, and check even on a development build |
Plus the global flags on every command.
Why it succeeds when the network is down¶
The update check is best-effort. When the release source is unreachable the local details are still printed and the command exits zero, because "what am I running" must be answerable offline.
--check inverts that for scripted update probes: an unreachable release source
becomes a hard error. --check also forces the remote check on a development
build, which otherwise skips it.
A development build reports no version¶
A binary built outside the release pipeline has no version injected, so it
reports a development placeholder rather than a release number. That is expected
from just build, go build and go install; only release archives and the
packaged macOS app carry real version metadata.