mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
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
1 changed files with 4 additions and 0 deletions
|
@ -158,6 +158,10 @@ (define* (unpack #:key source import-path unpack-path #:allow-other-keys)
|
|||
((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 a new issue