guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

26/27: gnu: Update default Go compiler to Go 1.12.


From: guix-commits
Subject: 26/27: gnu: Update default Go compiler to Go 1.12.
Date: Mon, 29 Jul 2019 14:57:22 -0400 (EDT)

lfam pushed a commit to branch master
in repository guix.

commit 0c3c597d2ed649005798f670b13755ee55e6dc9a
Author: Leo Famulari <address@hidden>
Date:   Thu Jul 25 12:51:13 2019 -0400

    gnu: Update default Go compiler to Go 1.12.
    
    * gnu/packages/golang.scm (go): Update to go-1.12.
    * guix/build/go-build-system.scm (setup-go-environment): Set $GOCACHE.
---
 gnu/packages/golang.scm        | 2 +-
 guix/build/go-build-system.scm | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 4a3b42f..c67ef03 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -584,7 +584,7 @@ in the style of communicating sequential processes 
(@dfn{CSP}).")
        ,@(package-native-inputs go-1.4)))
     (supported-systems %supported-systems)))
 
-(define-public go go-1.11)
+(define-public go go-1.12)
 
 (define-public go-github-com-alsm-ioprogress
   (let ((commit "063c3725f436e7fba0c8f588547bee21ffec7ac5")
diff --git a/guix/build/go-build-system.scm b/guix/build/go-build-system.scm
index 858068b..3dac43c 100644
--- a/guix/build/go-build-system.scm
+++ b/guix/build/go-build-system.scm
@@ -135,6 +135,9 @@ of the package being built and its dependencies, and GOBIN, 
which determines
 where executables (\"commands\") are installed to.  This phase is sometimes 
used
 by packages that use (guix build-system gnu) but have a handful of Go
 dependencies, so it should be self-contained."
+  ;; The Go cache is required starting in Go 1.12.  We don't actually use it 
but
+  ;; we need it to be a writable directory.
+  (setenv "GOCACHE" "/tmp/go-cache")
   ;; Using the current working directory as GOPATH makes it easier for 
packagers
   ;; who need to manipulate the unpacked source code.
   (setenv "GOPATH" (getcwd))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]