[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/08: guix build: Gracefully handle invalid '--with-git-url' specs.
From: |
guix-commits |
Subject: |
08/08: guix build: Gracefully handle invalid '--with-git-url' specs. |
Date: |
Tue, 14 May 2019 06:15:58 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 45d41c035ec23d68f67b69255a5ab8f02b42a5ed
Author: Ludovic Courtès <address@hidden>
Date: Tue May 14 12:08:03 2019 +0200
guix build: Gracefully handle invalid '--with-git-url' specs.
* guix/scripts/build.scm (transform-package-source-git-url): Add case
for when 'string-split' does not return exactly two elements.
---
guix/scripts/build.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/guix/scripts/build.scm b/guix/scripts/build.scm
index 8d5411e..8fa700c 100644
--- a/guix/scripts/build.scm
+++ b/guix/scripts/build.scm
@@ -370,7 +370,10 @@ a checkout of the Git repository at the given URL."
(package
(inherit old)
(source (git-checkout (url url)
- (recursive? #t)))))))))
+ (recursive? #t)))))))
+ (_
+ (leave (G_ "~a: invalid Git URL replacement specification~%")
+ spec))))
replacement-specs))
(define rewrite
- branch master updated (ae5de93 -> 45d41c0), guix-commits, 2019/05/14
- 01/08: gnu: hdf5: Build a thread-safe library., guix-commits, 2019/05/14
- 04/08: gnu: munge: Pass '--localstatedir=/var'., guix-commits, 2019/05/14
- 03/08: services: Add 'network-manager-applet' to %DESKTOP-SERVICES., guix-commits, 2019/05/14
- 08/08: guix build: Gracefully handle invalid '--with-git-url' specs.,
guix-commits <=
- 06/08: installer: Allow for arbitrary long passphrases and passwords., guix-commits, 2019/05/14
- 07/08: gnu: Add emacs-evil-cleverparens, guix-commits, 2019/05/14
- 02/08: gnu: hdf5: Add dependency on Perl., guix-commits, 2019/05/14
- 05/08: gnu: Add font-hermit, guix-commits, 2019/05/14