tile38 icon indicating copy to clipboard operation
tile38 copied to clipboard

GOPATH / GOROOT

Open waarmond opened this issue 1 year ago • 2 comments

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

waarmond avatar Apr 11 '24 22:04 waarmond

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

Maybe try go clean' and make clean`?

tidwall avatar Apr 23 '24 02:04 tidwall

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.

waarmond avatar Apr 23 '24 15:04 waarmond