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 @@ 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 | ||||
|  |  | |||
		Reference in a new issue