aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-04-10 20:20:42 +0100
committerChristopher Baines <mail@cbaines.net>2019-04-10 20:20:42 +0100
commitdbec23692854ab7686ed83c7cf43c39ddcc6c3a4 (patch)
tree8ad23bb8d0978f5352b1f374ee3554f17e08bf11
parent14cb5425d4d4eb87f636eb30e3bcae71414421f8 (diff)
downloaddata-service-dbec23692854ab7686ed83c7cf43c39ddcc6c3a4.tar
data-service-dbec23692854ab7686ed83c7cf43c39ddcc6c3a4.tar.gz
Clear the packages derivation cache
As this should help prevent issues when the previously cached derivation is removed from the store.
-rw-r--r--guix-data-service/jobs/load-new-guix-revision.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/guix-data-service/jobs/load-new-guix-revision.scm b/guix-data-service/jobs/load-new-guix-revision.scm
index 94b0c0b..4218849 100644
--- a/guix-data-service/jobs/load-new-guix-revision.scm
+++ b/guix-data-service/jobs/load-new-guix-revision.scm
@@ -224,6 +224,7 @@
store-path
(begin
(invalidate-derivation-caches!)
+ (hash-clear! (@@ (guix packages) %derivation-cache))
(let* ((guix-package (@ (gnu packages package-management)
guix))
(derivation (package-derivation store guix-package)))