build: Build and set GOPATH before generating assets (#5093)

This commit is contained in:
Simon Frei 2018-08-01 21:22:47 +02:00 committed by Jakob Borg
parent af48b069cc
commit f4bde023aa
1 changed files with 3 additions and 3 deletions

View File

@ -211,14 +211,14 @@ func main() {
if err != nil {
log.Fatal(err)
}
os.Setenv("GOPATH", gopath)
log.Println("GOPATH is", gopath)
if !noBuildGopath {
lazyRebuildAssets()
if err := buildGOPATH(gopath); err != nil {
log.Fatal(err)
}
lazyRebuildAssets()
}
os.Setenv("GOPATH", gopath)
log.Println("GOPATH is", gopath)
} else {
inside := false
wd, _ := os.Getwd()