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

strongo / selfupdate / 33382295704
100%

Build:
DEFAULT BRANCH: main
Ran 31 Aug 2026 10:25AM UTC
Jobs 1
Files 13
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 10:24AM UTC coverage: 100.0%. Remained the same
33382295704

push

github

web-flow
feat(cmd/selfupdate): adopt strongo/buildinfo v0.1.1 for unified --version (#2)

* feat(cmd/selfupdate): adopt github.com/strongo/buildinfo v0.1.1 for --version

The reference CLI hand-rolled its own version reporting (a package-level
`version` var stamped via -X main.version=..., with no `version`
subcommand at all), the same pattern that shipped a broken `ingitdb
--version` elsewhere in the fleet. Pin buildinfo@v0.1.1 exactly (v0.1.0
requires Go 1.27.0; v0.1.1 lowers the floor to 1.26.0, matching this
repo's go directive) and wire it into cmd/selfupdate only.

This repo uses plain cobra, not fang (verified: no charm.land/fang or
github.com/charmbracelet/fang import anywhere in the module), so
buildinfo/cobracmd.Wire (which returns []fang.Option) does not apply.
Instead: buildinfo/cobracmd.VersionCommand(info) supplies the `version`
subcommand, and root.Version + root.SetVersionTemplate("{{.Version}}\n")
make --version print exactly info.Short() with none of cobra's default
"<name> version <version>\n" decoration.

The selfupdate library's own public API is untouched — no file outside
cmd/selfupdate changed. buildConfig's CurrentVersion now reads from the
package-level buildinfo.Get result instead of the removed `version` var;
UndeterminedVersions is left unset so Config's own default ("dev") applies,
which already matches buildinfo's unstamped-build placeholder.

Updated the only ldflags-bearing file (.goreleaser.yml; content-grepped,
no other GoReleaser config exists in this repo) to stamp
github.com/strongo/buildinfo.{version,commit,date} instead of the removed
main.version.

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

* chore(deps): move to buildinfo v0.2.0 and drop the fang dependency

Collapse hand-rolled root.Version/SetVersionTemplate/VersionCommand
wiring into cobracmd.WireCobra now that cobracmd is fang-free in
buildinfo v0.2.0.

Co-Authored-By: Claude Opus 5... (continued)

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

787 of 787 relevant lines covered (100.0%)

1.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 33382295704.1 31 Aug 2026 10:25AM UTC 13
100.0
GitHub Action Run
Source Files on build 33382295704
  • Tree
  • List 13
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • aa146611 on github
  • Prev Build on main (#32931917221)
  • Next Build on main (#33387244484)
  • 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