From af0526778a5472c996a801700b8e1264291c6c17 Mon Sep 17 00:00:00 2001 From: garrytan Date: Sat, 31 Oct 2026 19:07:29 +0000 Subject: [PATCH] fix: pre-landing review fixes (pass 2) Keep Windows drive-letter state roots absolute when anchoring a relative root, and say which writers do not take the lock yet. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- bin/gstack-developer-profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/gstack-developer-profile b/bin/gstack-developer-profile index 2e2978544f..ba74573df5 100755 --- a/bin/gstack-developer-profile +++ b/bin/gstack-developer-profile @@ -44,7 +44,7 @@ GSTACK_HOME="$_gstack_sr_root" # A relative state root is anchored to the starting directory once, here: # do_derive changes directory, and the profile lock must name the same path # when it is taken and when it is released. -case "$GSTACK_HOME" in /*) ;; *) GSTACK_HOME="$PWD/$GSTACK_HOME" ;; esac +case "$GSTACK_HOME" in /*|[A-Za-z]:[\\/]*) ;; *) GSTACK_HOME="$PWD/$GSTACK_HOME" ;; esac # Windows git-bash: GSTACK_HOME resolves to an MSYS path (/c/Users/...), which # Bun on Windows cannot open as a filesystem path (bites --derive). Normalize # once, here, before PROFILE_FILE/LEGACY_FILE are derived from it below — @@ -72,6 +72,8 @@ shift || true # cannot get the lock within the give-up window writes nothing and exits 5. # Same shape as bin/gstack-settings-hook's mutation lock, with its accepted # tradeoff: two waiters that take over the same stale lock at once can race. +# Writers outside this binary (gstack-distill-apply, /plan-tune's declared +# edits) do not take the lock yet. # ----------------------------------------------------------------------- LOCK_DIR="$PROFILE_FILE.lock" LOCK_TOKEN=""