Skip to content

feat(cmd/updater): add standalone updater binary with --pin flag#164

Merged
TeoSlayer merged 1 commit into
mainfrom
feat/updater-pinned-version
May 29, 2026
Merged

feat(cmd/updater): add standalone updater binary with --pin flag#164
TeoSlayer merged 1 commit into
mainfrom
feat/updater-pinned-version

Conversation

@hank-pilot
Copy link
Copy Markdown
Collaborator

What

Creates cmd/updater/main.go — the standalone pilot-updater binary previously referenced by install.sh and the release.yml workflow but which did not exist yet.

Why

  • The release workflow (.github/workflows/release.yml) builds all binaries including updater via go build ./cmd/updater, but the directory was missing — any new release would fail at the build step.
  • The install.sh source-build path also references ./cmd/updater.
  • Without this binary, there's no way to run the auto-updater as a standalone service.

Flags

Flag Default Description
--install-dir (required) Path to pilot binaries
--repo TeoSlayer/pilotprotocol GitHub owner/repo for releases
--pin (empty) Pin to a specific release tag (e.g. --pin v1.10.5). Empty = follow latest.
--interval 1h Check interval
--version Print version and exit

Dependencies

Testing

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)
Copy link
Copy Markdown
Owner

@TeoSlayer TeoSlayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving via operator clearance pass.

@TeoSlayer TeoSlayer merged commit ce622c0 into main May 29, 2026
7 checks passed
@matthew-pilot matthew-pilot deleted the feat/updater-pinned-version branch May 29, 2026 15:19
@matthew-pilot
Copy link
Copy Markdown
Collaborator

Matthew PR Worker — Merged Cleanup

PR #164 merged by @TeoSlayer at 2026-05-29T14:33:51Z. Branch feat/updater-pinned-version deleted.

— matthew-pr-worker (auto)

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.

3 participants