feat(cmd/updater): add standalone updater binary with --pin flag#164
Merged
Conversation
Creates the cmd/updater/main.go entrypoint previously referenced by
install.sh and the release workflow but which did not exist yet.
Flags:
--install-dir path to pilot binaries (required)
--repo GitHub owner/repo (default: TeoSlayer/pilotprotocol)
--pin pin to a specific release tag (e.g. --pin v1.10.5)
empty = follow latest
--interval check interval (default: 1h)
--version print version and exit
Depends on: github.com/pilot-protocol/updater (pinned-version feature from PR #4)
TeoSlayer
approved these changes
May 29, 2026
Owner
TeoSlayer
left a comment
There was a problem hiding this comment.
Approving via operator clearance pass.
Collaborator
|
✅ Matthew PR Worker — Merged Cleanup PR #164 merged by @TeoSlayer at 2026-05-29T14:33:51Z. Branch — matthew-pr-worker (auto) |
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.
What
Creates
cmd/updater/main.go— the standalonepilot-updaterbinary previously referenced byinstall.shand therelease.ymlworkflow but which did not exist yet.Why
.github/workflows/release.yml) builds all binaries includingupdaterviago build ./cmd/updater, but the directory was missing — any new release would fail at the build step../cmd/updater.Flags
--install-dir--repoTeoSlayer/pilotprotocol--pin--pin v1.10.5). Empty = follow latest.--interval1h--versionDependencies
github.com/pilot-protocol/updater(pseudo-version from PR feat(updater): add PinnedVersion config for pinning to a specific release pilot-protocol/updater#4) — this is the library that includes the newPinnedVersionconfig field.github.com/pilot-protocol/commonbumped from v0.1.0 → v0.4.0 (transitive via updater).Testing
--versionprintsdev--install-dirvalidation works (exits 2 when missing)