mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
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.
This commit is contained in:
parent
20470893ea
commit
0c3c597d2e
2 changed files with 4 additions and 1 deletions
|
@ -584,7 +584,7 @@ (define-public go-1.12
|
||||||
,@(package-native-inputs go-1.4)))
|
,@(package-native-inputs go-1.4)))
|
||||||
(supported-systems %supported-systems)))
|
(supported-systems %supported-systems)))
|
||||||
|
|
||||||
(define-public go go-1.11)
|
(define-public go go-1.12)
|
||||||
|
|
||||||
(define-public go-github-com-alsm-ioprogress
|
(define-public go-github-com-alsm-ioprogress
|
||||||
(let ((commit "063c3725f436e7fba0c8f588547bee21ffec7ac5")
|
(let ((commit "063c3725f436e7fba0c8f588547bee21ffec7ac5")
|
||||||
|
|
|
@ -135,6 +135,9 @@ (define* (setup-go-environment #:key inputs outputs #:allow-other-keys)
|
||||||
where executables (\"commands\") are installed to. This phase is sometimes used
|
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
|
by packages that use (guix build-system gnu) but have a handful of Go
|
||||||
dependencies, so it should be self-contained."
|
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
|
;; Using the current working directory as GOPATH makes it easier for packagers
|
||||||
;; who need to manipulate the unpacked source code.
|
;; who need to manipulate the unpacked source code.
|
||||||
(setenv "GOPATH" (getcwd))
|
(setenv "GOPATH" (getcwd))
|
||||||
|
|
Loading…
Reference in a new issue