Add persistent GOPATH to go manifest. (#1774)

This commit is contained in:
Matthew J. Berger 2017-10-20 10:21:25 -07:00 committed by Richard Kuhnt
parent 8ad5e5dbac
commit 5c788a10ed

22
go.json
View File

@ -2,6 +2,16 @@
"version": "1.9.1", "version": "1.9.1",
"homepage": "https://golang.org", "homepage": "https://golang.org",
"license": "https://golang.org/LICENSE", "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": { "architecture": {
"64bit": { "64bit": {
"url": "https://storage.googleapis.com/golang/go1.9.1.windows-amd64.zip", "url": "https://storage.googleapis.com/golang/go1.9.1.windows-amd64.zip",
@ -12,11 +22,6 @@
"hash": "ea9c79c9e6214c9a78a107ef5a7bff775a281bffe8c2d50afa66d2d33998078a" "hash": "ea9c79c9e6214c9a78a107ef5a7bff775a281bffe8c2d50afa66d2d33998078a"
} }
}, },
"extract_dir": "go",
"env_add_path": "bin",
"env_set": {
"GOROOT": "$dir"
},
"checkver": "Build version go([\\d\\.]+)\\.", "checkver": "Build version go([\\d\\.]+)\\.",
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {
@ -30,5 +35,10 @@
"hash": { "hash": {
"url": "$url.sha256" "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.
"
} }