summaryrefslogtreecommitdiff
path: root/guix/build-system
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2017-11-14 11:46:22 -0500
committerLeo Famulari <leo@famulari.name>2017-11-17 18:25:20 -0500
commitd8e257113c48b3b748de43458295331f120d04c3 (patch)
treed37bef5216fffc80cebdb0f34dae341b801dad4e /guix/build-system
parent25811886f149a04c132dde85db96d057c92a3e89 (diff)
downloadgnu-guix-d8e257113c48b3b748de43458295331f120d04c3.tar
gnu-guix-d8e257113c48b3b748de43458295331f120d04c3.tar.gz
build-system/go: Don't let Go executables refer to the Go compiler.
* guix/build/go-build-system.scm (remove-store-reference, remove-go-references): New procedures. (%standard-phases): Add 'remove-go-references' phase. * guix/build-system/go.scm (go-build): Add allow-go-reference? key.
Diffstat (limited to 'guix/build-system')
-rw-r--r--guix/build-system/go.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/guix/build-system/go.scm b/guix/build-system/go.scm
index ec447d2a28..cf91163275 100644
--- a/guix/build-system/go.scm
+++ b/guix/build-system/go.scm
@@ -82,6 +82,7 @@
(import-path "")
(unpack-path "")
(tests? #t)
+ (allow-go-reference? #f)
(system (%current-system))
(guile #f)
(imported-modules %go-build-system-modules)
@@ -107,6 +108,7 @@
#:import-path ,import-path
#:unpack-path ,unpack-path
#:tests? ,tests?
+ #:allow-go-reference? ,allow-go-reference?
#:inputs %build-inputs)))
(define guile-for-build