fix(cli): update recipe repos (MELPA/ELPA/etc) earlier
If done before we collect our recipe lists, we (hopefully) dodge some stale-recipe race conditions.
This commit is contained in:
parent
fe2af3c344
commit
9634500a3b
1 changed files with 1 additions and 2 deletions
|
@ -376,6 +376,7 @@ declaration) or dependency thereof that hasn't already been."
|
||||||
"Updates packages."
|
"Updates packages."
|
||||||
(doom-initialize-packages)
|
(doom-initialize-packages)
|
||||||
(doom--barf-if-incomplete-packages)
|
(doom--barf-if-incomplete-packages)
|
||||||
|
(doom--cli-recipes-update)
|
||||||
(let* ((repo-dir (straight--repos-dir))
|
(let* ((repo-dir (straight--repos-dir))
|
||||||
(pinned (doom-package-pinned-list))
|
(pinned (doom-package-pinned-list))
|
||||||
(recipes (doom-package-recipe-list))
|
(recipes (doom-package-recipe-list))
|
||||||
|
@ -385,8 +386,6 @@ declaration) or dependency thereof that hasn't already been."
|
||||||
(esc (unless doom-debug-p "\033[1A"))
|
(esc (unless doom-debug-p "\033[1A"))
|
||||||
(i 0)
|
(i 0)
|
||||||
errors)
|
errors)
|
||||||
(when recipes
|
|
||||||
(doom--cli-recipes-update))
|
|
||||||
(print! (start "Updating packages (this may take a while)..."))
|
(print! (start "Updating packages (this may take a while)..."))
|
||||||
(doom--with-package-recipes recipes (recipe package type local-repo)
|
(doom--with-package-recipes recipes (recipe package type local-repo)
|
||||||
(cl-incf i)
|
(cl-incf i)
|
||||||
|
|
Loading…
Reference in a new issue