I do not have two elements in my path o.O The only path in my GOPATH is ''/home/Documents/GoProjects''.
On Monday, July 3, 2017 at 1:27:09 AM UTC+3, Matt Harden wrote: > > 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] > <javascript:>> 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] >> <javascript:>> 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] >> <javascript:>> 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] >>> <javascript:>> wrote: >>> >>> I believe it's the first folder in GOPATH, not the last. >>> >>> On Sun, Jul 2, 2017 at 1:21 PM <[email protected] <javascript:>> >>> 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] <javascript:>. >>>> 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] <javascript:>. >>> 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.
