Skip to content

polar update fails on darwin-arm64: No release asset found #18

@nkovacic

Description

@nkovacic

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

  1. Install polar CLI v1.2.0 on macOS (Apple Silicon / darwin-arm64)
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions