mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-16 18:05:31 +02:00
fix: make the setup composites rerun-safe (codex diff-review hardenings)
restore-deps: 'cp -r SRC node_modules' with an existing node_modules NESTS the copy and leaves stale deps active — rm first. register-gstack-skills: 'ln -snf' hard-errors under set -eu when a REAL directory occupies the gstack slot — clear a non-symlink leftover first. CI workspaces are fresh today; a reusable composite must survive dirty reruns. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
46da3f1972
commit
79efe395dc
@@ -13,6 +13,11 @@ runs:
|
||||
- shell: bash
|
||||
run: |
|
||||
if [ -d /opt/node_modules_cache ] && diff -q /opt/node_modules_cache/.bun.lock bun.lock >/dev/null 2>&1; then
|
||||
# rm first: `cp -r SRC node_modules` with an existing node_modules
|
||||
# NESTS the copy (node_modules/node_modules_cache) and leaves stale
|
||||
# deps active. CI workspaces are fresh today, but a reusable
|
||||
# composite must survive a rerun/dirty workspace (codex diff review).
|
||||
rm -rf node_modules
|
||||
cp -r /opt/node_modules_cache node_modules
|
||||
else
|
||||
bun install
|
||||
|
||||
Reference in New Issue
Block a user