From 09719aa635ca6576b4fe735181cf198b2a14cd8c Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 9 Apr 2026 19:39:18 +0000 Subject: [PATCH] fix: bug: generate_compose() emits unresolved ${PROJECT_NAME} in PROJECT_REPO_ROOT (#518) Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/generators.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/generators.sh b/lib/generators.sh index 4a46c39..5bb72f7 100644 --- a/lib/generators.sh +++ b/lib/generators.sh @@ -241,6 +241,10 @@ networks: driver: bridge COMPOSEEOF + # Patch PROJECT_REPO_ROOT — interpolate PROJECT_NAME at generation time + # (Docker Compose cannot resolve it; it's a shell variable, not a .env var) + sed -i "s|\${PROJECT_NAME:-project}|${PROJECT_NAME}|g" "$compose_file" + # Patch the Claude CLI binary path — resolve from host PATH at init time. local claude_bin claude_bin="$(command -v claude 2>/dev/null || true)"