mirror of https://github.com/status-im/xgo.git
Display a proper error message if no GOPATH is set.
This commit is contained in:
parent
c64946b88c
commit
9224c09098
3
xgo.go
3
xgo.go
|
@ -174,6 +174,9 @@ func compile(repo string, image string, remote string, branch string, pack strin
|
|||
repo = pack.ImportPath
|
||||
|
||||
// Iterate over all the local libs and export the mount points
|
||||
if os.Getenv("GOPATH") == "" {
|
||||
log.Fatalf("No $GOPATH is set or forwarded to xgo")
|
||||
}
|
||||
for _, gopath := range strings.Split(os.Getenv("GOPATH"), string(os.PathListSeparator)) {
|
||||
// Since docker sandboxes volumes, resolve any symlinks manually
|
||||
sources := filepath.Join(gopath, "src")
|
||||
|
|
Loading…
Reference in New Issue