-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Description
On Windows (Git Bash / MINGW64), running bashclaw gateway fails with:
ensure_state_dir: command not found
Root Cause
The install script creates a file copy at ~/.local/bin/bashclaw instead of a symlink. The _bashclaw_resolve_root() function in the entry script checks for symlinks (-L), but since the file is a copy, BASHCLAW_ROOT resolves to ~/.local/bin/ instead of ~/.bashclaw/bin/. This means none of the lib/*.sh modules get sourced.
Steps to Reproduce
- Install BashClaw on Windows via the install script
- Run
bashclaw gatewayfrom Git Bash - Observe the
ensure_state_dir: command not founderror
Fix
Replace the copy at ~/.local/bin/bashclaw with a wrapper script:
#!/usr/bin/env bash
exec bash "$HOME/.bashclaw/bin/bashclaw" "$@"Or fix the install script to create a proper symlink, or resolve the path differently when symlinks aren't available.
Environment
- OS: Windows 11 (Git Bash / MINGW64)
- Bash: 5.2.37
- BashClaw: 1.0.0
Fix: wbw20000@fb2fc38
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels