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.
This commit is contained in:
parent
dcc3d4030f
commit
45d41c035e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user