Skip to content

feat: opk update --channel <ref> — switch the tracking ref without editing install.conf - #102

Merged
steffenmaechtel merged 1 commit into
masterfrom
feature/update-channel-flag
Sep 25, 2026
Merged

steffenmaechtel merged 1 commit into
masterfrom
feature/update-channel-flag

Conversation

@steffenmaechtel

Copy link
Copy Markdown
Owner

Editing /etc/opencode-permissions-kit/install.conf by hand was the only way to move a machine between stable / master / a feature branch / a tag. --channel does it in one command: a pre-scan (before the channel resolution and the self-fetch, so the fetch already uses the new ref) sets KIT_BRANCH, and the existing KIT_CHANNEL re-stamp at the end makes the switch persistent for every future plain 'opk update'. The regular arg loop consumes and validates the flag; KIT_BRANCH env keeps working for the curl-streamed entry points. Docs: cli.md + how-to/update.md.

…iting install.conf

Editing /etc/opencode-permissions-kit/install.conf by hand was the only
way to move a machine between stable / master / a feature branch / a tag.
--channel does it in one command: a pre-scan (before the channel
resolution and the self-fetch, so the fetch already uses the new ref)
sets KIT_BRANCH, and the existing KIT_CHANNEL re-stamp at the end makes
the switch persistent for every future plain 'opk update'. The regular
arg loop consumes and validates the flag; KIT_BRANCH env keeps working
for the curl-streamed entry points. Docs: cli.md + how-to/update.md.

@steffenmaechtel steffenmaechtel left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Reviewed

@steffenmaechtel
steffenmaechtel merged commit ee211d0 into master Sep 25, 2026
6 checks passed
@steffenmaechtel
steffenmaechtel deleted the feature/update-channel-flag branch September 25, 2026 20:03
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.

1 participant