fix(install): use correct download URL without 'v' prefix#94
Conversation
Adds a bash script that downloads and installs the Sentry CLI binary. Supports macOS, Linux, and Windows (via MINGW/MSYS/Cygwin) on x64 and arm64. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
GitHub releases for this repo use version tags without the 'v' prefix (e.g., `0.2.0` not `v0.2.0`). The script was generating URLs like `.../download/v0.2.0/...` which 404'd. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Issue
Other
Bug Fixes 🐛Issue
Other
Documentation 📚
Internal Changes 🔧
Other
🤖 This preview updates automatically when you update the PR. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| Linux*) os="linux" ;; | ||
| MINGW*|MSYS*|CYGWIN*) os="windows" ;; | ||
| *) echo -e "${RED}Unsupported OS: $(uname -s)${NC}"; exit 1 ;; | ||
| esac |
There was a problem hiding this comment.
Redundant uname -s call in OS detection
Low Severity
The OS detection block calls uname -s twice: once in the case statement (line 42) and again in the error message (line 46). The architecture detection below correctly captures uname -m into a variable first (arch=$(uname -m)) and reuses it. The OS detection pattern is inconsistent with this approach and results in a redundant system call.
Summary
Fixes a bug in the install script where all downloads would 404 because the URL used
v0.2.0instead of0.2.0. GitHub releases for this repo use version tags without thevprefix.Test Plan
🤖 Generated with Claude Code