build: go-build-system: Use WHEN for side-effect conditionals.
* guix/build/go-build-system.scm (unpack): Replace single branch `if' by `when'.
This commit is contained in:
parent
b5f0528354
commit
7e84d3eef7
@ -158,6 +158,10 @@ unpacking."
|
||||
((display "WARNING: The Go import path is unset.\n")))
|
||||
(if (string-null? unpack-path)
|
||||
(set! unpack-path import-path))
|
||||
(when (string-null? import-path)
|
||||
((display "WARNING: The Go import path is unset.\n")))
|
||||
(when (string-null? unpack-path)
|
||||
(set! unpack-path import-path))
|
||||
(let ((dest (string-append (getenv "GOPATH") "/src/" unpack-path)))
|
||||
(mkdir-p dest)
|
||||
(if (file-is-directory? source)
|
||||
|
Loading…
Reference in New Issue
Block a user