fix: Prevent installer from crashing on Emacs warnings and verify tangle
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 2s

This commit is contained in:
2026-04-16 12:45:46 -04:00
parent 118a0696fe
commit 79977abdf7

View File

@@ -47,7 +47,13 @@ fi
# 3. Literate Tangling # 3. Literate Tangling
echo -e "${BLUE}Tangling Literate Org files into source code...${NC}" echo -e "${BLUE}Tangling Literate Org files into source code...${NC}"
emacs --batch --eval "(require 'org)" --eval "(mapc 'org-babel-tangle-file (file-expand-wildcards \"literate/*.org\"))" # Use || true because Emacs might return non-zero on warnings, but we only care if src/ actually gets populated
emacs --batch --eval "(require 'org)" --eval "(mapc 'org-babel-tangle-file (file-expand-wildcards \"literate/*.org\"))" || echo -e "${YELLOW}! Emacs finished with warnings.${NC}"
if [ ! -f "src/package.lisp" ]; then
echo -e "${RED}✗ Tangling failed. Source files not generated.${NC}"
exit 1
fi
echo -e "${GREEN}✓ Core tangled.${NC}" echo -e "${GREEN}✓ Core tangled.${NC}"
# 4. Environment Configuration # 4. Environment Configuration