Move that to the beginning of your GOPATH (first entry instead of last) and
it should work for you.

By the way, I normally only have one entry in my GOPATH. Out of curiosity,
why do you have more than one?

On Sun, Jul 2, 2017, 14:20 Martin Spasov <[email protected]> wrote:

> hey, my src, pkg and bin directories are in the GoProjects folder which is
> the last one in the path
> On Mon, Jul 3, 2017 at 12:17 AM, Justin Israel <[email protected]>
> wrote:
>
> I think two different things are being described here.
>
> GOPATH=/path/to/src:/path/to/src2
>
> The first path should be the one that gets the pkg install location.
>
> On Mon, Jul 3, 2017, 9:02 AM Martin Spasov <[email protected]>
> wrote:
>
>> Does that mean that it is not possible to chose where you want to install
>> the pkg ?
>> On Mon, Jul 3, 2017 at 12:00 AM, Matt Harden <[email protected]>
>> wrote:
>>
>> I believe it's the first folder in GOPATH, not the last.
>>
>> On Sun, Jul 2, 2017 at 1:21 PM <[email protected]> wrote:
>>
>>> From what I found here when you install packages with go get, they get
>>> installed in the last folder of your GOPATH env variable. Mine is
>>> ''/home/Documents/GoProjects'' but the installed packages end up in
>>> ''/home''. It is probably a stupid question, but I honestly do not know
>>> what is wrong here.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "golang-nuts" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "golang-nuts" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to