Clear the packages derivation cache

As this should help prevent issues when the previously cached derivation is
removed from the store.
This commit is contained in:
Christopher Baines 2019-04-10 20:20:42 +01:00
parent 14cb5425d4
commit dbec236928

View file

@ -224,6 +224,7 @@
store-path store-path
(begin (begin
(invalidate-derivation-caches!) (invalidate-derivation-caches!)
(hash-clear! (@@ (guix packages) %derivation-cache))
(let* ((guix-package (@ (gnu packages package-management) (let* ((guix-package (@ (gnu packages package-management)
guix)) guix))
(derivation (package-derivation store guix-package))) (derivation (package-derivation store guix-package)))