Masterminds / glide

Package Management for Golang
https://glide.sh
Other
8.15k stars 540 forks source link

Install script fails when there are multiple paths in GOPATH #911

Open MadWombat opened 7 years ago

MadWombat commented 7 years ago

I have two locations specified in my GOPATH, one for general Go software, like glide and one for my project specific code. Looks like this

export GOPATH="/Users/wombat:/Users/wombat/BigProject/services

attempting to install glide with the curl | sh method fails

 wombat : ~/Lightcloud-Web/services/> curl https://glide.sh/get | sh                 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current          
                                 Dload  Upload   Total   Spent    Left  Speed            
100  4157  100  4157    0     0  13697      0 --:--:-- --:--:-- --:--:-- 13719           
/Users/wombat:/Users/wombat/BigProject/services/bin ($GOPATH/bin) folder not found. Please create it before continue.                                                          
Fail to install glide                       

The bin directory exists in both paths.

franciscocpg commented 7 years ago

Hi @MadWombat As you have multiple locations in your GOPATH you'll need to set GOBIN env. Reference here

Maybe the message could be ($GOPATH/bin) folder not found. Please create it or set $GOBIN before continue .

franciscocpg commented 7 years ago

Also the script could evolve to do just like go get. Check if GOPATH is a list (colon-separated string) and get the first one.

MadWombat commented 7 years ago

Thanks for the workaround. I will set GOBIN.