1
0
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:
Ludovic Courtès
2017-01-16 21:59:00 +01:00
parent b09903619f
commit 90ad5c8836
+3 -2
View File
@@ -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