From d8e257113c48b3b748de43458295331f120d04c3 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Tue, 14 Nov 2017 11:46:22 -0500 Subject: 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. --- guix/build-system/go.scm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'guix/build-system') 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 -- cgit v1.2.3