tidwall / tile38

Real-time Geospatial and Geofencing
https://tile38.com
MIT License
9.09k stars 569 forks source link

GOPATH / GOROOT #732

Open waarmond opened 5 months ago

waarmond commented 5 months ago

Thank for you great tool! I've built tile38 the last time in 2021 without any problems. Now make is leading to GOROOT / GOPATH complaints like in https://github.com/tidwall/tile38/issues/6 :

cmd/tile38-luamemtest/main.go:14:2: cannot find package "github.com/tidwall/resp" in any of:
    /usr/lib/go/src/github.com/tidwall/resp (from $GOROOT)
    ./go/src/github.com/tidwall/resp (from $GOPATH)
cmd/tile38-luamemtest/main.go:15:2: cannot find package "github.com/yuin/gopher-lua" in any of:
    /usr/lib/go/src/github.com/yuin/gopher-lua (from $GOROOT)
    ./go/src/github.com/yuin/gopher-lua (from $GOPATH)
[..]

My env: ArchLinux, go 1.22.2

tidwall commented 5 months ago

That's really strange. I wonder if there's something up with your Go install?

Maybe try go clean' andmake clean`?

waarmond commented 5 months ago

I've added a go clean in front of make, which didn't change my error. I've just created the srcdir, it is a new and empty folder.

ArchLinux PKGBUILD may read, but not write outside their context. No access to system GOROOT / GOPATH folders is intentional, it is necessary to set them up ad hoc.