sourcegraph/thyme

Cannot download due to $GOPATH not set

zhouzi opened this issue · 5 comments

I'm not familiar with how go works but by following the installation steps I was unable to download the package due to:

package github.com/sourcegraph/thyme/cmd/thyme: cannot download, $GOPATH not set. For more details see: go help gopath

I figured it out thanks to go help gopath and by googling a bit but it may be worth adding a note about that in the installation to reduce the time to get started.

An option to consider is to have pre-compiled release binaries available for download. Building from source can be made optional, for those who want to do it, or for those who want to develop Thyme.

For everyone else, pre-compiled binaries should be the fastest way to get going.

Even though building Go projects from source is extremely easy for those who are familiar with Go, it's still an extra hurdle if you don't use Go/don't have Go installed.

Some examples of Go projects doing this:

Download from here: https://github.com/sourcegraph/thyme/releases. This can replace go get -u ...

lg188 commented

You can easily add this to your ~/.profile file:
export GOPATH=~/.config/go