Add upgrade --check: report what can be upgraded, change nothing #55

Merged
jcoffey-dev merged 1 commits from feat/upgrade-check into main 2026-11-12 14:06:07 +00:00
Owner

A 27.1 installer "do-better": stop hand-tracking the pinned releases.

inbuxa upgrade --check prints the same "what is here → what this installer installs" table a dry run does, then stops with an exit code a script or cron job can act on:

  • 10 — at least one component can be upgraded
  • 0 — nothing can

It changes nothing, so it needs neither --yes nor root. It reuses the existing UpgradePlan (which reads the installed versions from the machine), so there's no new network call or source of truth — "a newer release" is simply what this installer pins.

inbuxa upgrade --check || notify-me   # in a weekly cron job
  • cmd/inbuxa/main.go: a --check flag + a short report-and-stop branch; usage updated.
  • main_test.go: --check is accepted as an option (not taken for a component).

go build, go vet (amd64 + arm64), gofmt, go test ./..., and the stdlib-only check all pass locally. Independent of the other open PRs; branches off main.

Not merged; opening for review.

A 27.1 installer "do-better": stop hand-tracking the pinned releases. `inbuxa upgrade --check` prints the same "what is here → what this installer installs" table a dry run does, then stops with an exit code a script or cron job can act on: - **10** — at least one component can be upgraded - **0** — nothing can It changes nothing, so it needs neither `--yes` nor root. It reuses the existing `UpgradePlan` (which reads the installed versions from the machine), so there's no new network call or source of truth — "a newer release" is simply what this installer pins. inbuxa upgrade --check || notify-me # in a weekly cron job - `cmd/inbuxa/main.go`: a `--check` flag + a short report-and-stop branch; usage updated. - `main_test.go`: `--check` is accepted as an option (not taken for a component). `go build`, `go vet` (amd64 + arm64), `gofmt`, `go test ./...`, and the stdlib-only check all pass locally. Independent of the other open PRs; branches off `main`. Not merged; opening for review.
jcoffey-dev added 1 commit 2026-11-12 14:04:33 +00:00
inbuxa upgrade --check prints the same what-is-here against what-this-
installer-installs table as a dry run, then stops with an exit code a
script or cron job can act on: 10 when a component can be upgraded, 0
when none can. It changes nothing, so it needs neither --yes nor root.
This replaces hand-tracking the pinned releases with a command that says
when the installed suite is behind the one this installer ships.
jcoffey-dev force-pushed feat/upgrade-check from 20fa6086af to 19d54e9cf0 2026-11-12 14:04:33 +00:00 Compare
jcoffey-dev merged commit 859f924c29 into main 2026-11-12 14:06:07 +00:00
jcoffey-dev deleted branch feat/upgrade-check 2026-11-12 14:06:07 +00:00
Sign in to join this conversation.