diff options
| author | Francesc Campoy <campoy@golang.org> | 2016-10-31 21:36:38 -0700 |
|---|---|---|
| committer | Francesc Campoy Flores <campoy@golang.org> | 2016-11-11 00:44:28 +0000 |
| commit | dc4a815d100b82643656ec88fd9fa8e7c705ebba (patch) | |
| tree | 05bbc844cb57d1cc97fb8480fab020f73ef42427 /src/encoding/json/encode_test.go | |
| parent | ebc0b625a07ccce6ade7a0082f4ab49c2817e965 (diff) | |
| download | go-dc4a815d100b82643656ec88fd9fa8e7c705ebba.tar.xz | |
go/build: implement default GOPATH
Whenever GOPATH is not defined in the environment, use $HOME/go
as its default value. For Windows systems use %USERPROFILE%/go
and $home/go for plan9.
The choice of these environment variables is based on what Docker
currently does. The os/user package is not used to avoid having
a cgo dependency.
Updates #17262. Documentation changes forthcoming.
Change-Id: I6368fbfbc5afda99d6e64c35c1980076fcf45344
Reviewed-on: https://go-review.googlesource.com/32019
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/encoding/json/encode_test.go')
0 files changed, 0 insertions, 0 deletions
