Skip to content

Commit 73d86c2

Browse files
yasinBursaliclaude
andcommitted
fix: skip GPU/mode overlays when extension base compose_file is missing
resolve-compose-stack.sh included GPU overlay files (compose.nvidia.yaml, compose.amd.yaml) even when the base compose_file declared in the manifest did not exist on disk. This caused silent Docker Compose merge failures because the GPU overlay expects services defined in the base file. Add an else guard: if compose_file is specified but missing (and no .disabled sibling exists), log a warning and skip all overlays for that extension. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7d2da71 commit 73d86c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dream-server/scripts/resolve-compose-stack.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ if ext_dir.exists():
168168
resolved.append(str(compose_path.relative_to(script_dir)))
169169
elif (service_dir / f"{compose_rel}.disabled").exists():
170170
continue # Service disabled — skip all overlays
171+
else:
172+
print(f"WARNING: {service_dir.name}: compose_file '{compose_rel}' not found, skipping overlays", file=sys.stderr)
173+
continue # Base compose missing — skip GPU/mode overlays
171174
# GPU-specific overlay (filesystem discovery — not in manifest)
172175
gpu_overlay = service_dir / f"compose.{gpu_backend}.yaml"
173176
if gpu_overlay.exists():

0 commit comments

Comments
 (0)