Skip to content

Fix Windows install: route Git Bash to PS1, pin tar to bsdtar#4

Open
yyy900 wants to merge 1 commit into
mainfrom
fix-windows-install
Open

Fix Windows install: route Git Bash to PS1, pin tar to bsdtar#4
yyy900 wants to merge 1 commit into
mainfrom
fix-windows-install

Conversation

@yyy900

@yyy900 yyy900 commented May 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

Two Windows install failures, both in the bootstrap scripts:

  • install.sh reported unsupported platform: MINGW64_NT-... — Git Bash's uname -s returns MINGW64_NT-..., which fell through the Darwin/Linux case to the error branch. Windows is supported (via the PowerShell installer), so the message was misleading. Added a MINGW*|MSYS*|CYGWIN* case that points the user at the PowerShell one-liner.
  • install.ps1 died with tar: Cannot connect to C: resolve failedtar -xzf ran against paths like C:\Users\.... When a GNU tar from Git Bash is first on PATH, it parses the C: as a host:path remote and tries to connect to host C. Pinned extraction to Windows' bundled bsdtar at %SystemRoot%\System32\tar.exe, which handles drive letters.

Still open (not in this PR — hosting config)

agent.openonion.ai/install.ps1 currently 404s and /install only 307-redirects to install.sh. The PowerShell short URL needs a Vercel route (serve the .ps1 directly, 200, no redirect) before irm agent.openonion.ai/install.ps1 | iex works. This PR's install.sh message points at the raw GitHub URL to avoid that dependency.

Test plan

  • sh -n install.sh passes
  • On Windows + Git Bash: curl -fsSL agent.openonion.ai/install | sh prints the PowerShell redirect instead of "unsupported platform"
  • On Windows PowerShell with Git Bash on PATH: irm https://raw.githubusercontent.com/openonion/oo/main/install.ps1 | iex extracts CPython without the tar: Cannot connect to C: error

🤖 Generated with Claude Code

install.sh treated Git Bash as an unsupported platform: `uname -s` returns
MINGW64_NT-... which fell through to the error branch. Add a
MINGW*/MSYS*/CYGWIN* case that points Windows users at the PowerShell
installer instead.

install.ps1 ran `tar -xzf` against paths like C:\Users\...; a GNU tar from
Git Bash on PATH parses the "C:" as a remote host (tar: Cannot connect to C:
resolve failed). Pin extraction to Windows' bundled bsdtar at
System32\tar.exe, which handles drive letters.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Aaliennn

Aaliennn commented Jul 3, 2026

Copy link
Copy Markdown

My new jio
Free fire panel

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.

2 participants