[Github-comments] [geany/geany] Golang build command used wrong $GOPATH (#2390)

Vilius Normantas notifications at xxxxx
Tue Nov 5 16:53:58 UTC 2019


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 at 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 or view it on GitHub:
https://github.com/geany/geany/issues/2390
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20191105/f2fe2083/attachment.html>


More information about the Github-comments mailing list