mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
grafts: Update the narinfo cache before building a derivation.
* guix/grafts.scm (references-oracle)[references*]: Add call to 'substitution-oracle'.
This commit is contained in:
parent
026ca50fa4
commit
264fdedb40
1 changed files with 6 additions and 0 deletions
|
@ -189,6 +189,12 @@ (define (references* items)
|
||||||
(guard (c ((nix-protocol-error? c)
|
(guard (c ((nix-protocol-error? c)
|
||||||
;; As a last resort, build DRV and query the references of the
|
;; As a last resort, build DRV and query the references of the
|
||||||
;; build result.
|
;; build result.
|
||||||
|
|
||||||
|
;; Warm up the narinfo cache, otherwise each derivation build
|
||||||
|
;; will result in one HTTP request to get one narinfo, which is
|
||||||
|
;; much less efficient than fetching them all upfront.
|
||||||
|
(substitution-oracle store (list drv))
|
||||||
|
|
||||||
(and (build-derivations store (list drv))
|
(and (build-derivations store (list drv))
|
||||||
(map (cut references store <>) items))))
|
(map (cut references store <>) items))))
|
||||||
(references/substitutes store items)))
|
(references/substitutes store items)))
|
||||||
|
|
Loading…
Reference in a new issue