From 5c788a10ed5e7ec4fe7bcea2aac06e69cda4a2c3 Mon Sep 17 00:00:00 2001 From: "Matthew J. Berger" Date: Fri, 20 Oct 2017 10:21:25 -0700 Subject: [PATCH] Add persistent GOPATH to go manifest. (#1774) --- go.json | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/go.json b/go.json index 4452b771a2..31bc8cc17e 100644 --- a/go.json +++ b/go.json @@ -2,6 +2,16 @@ "version": "1.9.1", "homepage": "https://golang.org", "license": "https://golang.org/LICENSE", + "persist": "go", + "extract_dir": "go", + "env_set": { + "GOROOT": "$dir", + "GOPATH": "$persist_dir\\go" + }, + "env_add_path": [ + "bin", + "go\\bin" + ], "architecture": { "64bit": { "url": "https://storage.googleapis.com/golang/go1.9.1.windows-amd64.zip", @@ -12,11 +22,6 @@ "hash": "ea9c79c9e6214c9a78a107ef5a7bff775a281bffe8c2d50afa66d2d33998078a" } }, - "extract_dir": "go", - "env_add_path": "bin", - "env_set": { - "GOROOT": "$dir" - }, "checkver": "Build version go([\\d\\.]+)\\.", "autoupdate": { "architecture": { @@ -30,5 +35,10 @@ "hash": { "url": "$url.sha256" } - } + }, + "notes": " + Your GOROOT has been set to: $dir + Your GOPATH has been set to: $persist_dir\\go + You can run 'go env GOPATH' or 'go env GOROOT' to view these at any time. + " }