[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/24: build-system/haskell: Explain failure.
From: |
guix-commits |
Subject: |
09/24: build-system/haskell: Explain failure. |
Date: |
Fri, 8 Oct 2021 03:20:41 -0400 (EDT) |
lbraun pushed a commit to branch master
in repository guix.
commit b74ca403cbb11c60d57b6a0148d97c6572019754
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 master updated (3fc0fa9 -> c8a7ba6), guix-commits, 2021/10/08
- 01/24: guix: haskell-build-system: Always pass -package-db option., guix-commits, 2021/10/08
- 03/24: import: stackage: Update %default-lts-version to 18.10., guix-commits, 2021/10/08
- 02/24: gnu: ghc-8: Update to 8.10., guix-commits, 2021/10/08
- 06/24: build-system/haskell: Do not rely on compiler name., guix-commits, 2021/10/08
- 04/24: import: hackage: Update GHC’s standard libraries., guix-commits, 2021/10/08
- 08/24: import: hackage: Support mirror:// URLs, guix-commits, 2021/10/08
- 05/24: import: stackage: Support input changes., guix-commits, 2021/10/08
- 09/24: build-system/haskell: Explain failure.,
guix-commits <=
- 07/24: build-system/haskell: Accept line breaks in config files., guix-commits, 2021/10/08
- 10/24: gnu: Update Haskell ecosystem., guix-commits, 2021/10/08
- 11/24: gnu: cabal-install: Build with GHC 8.10., guix-commits, 2021/10/08
- 12/24: gnu: hedgewars: Fix build., guix-commits, 2021/10/08
- 15/24: gnu: idris: Fix build., guix-commits, 2021/10/08
- 13/24: gnu: ruby-pandoc-ruby: Disable tests., guix-commits, 2021/10/08
- 14/24: gnu: ghc-silently: Remove unused input., guix-commits, 2021/10/08
- 16/24: gnu: ngless: Fix build., guix-commits, 2021/10/08
- 17/24: gnu: python-pypandoc: Upgrade to 1.6.4., guix-commits, 2021/10/08
- 18/24: gnu: ghc-repline: Remove version 0.2.0.0., guix-commits, 2021/10/08