build: Build and set GOPATH before generating assets (#5093)
This commit is contained in:
parent
af48b069cc
commit
f4bde023aa
6
build.go
6
build.go
@ -211,14 +211,14 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
os.Setenv("GOPATH", gopath)
|
||||||
|
log.Println("GOPATH is", gopath)
|
||||||
if !noBuildGopath {
|
if !noBuildGopath {
|
||||||
lazyRebuildAssets()
|
|
||||||
if err := buildGOPATH(gopath); err != nil {
|
if err := buildGOPATH(gopath); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
lazyRebuildAssets()
|
||||||
}
|
}
|
||||||
os.Setenv("GOPATH", gopath)
|
|
||||||
log.Println("GOPATH is", gopath)
|
|
||||||
} else {
|
} else {
|
||||||
inside := false
|
inside := false
|
||||||
wd, _ := os.Getwd()
|
wd, _ := os.Getwd()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user