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

ingitdb / ingitdb-cli / 27357761731
96%

Build:
DEFAULT BRANCH: main
Ran 11 Jun 2026 03:24PM UTC
Jobs 1
Files 142
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

11 Jun 2026 03:23PM UTC coverage: 96.336% (-0.2%) from 96.538%
27357761731

push

github

trakhimenok
feat: self-update command (port of specscore-cli's self-update)

Adds 'ingitdb self-update': detects how the binary was installed and
either self-replaces (manual installs: download release asset, verify
sha256 against the per-OS checksums file, atomic swap) or redirects to
the owning package manager (Homebrew cask / Snap) without touching the
binary. Ambiguous detection refuses safely. --check is read-only with
the 0/10/other exit-code contract; --version pins an exact tag with a
downgrade guard (--allow-downgrade); --yes for non-interactive use.

No 'update' alias: that name is the SQL UPDATE verb. Canonical name
only; the collision is documented in the spec.

Engine ported from specscore-cli internal/selfupdate (stdlib only, no
new deps), adapted to ingitdb: per-OS checksum files (checksums.txt /
-darwin / -windows), ingitdb_{ver}_{os}_{arch} asset names, versioned
download URLs so --version pins work, symlink-resolving managed
detection for the brew cask layout, errors.Is(fs.ErrPermission)
classification via %w wrapping.

Known gap (spec Open Questions): release v0.40.1 publishes no darwin
assets, so macOS manual self-update currently fails with a clear
error; the darwin release job needs fixing.

Spec: spec/features/cli/self-update/README.md.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

536 of 584 new or added lines in 7 files covered. (91.78%)

13225 of 13728 relevant lines covered (96.34%)

1.15 hits per line

Uncovered Changes

Lines Coverage ∆ File
48
76.0
cmd/ingitdb/commands/self_update.go
Jobs
ID Job ID Ran Files Coverage
1 27357761731.1 11 Jun 2026 03:24PM UTC 142
96.34
GitHub Action Run
Source Files on build 27357761731
  • Tree
  • List 142
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 26b63e64 on github
  • Prev Build on main (#27040893348)
  • Next Build on main (#27361078387)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc