<p>When I try to build (or test/run) golang code, I get errors like this:</p>
<pre><code>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)
</code></pre>
<p>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:</p>
<pre><code>[name@computer ~]$ echo $GOPATH
/home/name/some/path/go
</code></pre>
<p>So, it seems that Geany is not actually reading $GOPATH variable, but is just using the default path.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2390?email_source=notifications&email_token=AAIOWJYNNEGMJLXPH5MYJELQSGQKNA5CNFSM4JJE7KMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HW6J2CA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ36FP2JTFPAXGFGCELQSGQKNANCNFSM4JJE7KMA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ6AU34WVYCVNX7VVVDQSGQKNA5CNFSM4JJE7KMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HW6J2CA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2390?email_source=notifications\u0026email_token=AAIOWJYNNEGMJLXPH5MYJELQSGQKNA5CNFSM4JJE7KMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HW6J2CA",
"url": "https://github.com/geany/geany/issues/2390?email_source=notifications\u0026email_token=AAIOWJYNNEGMJLXPH5MYJELQSGQKNA5CNFSM4JJE7KMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HW6J2CA",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>