From 6fcaa803550bb0bfea4a558f8912502a8623d6bb Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 26 Jul 2019 20:13:08 +0200 Subject: [PATCH] Improve autoloads mtime scanning on packages Scan source files in build directory rather than repos, which are better indicators of a stale autoloads file. --- core/cli/autoloads.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/cli/autoloads.el b/core/cli/autoloads.el index ce30d2049..5930da6b3 100644 --- a/core/cli/autoloads.el +++ b/core/cli/autoloads.el @@ -364,11 +364,11 @@ This should be run whenever your `doom!' block or update your packages." (if (and (not force-p) (file-exists-p doom-package-autoload-file) (not (file-newer-than-file-p doom-elpa-dir doom-package-autoload-file)) - (not (cl-loop for dir in (straight--directory-files (straight--repos-dir)) + (not (cl-loop for dir in (straight--directory-files (straight--build-dir)) if (cl-find-if (lambda (dir) (file-newer-than-file-p dir doom-package-autoload-file)) - (doom-glob (straight--repos-dir dir) "*.el")) + (doom-glob (straight--build-dir dir) "*.el")) return t)) (not (cl-loop with doom-modules = (doom-modules) for key being the hash-keys of doom-modules