build-system/go: Fix installation path of executable files.

* guix/build/go-build-system.scm (setup-environment): Set GOBIN correctly.
This commit is contained in:
Leo Famulari 2017-10-25 22:43:36 -04:00
parent 0cbcab7254
commit 552ee77250
No known key found for this signature in database
GPG key ID: 2646FA30BACA7F08

View file

@ -171,7 +171,7 @@ (define* (setup-environment #:key inputs outputs #:allow-other-keys)
(setenv "GOPATH" (string-append (getcwd) ":" (getenv "GOPATH")))
(setenv "GOPATH" (getcwd)))
;; Where to install compiled executable files ('commands' in Go parlance').
(setenv "GOBIN" out)
(setenv "GOBIN" (string-append out "/bin"))
#t))
(define* (build #:key import-path #:allow-other-keys)