From f71901a96c6b971f2b92ad8e68447fe143ac552c Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 24 Oct 2020 15:46:47 +0100 Subject: Use valid-path? rather than file exists for testing store items As the file might exist, but ignored because the daemon is treating it as invalid. --- guix-build-coordinator/utils.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'guix-build-coordinator/utils.scm') diff --git a/guix-build-coordinator/utils.scm b/guix-build-coordinator/utils.scm index f12cab0..ef26d3a 100644 --- a/guix-build-coordinator/utils.scm +++ b/guix-build-coordinator/utils.scm @@ -317,7 +317,8 @@ upcoming chunk." (lambda (key . args) ;; This is a hack, to ignore errors relating to closing the store ;; connection. - (if (file-exists? derivation-name) + (if (with-store store + (valid-path? store derivation-name)) #t (error (simple-format #f "could not substitute ~A\n" derivation-name)))))) -- cgit v1.2.3