From 15779e7a16c0f7099c95d452603bd1d16fd2b78d Mon Sep 17 00:00:00 2001 From: yuhan0 Date: Thu, 27 Aug 2020 23:17:18 +0800 Subject: [PATCH] Filter directories when rebuilding straight repos Prevents auto-generated files like .DS_Store on macOS from causing an error. --- core/cli/packages.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/cli/packages.el b/core/cli/packages.el index 50dfcf860..90debf0c2 100644 --- a/core/cli/packages.el +++ b/core/cli/packages.el @@ -490,8 +490,9 @@ If ELPA-P, include packages installed with package.el (M-x package-install)." (and (or repos-p regraft-repos-p) (straight--directory-files (straight--repos-dir) nil nil 'sort)))) (list (when builds-p - (seq-remove (doom-rpartial #'gethash straight--profile-cache) - (straight--directory-files (straight--build-dir) nil nil 'sort))) + (seq-filter #'file-directory-p + (seq-remove (doom-rpartial #'gethash straight--profile-cache) + (straight--directory-files (straight--build-dir) nil nil 'sort)))) (when repos-p (seq-remove (doom-rpartial #'straight--checkhash straight--repo-cache) rdirs))