polar update fails on darwin-arm64: No release asset found
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- shell, typescript
Research direction
Start by tracing the CLI update command and the install.sh script, focusing on how the darwin-arm64 asset and release version are selected. Reproduce the update from v1.2.0 to v1.3.6 and verify that it resolves polar-darwin-arm64.zip and uses the semver tag v1.3.6; confirm both the CLI update and install script succeed.
Written by the indexing model from the issue text.
Description
Description
Running polar update on macOS (darwin-arm64) fails with:
Error: No release asset found for platform: darwin-arm64
This was reproduced when attempting to update from v1.2.0 to v1.3.6.
The re-install workaround (curl -fsSL https://polar.sh/install.sh | bash) also fails because the install script fetches the full GitHub release title/description as the version string instead of the semver tag (e.g. v1.3.6), causing a malformed URL:
==> Version: Adds a logout command & better handling of clearing tokens from polar folder.
**Full Changelog**: https://github.com/polarsource/cli/compare/v1.3.5...v1.3.6
==> Downloading polar Adds a logout command & better handling of clearing tokens from polar folder...
curl: (3) URL rejected: Malformed input to a URL function
error: Download failed. Check if a release exists for your platform: darwin-arm64
Steps to Reproduce
- Install
polarCLI v1.2.0 on macOS (Apple Silicon / darwin-arm64) - Run
polar update
Expected Behavior
CLI updates from v1.2.0 to the latest version (v1.3.6).
Actual Behavior
polar update errors with No release asset found for platform: darwin-arm64, even though polar-darwin-arm64.zip exists in the release assets.
The self-hosted install script also fails due to the version string being set to the full release notes text rather than the tag.
Workaround
Manually download and replace the binary:
curl -fsSL https://github.com/polarsource/cli/releases/download/v1.3.6/polar-darwin-arm64.zip -o /tmp/polar.zip
unzip -o /tmp/polar.zip -d /tmp/polar-update
chmod +x /tmp/polar-update/polar
cp /tmp/polar-update/polar /usr/local/bin/polar
Environment
- OS: macOS (darwin-arm64 / Apple Silicon)
- Polar CLI version: v1.2.0 → v1.3.6
- Dominant language
- TypeScript
- Stars
- 13
- Forks
- 14
- Avg merge
- 23h 49m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from polarsource/cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
polarsource/cli#11 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
polarsource/cli#24 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 15/100
polarsource/cli#17 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
polarsource/cli#15 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
polarsource/cli#9 · 1 comment · 1 reaction ·
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
fil-donadoni/tolaria#4409 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
corsairdev/corsair#1764 ·