无法使用go get安装Revel

My go env:

GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/xamenrax/code/golang"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.3.2/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.3.2/libexec/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"

But where I'm doing go get github.com/robfig/revel there is no any output, this command just silently do nothing.

It does nothing, but check the content of the $GOPATH/src/github.com/robfig/revel folder.

If that folder exists, chances are the go get did download, compile and install your project.


The workaround is to do it manually:

  • create a robfig folder in $GOPATH/src/github.com, and
  • in that robfig folder, try:

    git clone https://github.com/robfig/revel
    
  • Then in the revel folder, try a go build, then go install

As commented below:

go build command should be executed from $GOPATH/src/github.com/robfig/revel/revel