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

ingitdb / ingitdb-cli / 33369740986
96%

Build:
DEFAULT BRANCH: main
Ran 31 Aug 2026 07:45AM UTC
Jobs 1
Files 64
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:44AM UTC coverage: 96.27% (-0.004%) from 96.274%
33369740986

push

github

web-flow
fix: adopt strongo/buildinfo for unified version reporting (#137)

`ingitdb --version` and `ingitdb version` independently disagreed:
fang's own debug.ReadBuildInfo() fallback printed "unknown (built from
source)" for the flag, while the hand-rolled `version` subcommand read
main.version/commit/date (only main.version was ever ldflags-stamped by
.goreleaser.yaml, so commit and date were always their zero defaults).

Adopt the fleet's shared github.com/strongo/buildinfo@v0.1.0 module so
both surfaces resolve from the identical Info value:
- main.go now calls buildinfo.Get("ingitdb") and cobracmd.Wire(root, info),
  feeding the returned fang.Option into fang.Execute instead of leaving
  fang to fall back on its own build-info guess. SelfUpdate now receives
  info.Version (bare semver) instead of the old package-level var.
- cmd/ingitdb/commands/version.go (and its test) is deleted; cobracmd
  supplies the `version` subcommand now.
- .goreleaser.yaml, .github/goreleaser-chocolatey.yaml and
  .github/goreleaser-snap.yaml all build the same ./cmd/ingitdb main
  package, so all three are switched from the single
  `-X main.version={{.Version}}` ldflag (which would no longer link,
  since main.version doesn't exist anymore) to buildinfo's canonical
  three-line snippet targeting github.com/strongo/buildinfo.{version,
  commit,date}.

Verified with a real ldflags build: --version and version now report the
identical stamped version, and an unstamped `go build` degrades to
buildinfo's runtime/debug.ReadBuildInfo() fallback without panicking.


Claude-Session: https://claude.ai/code/session_01KFsyYhYi9h9Am1JbAMxuhv

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

5 of 5 new or added lines in 1 file covered. (100.0%)

5240 of 5443 relevant lines covered (96.27%)

0.97 hits per line

Jobs
ID Job ID Ran Files Coverage
1 33369740986.1 31 Aug 2026 07:45AM UTC 64
96.27
GitHub Action Run
Source Files on build 33369740986
  • Tree
  • List 64
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • cc9fc7b3 on github
  • Prev Build on main (#33331318645)
  • Next Build on main (#33371314905)
  • 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