Skip to content

feat: show spored version in spawn status (#232) - #233

Merged
scttfrdmn merged 1 commit into
mainfrom
feat/232-status-spored-version
Jun 24, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
feat/232-status-spored-version

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Closes #232.

spawn status <instance> now shows the spored version running on the instance.

spawn status already SSH/SSM-execs sudo /usr/local/bin/spored status and echoes its output, so this is a one-line addition to spored's status display:

  my-instance  (i-0abc…)
  ──────────────────────────────────────────────
  spored:           v0.63.1
  Started:          2026-06-24 18:00 UTC
  …

The version is baked into that instance's spored binary at launch (GoReleaser injects -X main.Version), so it reflects the agent actually running on the box — not the local spawn. Useful after upgrading spawn, or when a lifecycle behavior changed between spored versions and you need to know what an existing instance is on.

Notes

make check clean; cmd/spored tests pass.

spawn status SSH/SSM-execs 'spored status' and echoes its output, so adding a
'spored: vX.Y.Z' line to spored's status display surfaces the on-instance agent
version with no transport change. The version is baked into that instance's
spored binary at launch (GoReleaser -X main.Version), so it reflects the agent
actually running there — handy after a spawn upgrade or when a lifecycle
behavior differs across versions.

Closes #232.
@scttfrdmn
scttfrdmn merged commit 3997cf2 into main Jun 24, 2026
6 checks passed
@scttfrdmn
scttfrdmn deleted the feat/232-status-spored-version branch June 24, 2026 18:26
@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cmd/spored/main.go 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

spawn status should show the spored version running on the instance

1 participant