[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/10: build-system/haskell: Explain failure.
From: |
guix-commits |
Subject: |
09/10: build-system/haskell: Explain failure. |
Date: |
Mon, 27 Sep 2021 06:56:35 -0400 (EDT) |
lbraun pushed a commit to branch wip-haskell
in repository guix.
commit c731961aa45a21c3720daf1be5494602665dd64b
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Sun Sep 19 11:10:16 2021 +0200
build-system/haskell: Explain failure.
Provide human-readable failure message and explain how to fix it.
* guix/build/haskell-build-system.scm (register): Raise error if source
file does not exist.
---
guix/build/haskell-build-system.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/guix/build/haskell-build-system.scm
b/guix/build/haskell-build-system.scm
index 4d0bf6f..ef6cb31 100644
--- a/guix/build/haskell-build-system.scm
+++ b/guix/build/haskell-build-system.scm
@@ -217,6 +217,8 @@ given Haskell package."
(if (not (vhash-assoc id seen))
(let ((dep-conf (string-append src "/" id ".conf"))
(dep-conf* (string-append dest "/" id ".conf")))
+ (when (not (file-exists? dep-conf))
+ (error (format #f "File ~a does not exist. This usually
means the dependency ~a is missing. Was checking conf-file ~a." dep-conf id
conf-file)))
(copy-file dep-conf dep-conf*) ;XXX: maybe symlink instead?
(loop (vhash-cons id #t seen)
(append lst (conf-depends dep-conf))))
- branch wip-haskell created (now 1c4e765), guix-commits, 2021/09/27
- 01/10: guix: haskell-build-system: Always pass -package-db option., guix-commits, 2021/09/27
- 03/10: import: stackage: Update %default-lts-version to 18.10., guix-commits, 2021/09/27
- 04/10: import: hackage: Update GHC’s standard libraries., guix-commits, 2021/09/27
- 08/10: import: hackage: Support mirror:// URLs, guix-commits, 2021/09/27
- 09/10: build-system/haskell: Explain failure.,
guix-commits <=
- 06/10: build-system/haskell: Do not rely on compiler name., guix-commits, 2021/09/27
- 10/10: gnu: Update Haskell ecosystem., guix-commits, 2021/09/27
- 05/10: import: stackage: Support input changes., guix-commits, 2021/09/27
- 02/10: gnu: ghc-8: Update to 8.10., guix-commits, 2021/09/27
- 07/10: build-system/haskell: Accept line breaks in config files., guix-commits, 2021/09/27