mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-07 13:40:36 +02: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user