install.sh: asset matcher still greps for CommandCodeAI/gui — Linux/macOS installs can never resolve a release
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 85/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- shell
- Domain
- build-system, cli
Research direction
The bug is in install.sh at line 52, where the awk pattern hardcodes the old repository slug 'CommandCodeAI/gui'. The fix is to update the pattern to match the current repository 'CommandCodeAI/desktop' or, better, use the existing REPOSITORY variable. Also check line 232 for a stale macOS error message. Run the script with COMMANDCODE_INSTALL_DRY_RUN=1 to verify it resolves an asset name like 'CommandCode-*-amd64.deb'.
Written by the indexing model from the issue text.
Description
Bug: install.sh on main can never match a release asset, so macOS/Linux installs always fail with "No verified package was found in the 20 newest releases."
Root cause: REPOSITORY was corrected to CommandCodeAI/desktop, but the awk matcher inside read_asset_metadata() still hardcodes the old repo slug:
# install.sh:52
/"url": "https:\/\/api.github.com\/repos\/CommandCodeAI\/gui\/releases\/assets\// {
Every asset url in the current release JSON is .../repos/CommandCodeAI/desktop/..., so in_asset is never set and no artifact can resolve.
Minimal fix:
- /"url": "https:\/\/api.github.com\/repos\/CommandCodeAI\/gui\/releases\/assets\// {
+ /"url": "https:\/\/api.github.com\/repos\/CommandCodeAI\/desktop\/releases\/assets\// {
or better, interpolate the existing variable so it can’t drift again:
/"url": "https:\/\/api.github.com\/repos\/" repo "\/releases\/assets\//" # with -v repo="$REPOSITORY"
Also minor: install.sh:232 still fails Darwin:* with "The current macOS preview supports Apple silicon only", but Darwin:x86_64 is handled above it — the message is stale.
Suggested regression test: COMMANDCODE_INSTALL_DRY_RUN=1 ./install.sh asserting the script resolves a real asset name (e.g. CommandCode-*-amd64.deb) against the live release JSON.
Found while researching a fork — verified the matcher cannot hit the current release payload.
- Dominant language
- Shell
- Stars
- 80
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
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 CommandCodeAI/desktop
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
CommandCodeAI/desktop#94 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
CommandCodeAI/desktop#66 · 1 comment · 2 reactions ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
CommandCodeAI/desktop#105 ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
CommandCodeAI/desktop#104 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 70/100
CommandCodeAI/desktop#103 ·
All issues in CommandCodeAI/desktop
Similar issues
-
good-start
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
VilnaCRM-Org/user-service#497 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
conda-forge/spacy-feedstock#177 ·
-
area:jail bug security severity:low track:open-source
Difficulty 1/5 Under an hour Newbie friendliness 75/100