On Fri, Mar 9, 2018 at 5:12 AM, Kaveh Shahbazian
<kaveh.shahbaz...@gmail.com> wrote:
> Thanks!
>
> The reason for this question: wanted to have one $GOPATH/bin but different
> $GOPATH/src.

You may be able to use the GOBIN environment variable to do this.  See
`go help gopath`.

Ian


> On Friday, March 9, 2018 at 4:33:24 PM UTC+3:30, ohir wrote:
>>
>> On Fri, 9 Mar 2018 04:46:16 -0800 (PST)
>> Kaveh Shahbazian <kaveh.sh...@gmail.com> wrote:
>>
>> > As I understand it's possible to have multiple directory paths in
>> > *$GOPATH*, separated by the OS path separator.
>> >
>> > Is there a way to tell *go get* to use the second (nth) item in the path
>> > collection?
>> >
>>
>> No. Go get uses first one. You may execute go tool setting process'
>> environment as for any other unix executable:
>>
>> GOPATH=/some/path go get reposite/user/package
>>
>> Then package will be installed in /some/path/src/reposite/user/package
>>
>> --
>> Wojciech S. Czarnecki
>>  << ^oo^ >> OHIR-RIPE
>
> --
> 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 golang-nuts+unsubscr...@googlegroups.com.
> 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 golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to