I am trying to build horizon using the source.
I followed following steps:
1. Installed go in /usr/local/ folder
2. set GOPATH to /usr/local/go in .profile file
3. Installed glide using - curl https://glide.sh/get | sh
4. created following directoru in /usr/local/go/src - github.com/stellar/
5. cd /usr/local/go/src/github.com/stellar
6. git clone https://github.com/stellar/go.git && cd go
7. glide install
8. To build binary - go install github.com/stellar/go/services/horizon
However I am getting following error:
warning: GOPATH set to GOROOT (/usr/local/go) has no effect
github.com/stellar/go/clients/stellarcore/client.go:4:2: cannot find package "context" in any of:
/usr/local/go/src/github.com/stellar/go/vendor/context (vendor tree)
/usr/local/go/src/vendor/context
/usr/local/go/src/context (from $GOROOT)
($GOPATH not set)
If I print GOPATH - it shows - /usr/local/go
Moreover - glide install doesn't give me any error.
Can anyone help me out - where I am going wrong?
Go version is 1.6