[PR #2745] Fix broken version parsing in installation script #10433

Closed
opened 2026-02-16 18:15:05 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2745

State: closed
Merged: Yes


The installation script fails for me with the following error message:

> curl -fsSL https://opencode.ai/install | bash
Failed to fetch version information

The culprit is the reliance on a space in the targeted "tag_name": " string segment when going through the releases API response.

Currently, the API response contains this version of the string:

"tag_name":"v1.11.0"

As such, the regular expression with the hardcoded whitespace fails to match this.

This PR adds an optional whitespace marker into the regular expression so that it will match the tag_name both with or without a space in-between key and value.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2745 **State:** closed **Merged:** Yes --- The installation script fails for me with the following error message: ``` > curl -fsSL https://opencode.ai/install | bash Failed to fetch version information ``` The culprit is the reliance on a space in the targeted `"tag_name": "` string segment when going through the releases API response. Currently, the API response contains this version of the string: ``` "tag_name":"v1.11.0" ``` As such, the regular expression with the hardcoded whitespace fails to match this. This PR adds an optional whitespace marker into the regular expression so that it will match the `tag_name` both with or without a space in-between key and value.
yindo added the pull-request label 2026-02-16 18:15:05 -05:00
yindo closed this issue 2026-02-16 18:15:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10433