• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

strongo / buildinfo / 33369051570
100%

Build:
DEFAULT BRANCH: main
Ran 31 Aug 2026 07:36AM UTC
Jobs 1
Files 2
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 Aug 2026 07:35AM UTC coverage: 100.0%. First build
33369051570

push

github

trakhimenok
feat: add unified Go CLI version-reporting module

Every Go CLI in the fleet reinvents version reporting inconsistently -
proven on shipped ingitdb-cli v0.65.11, where `--version` (resolved by
fang's own debug.ReadBuildInfo() lookup) and `version` (a hand-rolled
subcommand reading ldflags-stamped vars) disagree and the latter never
gets its commit/date stamped at all.

Add buildinfo.Get/Info/Short/Long: linker -X vars first, falling back to
runtime/debug.ReadBuildInfo(), falling back to clearly-marked placeholders,
handling the known ReadBuildInfo traps (empty Deps in non-main test
binaries, missing vcs.revision from a linked worktree build) without
panicking. Every CLI can share one identical GoReleaser ldflags block
targeting this module's package path instead of stamping its own
main.version.

Add cobracmd.Wire for the fleet's cobra + charmbracelet/fang stack: feeds
fang's --version/-v flag and a `version` subcommand from the same resolved
Info so the two surfaces cannot disagree - the exact bug above, covered by
a test that drives real fang.Execute calls for both surfaces.

100% test coverage on both packages; ldflags-into-a-dependency-package
path proven end to end with a throwaway consumer binary, built once
unstamped and once with the real -X flags.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KFsyYhYi9h9Am1JbAMxuhv

64 of 64 new or added lines in 2 files covered. (100.0%)

64 of 64 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 33369051570.1 31 Aug 2026 07:36AM UTC 2
100.0
GitHub Action Run
Source Files on build 33369051570
  • Tree
  • List 2
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 452b82fb on github
  • Next Build on main (#33376246265)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc