From ba990a6c9d0b2eee6969b49973b6bd8714df9825 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 23 Jul 2019 21:54:50 +0200 Subject: [PATCH] Build package autoloads in install order #374 Before this update, the autoloads files were collected in lexicographical order (by traversing straight's build directory). By using straight--build-cache's keys (which are entered in the order they were registered) we avoid issues like --- core/cli/autoloads.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/cli/autoloads.el b/core/cli/autoloads.el index edc96143b..611fe160f 100644 --- a/core/cli/autoloads.el +++ b/core/cli/autoloads.el @@ -312,7 +312,7 @@ Run this whenever your `doom!' block, or a module autoload file, is modified." (defun doom--generate-package-autoloads () "Concatenates package autoload files, let-binds `load-file-name' around them,and remove unnecessary `provide' statements or blank links." - (dolist (pkg (straight--directory-files (straight--build-dir))) + (dolist (pkg (hash-table-keys straight--build-cache)) (unless (member pkg doom-autoload-excluded-packages) (let ((file (straight--autoloads-file pkg))) (when (file-exists-p file)