mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
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
1 changed files with 4 additions and 1 deletions
|
@ -370,7 +370,10 @@ (define replacements
|
|||
(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 a new issue