HCoop
/
jackhill
/
guix
/
guix.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcc3d40
)
guix build: Gracefully handle invalid '--with-git-url' specs.
author
Ludovic Courtès
<ludo@gnu.org>
Tue, 14 May 2019 10:08:03 +0000
(12:08 +0200)
committer
Ludovic Courtès
<ludo@gnu.org>
Tue, 14 May 2019 10:11:05 +0000
(12:11 +0200)
* 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
patch
|
blob
|
blame
|
history
diff --git
a/guix/scripts/build.scm
b/guix/scripts/build.scm
index
8d5411e
..
8fa700c
100644
(file)
--- 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