aboutsummaryrefslogtreecommitdiff
path: root/guix-build-coordinator
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2024-05-10 20:22:20 +0100
committerChristopher Baines <mail@cbaines.net>2024-05-10 21:08:01 +0100
commita138c55173a66713b808f0d5f5b21d7048e5d6c8 (patch)
treef95a8dbe825123f8e46151b6095c612fc8e973a9 /guix-build-coordinator
parent3620e1bea9ab158c34bdc790417ba7aa1946df63 (diff)
downloadbuild-coordinator-a138c55173a66713b808f0d5f5b21d7048e5d6c8.tar
build-coordinator-a138c55173a66713b808f0d5f5b21d7048e5d6c8.tar.gz
Avoid with-store/non-blocking
As I'm seeing exceptions around here, but I think the syntax rule may be hiding exactly where.
Diffstat (limited to 'guix-build-coordinator')
-rw-r--r--guix-build-coordinator/client-communication.scm3
-rw-r--r--guix-build-coordinator/utils.scm1
2 files changed, 3 insertions, 1 deletions
diff --git a/guix-build-coordinator/client-communication.scm b/guix-build-coordinator/client-communication.scm
index b3d8e55..80d8c96 100644
--- a/guix-build-coordinator/client-communication.scm
+++ b/guix-build-coordinator/client-communication.scm
@@ -461,7 +461,8 @@
derivation))))
(define (read-drv/substitute derivation-file)
- (with-store/non-blocking store
+ (with-store store
+ (ensure-non-blocking-store-connection store)
(unless (valid-path? store derivation-file)
(substitute-derivation store
derivation-file
diff --git a/guix-build-coordinator/utils.scm b/guix-build-coordinator/utils.scm
index 6840ddd..297d777 100644
--- a/guix-build-coordinator/utils.scm
+++ b/guix-build-coordinator/utils.scm
@@ -64,6 +64,7 @@
read-derivation-from-file*
non-blocking-port
+ ensure-non-blocking-store-connection
with-store/non-blocking
substitute-derivation