Severity: Trivial (cleanup)
Category: Compose resolver
Platform: All
Confidence: Flagged during PR 2C review
Description
After PR 2C added manifest filtering to the user-extension loop in
resolve-compose-stack.sh, both the built-in and user-extension loops now have
their own local try: import yaml; yaml_available = True block. Duplication is
harmless but redundant — import yaml can be hoisted above both loops.
Affected file(s)
dream-server/scripts/resolve-compose-stack.sh — inline Python heredoc
Suggested approach
Move the import yaml / yaml_available block above the if ext_dir.exists():
guard so both loops share the same binding.
Labels
cleanup, resolver, tech-debt
Severity: Trivial (cleanup)
Category: Compose resolver
Platform: All
Confidence: Flagged during PR 2C review
Description
After PR 2C added manifest filtering to the user-extension loop in
resolve-compose-stack.sh, both the built-in and user-extension loops now havetheir own local
try: import yaml; yaml_available = Trueblock. Duplication isharmless but redundant —
import yamlcan be hoisted above both loops.Affected file(s)
dream-server/scripts/resolve-compose-stack.sh— inline Python heredocSuggested approach
Move the
import yaml / yaml_availableblock above theif ext_dir.exists():guard so both loops share the same binding.
Labels
cleanup,resolver,tech-debt