@@ -5887,6 +5887,15 @@ Return non-nil when package is initially installed, nil otherwise."
5887
5887
straight--repo-cache)
5888
5888
(lambda (pkg ) (not (member pkg installed)))))
5889
5889
nil nil nil 'interactive ))
5890
+ ; ; Do this unconditionally, at the very beginning, because we want
5891
+ ; ; to have caches loaded right away - they're needed even for
5892
+ ; ; `straight--convert-recipe' , to populate the recipe lookup cache.
5893
+ ; ;
5894
+ ; ; Even for packages with `no-build' enabled, we will want the cache
5895
+ ; ; later, as well, since for those packages we still want to check
5896
+ ; ; for modifications and (if any) invalidate the relevant entry in
5897
+ ; ; the recipe lookup cache.
5898
+ (straight--make-build-cache-available)
5890
5899
(let ((recipe (straight--convert-recipe
5891
5900
(or
5892
5901
(straight--get-overridden-recipe
@@ -5956,11 +5965,6 @@ Return non-nil when package is initially installed, nil otherwise."
5956
5965
; ; We didn't decide to abort, and the repository still
5957
5966
; ; isn't available. Make it available.
5958
5967
(straight--clone-repository recipe cause))
5959
- ; ; Do this even for packages with `no-build' enabled, as we
5960
- ; ; still want to check for modifications and (if any)
5961
- ; ; invalidate the relevant entry in the recipe lookup
5962
- ; ; cache.
5963
- (straight--make-build-cache-available)
5964
5968
(let* ((no-build
5965
5969
(or
5966
5970
; ; Remember that `no-build' can come both from the
0 commit comments