Repository navigation
fix(synkronus-cli): correct macOS/Linux install script - #1052
Merged
najuna-brian merged 3 commits intoNov 24, 2026
Merged
Conversation
najuna-brian
self-requested a review
November 24, 2026 04:03
- Leave a shell config file untouched (with a warning) when it has the synkronus-cli start marker but no end marker, instead of deleting everything after it. - Collapse blank lines around the replaced block so repeated installs no longer add two extra blank lines each run.
najuna-brian
approved these changes
Nov 24, 2026
najuna-brian
left a comment
Member
There was a problem hiding this comment.
Thanks @Lemeri123, great work! Tested on Linux with bash, zsh, fish and sh, and it installs cleanly.
I pushed a small follow-up so upsert_block won't drop config lines when the end marker is missing, and won't add blank lines on re-runs.
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 & Why
The documented macOS/Linux one-liner downloaded a hardcoded Darwin ARM64 asset and tried to untar a bare binary, so installs failed on Intel Macs, Linux, and Linux ARM64. It now detects OS and CPU (with
--assetstill available as a manual override), downloads the matching bare binary directly, makes it executable, and installs it assynk.PATH and completion setup no longer depends on zsh or Python: the detected shell config (bash, zsh, fish, or POSIX sh) is updated idempotently, and bash/fish completions are generated alongside the existing zsh completion.
Type of Change
Component(s) Changed
Testing
Simulated installs for Linux amd64 (bash), macOS ARM64 (zsh), Linux ARM64 (fish), and a manual
--assetoverride; repeated runs keep a single config block.bash -n,git diff --check, and HTTP 200 checks for all four release assets passed.Checklist
bash -n,git diff --check)Closes #123Closes #1051