mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-15 13:45:54 +02:00
grafts: Actually cache grafts during the derivation DAG traversal.
This fixes a regression introduced in
d38bc9a9f6 whereby the cache was
effectively disabled.
Reported by Thomas Danckaert <thomas.danckaert@gmail.com>.
* guix/grafts.scm (with-cache): In the cache miss case, wrap body in
'mbegin'.
This commit is contained in:
+3
-2
@@ -222,8 +222,9 @@ available."
|
||||
(return result))
|
||||
(#f ;cache miss
|
||||
(mlet %state-monad ((result (begin exp ...)))
|
||||
(set-current-state (vhash-consq key result cache))
|
||||
(return result))))))
|
||||
(mbegin %state-monad
|
||||
(set-current-state (vhash-consq key result cache))
|
||||
(return result)))))))
|
||||
|
||||
(define* (cumulative-grafts store drv grafts
|
||||
references
|
||||
|
||||
Reference in New Issue
Block a user