Merge pull request #118 from bclermont/patch-2

Use original GOPATH
This commit is contained in:
therecipe 2016-11-18 15:45:47 +01:00 committed by GitHub
commit 761eaa315e

View file

@ -247,7 +247,7 @@ func build() {
{
env = map[string]string{
"PATH": os.Getenv("PATH"),
"GOPATH": utils.MustGoPath(),
"GOPATH": os.Getenv("GOPATH"),
"GOROOT": runtime.GOROOT(),
"TMP": os.Getenv("TMP"),
@ -294,7 +294,7 @@ func build() {
env = map[string]string{
"PATH": os.Getenv("PATH"),
"GOPATH": utils.MustGoPath(),
"GOPATH": os.Getenv("GOPATH"),
"GOROOT": runtime.GOROOT(),
"GOOS": runtime.GOOS,
@ -329,7 +329,7 @@ func build() {
outputFile = filepath.Join(depPath, appName)
env = map[string]string{
"PATH": os.Getenv("PATH"),
"GOPATH": utils.MustGoPath(),
"GOPATH": os.Getenv("GOPATH"),
"GOROOT": runtime.GOROOT(),
"TMP": os.Getenv("TMP"),
@ -401,7 +401,7 @@ func build() {
env = map[string]string{
"PATH": os.Getenv("PATH"),
"GOPATH": utils.MustGoPath(),
"GOPATH": os.Getenv("GOPATH"),
"GOROOT": runtime.GOROOT(),
"GOOS": "linux",
@ -427,7 +427,7 @@ func build() {
env = map[string]string{
"PATH": os.Getenv("PATH"),
"GOPATH": utils.MustGoPath(),
"GOPATH": os.Getenv("GOPATH"),
"GOROOT": runtime.GOROOT(),
"GOOS": "windows",