Skip to content

fix(install): correct repo refs and handle Windows shells - #552

Closed
SharanKarchella wants to merge 1 commit into
getkimchi:masterfrom
SharanKarchella:fix/install-script-repo-and-windows-shells
Closed

fix(install): correct repo refs and handle Windows shells#552
SharanKarchella wants to merge 1 commit into
getkimchi:masterfrom
SharanKarchella:fix/install-script-repo-and-windows-shells

Conversation

@SharanKarchella

Copy link
Copy Markdown
Contributor

Description

scripts/install.sh had three related problems:

  1. Stale default repo. REPO defaulted to castai/kimchi, and the usage
    comment (curl … | bash) used the same URL. The project moved to
    getkimchi/kimchi; the old path only resolves today via GitHub's
    transfer redirect, which silently breaks (or could be hijacked) if
    castai/kimchi is ever recreated.
  2. installation error #546 — Git Bash gets a misleading error. Git Bash, MSYS2 and Cygwin
    report mingw* / msys* / cygwin* from uname -s. These fell through
    to the catch-all *) arm and printed Windows: download the .zip from ….
  3. …pointing at a .zip that doesn't exist. The latest release
    (v0.1.17) ships only kimchi_{darwin,linux}_{amd64,arm64}.tar.gz — there
    is no Windows artifact at all.

Changes

  • Point the REPO default and the usage-comment URL at getkimchi/kimchi.
  • Recognize mingw*|msys*|cygwin* explicitly and tell users there is no
    native Windows build yet, directing them to run the installer inside WSL
    (where the Linux build works).
  • Replace the dead .zip hint in the catch-all with honest text that points
    at the releases page and states the supported platforms (macOS + Linux).

Verification

  • bash -n scripts/install.sh passes.
  • Simulated uname -s via a shim:
    • MINGW64_NT-10.0, MSYS_NT-10.0, CYGWIN_NT-10.0 → WSL guidance, exit 1.
    • an unknown OS (Plan9) → "macOS and Linux only" catch-all, exit 1.
    • The banner now reads Installing Kimchi from getkimchi/kimchi.

Closes #546

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

scripts/install.sh defaulted REPO to castai/kimchi and the usage comment
used the same URL. The project moved to getkimchi/kimchi, so these only
work via GitHub's transfer redirect today and break if the old name is
ever recreated.

Git Bash, MSYS2 and Cygwin report mingw*/msys*/cygwin* from `uname -s`
and fell through to the catch-all, which printed "Windows: download the
.zip" -- pointing at an artifact no release ships (v0.1.17 has only
darwin/linux tarballs). That misleading message is the bug in getkimchi#546.

- Default REPO and the usage URL to getkimchi/kimchi
- Match mingw*|msys*|cygwin* explicitly and direct users to WSL
- Replace the dead .zip hint in the catch-all with honest guidance

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@kimchi-review

kimchi-review Bot commented Jun 10, 2026

Copy link
Copy Markdown

Kimchi Code Review

Property Value
Commit 23f5749
Author @SharanKarchella
Files changed 0
Review status Completed
Comments 0
Duration 18s

Summary

📊 Review Score: 98/100 (overall code quality — 0 lowest, 100 highest)
⏱️ Estimated effort to review: 1/5 (1 = trivial, 5 = very complex)

🧪 Tests: no — No test files were modified. Install scripts are conventionally validated manually, and the diff contains only safe textual changes to URLs and error messages.

No significant issues found. LGTM! 🎉

What to expect

Kimchi will analyze the changes in this pull request and post:

  • A summary of the overall changes
  • Inline comments on specific lines with findings categorized by issue type

The review typically completes within a few minutes. This comment will be updated once the review is ready.

Interact with Kimchi
  • @kimchi review — re-trigger a full review on the latest commit
  • @kimchi summary — regenerate the PR summary
  • @kimchi ignore — skip this PR (no review will be posted)
  • Reply to any inline comment to ask follow-up questions or request clarification
Configuration

Reviews are configured by your organization admin.
Review instructions, excluded directories, and severity thresholds can be adjusted per repository in the Kimchi dashboard.


Powered by Kimchi — AI-powered code review by CAST AI

@readme-ai-writer

readme-ai-writer Bot commented Jun 10, 2026

Copy link
Copy Markdown

📚 No documentation changes were needed for this PR (Job ID: 6a28e84d18a1a556794af991).

@kimchi-review kimchi-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📊 Review Score: 98/100 (overall code quality — 0 lowest, 100 highest)
⏱️ Estimated effort to review: 1/5 (1 = trivial, 5 = very complex)

🧪 Tests: no — No test files were modified. Install scripts are conventionally validated manually, and the diff contains only safe textual changes to URLs and error messages.

No significant issues found. LGTM! 🎉

@castabar castabar added the needs-triage Newly opened, not yet reviewed label Jun 17, 2026
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

This PR has been marked as stale because it has not had recent activity. It will be closed tomorrow if no further activity occurs.

@github-actions github-actions Bot added the stale No recent activity label Aug 1, 2026
@github-actions github-actions Bot closed this Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-triage Newly opened, not yet reviewed stale No recent activity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

installation error

2 participants