gstack icon indicating copy to clipboard operation
gstack copied to clipboard

macOS: mv -T (GNU flag) breaks capy-install launch/bun publish

Open creova-gif opened this issue 3 days ago • 2 comments

bin/gstack-capy-install and bin/gstack-node-runtime.sh use GNU-only mv -T / mv -fT flags. On macOS (BSD mv) this fails with mv: illegal option -- T, so gstack-upgrade fast-forwards the checkout but the reinstall step dies at gstack_launch_dir / bun publish with INSTALL_PREFLIGHT_FAILED.

Repro: macOS, Capy-marked install (.git/gstack-capy-install.state), run bin/gstack-upgrade when a reinstall is pending.

Observed on gstack 1.105.4.0 -> 1.106.1.0.

Sites:

  • bin/gstack-node-runtime.sh:95 mv -T "$tmp/pub" "$store/$v"
  • bin/gstack-node-runtime.sh:116 mv -fT "$tmp/$name" "$dir/$name"
  • bin/gstack-capy-install:277 mv -fT ... bun / bunx
  • bin/gstack-capy-install:279 mv -T "$TMP/pub" "$STORE/$WANT"

Local workaround that unblocked the reinstall: drop the -T flags (destinations are files/symlinks the script owns, so plain mv -f is equivalent here).

creova-gif avatar Dec 01 '26 17:12 creova-gif

Checked

DananjayaNadun avatar Dec 02 '26 04:12 DananjayaNadun

Confirmed on main (bin/gstack-capy-install:277,279 and bin/gstack-node-runtime.sh:95,116 use GNU-only mv -T/mv -fT, which fails on macOS BSD mv). A fix is in progress now to replace them with POSIX/BSD-portable publishing and add a regression test.

capy-ai[bot] avatar Dec 02 '26 14:12 capy-ai[bot]