diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2019-04-04 23:26:04 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2019-05-05 20:06:18 -0400 |
commit | 7e84d3eef724ef18f8e1c1b0932b6f74d3ae3e35 (patch) | |
tree | 63624f5e7e136e37f2fd6839ac2d167860f76155 /guix/build | |
parent | b5f05283548d1329672d23bf0cd9a9d31b9b364c (diff) |
build: go-build-system: Use WHEN for side-effect conditionals.
* guix/build/go-build-system.scm (unpack): Replace single branch `if' by
`when'.
Diffstat (limited to 'guix/build')
-rw-r--r-- | guix/build/go-build-system.scm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/guix/build/go-build-system.scm b/guix/build/go-build-system.scm index 973ee6e251..92a5c86d6c 100644 --- a/guix/build/go-build-system.scm +++ b/guix/build/go-build-system.scm @@ -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) |