Prevent 'doom sync' rebuilding all packages, each time
This commit is contained in:
parent
e4d508b47f
commit
15a58d5b81
1 changed files with 2 additions and 1 deletions
|
@ -173,7 +173,7 @@ declaration) or dependency thereof that hasn't already been."
|
|||
(unless force-p
|
||||
(straight--make-build-cache-available))
|
||||
(if-let (built
|
||||
(doom--with-package-recipes recipes (package local-repo)
|
||||
(doom--with-package-recipes recipes (package local-repo recipe)
|
||||
(unless force-p
|
||||
;; Ensure packages with outdated files/bytecode are rebuilt
|
||||
(let ((build-dir (straight--build-dir package))
|
||||
|
@ -189,6 +189,7 @@ declaration) or dependency thereof that hasn't already been."
|
|||
if (and (file-exists-p elc-file)
|
||||
(file-newer-than-file-p file elc-file))
|
||||
return t)))
|
||||
(not (plist-get recipe :no-build))
|
||||
(puthash package t straight--packages-to-rebuild))))
|
||||
(straight-use-package (intern package))))
|
||||
(print! (success "Rebuilt %d package(s)") (length built))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue