Skip to content

fix: version parsing in install.sh extracts wrong value#359

Merged
khaliqgant merged 8 commits intomainfrom
fix-install-command
Feb 2, 2026
Merged

fix: version parsing in install.sh extracts wrong value#359
khaliqgant merged 8 commits intomainfrom
fix-install-command

Conversation

@khaliqgant
Copy link
Copy Markdown
Member

@khaliqgant khaliqgant commented Feb 2, 2026

The sed pattern was too greedy, matching "mentions_count" instead of the tag_name value when the GitHub API response was on a single line.

Fixed by using a more specific sed pattern that anchors to "tag_name".

Added install.test.sh with 9 tests including a regression test for the mentions_count bug.


Open with Devin

khaliqgant and others added 4 commits February 2, 2026 13:57
The sed pattern was too greedy, matching "mentions_count" instead of
the tag_name value when the GitHub API response was on a single line.

Fixed by using a more specific sed pattern that anchors to "tag_name".

Added install.test.sh with 9 tests including a regression test for the
mentions_count bug.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Track install_started, install_completed, and install_failed events
to understand installation success rates and common failure modes.

Telemetry respects:
- AGENT_RELAY_TELEMETRY_DISABLED=1
- DO_NOT_TRACK=1

Also:
- Added install.test.sh to CI workflow
- Updated help text with telemetry opt-out info

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Fedora doesn't include 'which' by default.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 2 new potential issues.

View issues and 6 additional flags in Devin Review.

Open in Devin Review

Comment thread install.sh Outdated
Comment thread install.test.sh Outdated
khaliqgant and others added 4 commits February 2, 2026 14:04
The install script puts binaries in ~/.local/bin which isn't in PATH by default.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Disable set -e during live API test to prevent script exit on
curl failures (rate limiting, network issues).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1. Escape special characters (newlines, quotes, backslashes) in error
   messages before embedding in telemetry JSON

2. Add '|| true' to arithmetic expressions to prevent exit code 1
   when incrementing from 0 with set -e enabled

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@khaliqgant khaliqgant merged commit f9ba164 into main Feb 2, 2026
46 of 48 checks passed
@khaliqgant khaliqgant deleted the fix-install-command branch February 2, 2026 13:18
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