Can't install Revel with go get

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 do go get github.com/robfig/revel

there is no way out, this command just silently does nothing.

+3


source to share


1 answer


It does nothing but checks the contents of the folder $GOPATH/src/github.com/robfig/revel

.

If this folder exists, you may have go get

downloaded, compiled and installed your project.


A workaround is to do it manually:



  • create a folder robfig

    in $GOPATH/src/github.com

    and
  • in that folder robfig

    , try:

    git clone https://github.com/robfig/revel
    
          

  • Then in the folder revel

    try go build

    , thengo install

As a comment below :

Command

go build

should be done from $GOPATH/src/github.com/robfig/revel/revel

+2


source







All Articles