Repository navigation
feat: show spored version in spawn status (#232) - #233
Merged
Merged
Conversation
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.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #232.
spawn status <instance>now shows the spored version running on the instance.spawn statusalready SSH/SSM-execssudo /usr/local/bin/spored statusand echoes its output, so this is a one-line addition to spored's status display: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
spawn statususes (SSH today; the SSM-only path once spawn status/connect fail with 'no SSH key configured' on keyless lagotto-launched (SSM-only) instances; status shouldn't need a key #222 lands).--json/-o jsonflag is on the separate sweep status path), so no structured-output concern.make checkclean;cmd/sporedtests pass.