From b01e496405b6a515f2f434350d7a06492ffd1757 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 29 Mar 2024 13:25:32 -0400 Subject: [PATCH] fix(cli): doom sync: rebuild-all loop Addresses an edge case where 'doom sync' could fall into an inescapable 'rebuild all packages' loop. Fix: #7775 --- lisp/cli/sync.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/cli/sync.el b/lisp/cli/sync.el index 6b7274e0e..e1a7e2abb 100644 --- a/lisp/cli/sync.el +++ b/lisp/cli/sync.el @@ -91,7 +91,7 @@ OPTIONS: (when (doom-profile-generate) (print! (item "Restart Emacs or use 'M-x doom/reload' for changes to take effect")) (run-hooks 'doom-after-sync-hook)) - (when (and (not rebuild?) (not nobuild?)) + (when (or rebuild? (not (file-exists-p doom-cli-sync-info-file))) (with-temp-file doom-cli-sync-info-file (prin1 (cons emacs-version (system-name)) (current-buffer)))) t)