Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GOPATH / GOROOT #732

Open
waarmond opened this issue Apr 11, 2024 · 2 comments
Open

GOPATH / GOROOT #732

waarmond opened this issue Apr 11, 2024 · 2 comments

Comments

@waarmond
Copy link

waarmond commented Apr 11, 2024

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 #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
Copy link
Owner

tidwall commented Apr 23, 2024

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

Maybe try go clean' and make clean`?

@waarmond
Copy link
Author

waarmond commented Apr 23, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants