Skip to content

setup fails on Windows: Bun shell doesn't support subshells with redirection in build script #1538

@andrewitte

Description

@andrewitte

Environment

  • OS: Windows 11 Enterprise (10.0.26100)
  • Shell: Git Bash (via PowerShell wrapper)
  • Bun: 1.3.13
  • gstack version: 1.39.1.0 (upgrading from 1.17.0.0)

What happened

./setup fails during bun run build with:

error: Failed to run script build due to error Subshells with redirections are currently not supported. Please open a GitHub issue.

The offending pattern in the build script (package.json) is:

( git rev-parse HEAD 2>/dev/null || true ) > browse/dist/.version

Bun's built-in shell doesn't support ( ... ) > file redirection from a subshell. This blocks the upgrade from completing — binaries don't rebuild, and downstream chmod / cleanup steps never run.


## Reproduction
On Windows with Bun 1.3.13, install gstack 1.17.0.0
Run /gstack-upgrade (or ./setup directly after git pull)
Build fails at the .version write step

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions