When I try to build (or test/run) golang code, I get errors like this:

Demo.go:10:8: cannot find package "aaa/bbb" in any of:
	/usr/lib/go/src/aaa/bbb (from $GOROOT)
	/home/name/go/src/aaa/bbb (from $GOPATH)

The problem is, that "/home/name/go" is the default $GOPATH, and I am using some other path. And, yes, my $GOPATH variable is set correctly:

[name@computer ~]$ echo $GOPATH
/home/name/some/path/go

So, it seems that Geany is not actually reading $GOPATH variable, but is just using the default path.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.