Skip to content

Fix build script failure on Windows#93

Open
lucasbraud wants to merge 1 commit intogarrytan:mainfrom
lucasbraud:fix/windows-build-glob
Open

Fix build script failure on Windows#93
lucasbraud wants to merge 1 commit intogarrytan:mainfrom
lucasbraud:fix/windows-build-glob

Conversation

@lucasbraud
Copy link

Summary

  • The rm -f .*.bun-build cleanup step in the build script fails on Windows/Git Bash when no files match the glob pattern
  • This causes bun run build to exit with code 1, which in turn causes ./setup to abort (due to set -e) before creating skill symlinks
  • Fix: append || true so the cleanup is non-fatal

Reproduction

  1. Run ./setup on Windows with Git Bash
  2. Build completes successfully but rm -f .*.bun-build returns exit code 1
  3. set -e in setup aborts before skill symlinks are created
  4. Skills like /plan-ceo-review are not available

Fix

One-character change: rm -f .*.bun-buildrm -f .*.bun-build || true

The `rm -f .*.bun-build` glob cleanup step fails on Windows/Git Bash
when no files match the pattern, causing `bun run build` to exit with
code 1. Since the setup script uses `set -e`, this aborts the entire
setup before skill symlinks are created.

Adding `|| true` makes the cleanup step non-fatal, which matches the
intent — it's just removing stale build artifacts if they exist.
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.

1 participant