Thanks for your reply @francesc. Installing master
this way works:
~ $ mkdir /tmp/go
~ $ export GOPATH=/tmp/go
~ $ go get github.com/dgraph-io/dgraph/dgraph
~ $ cd /tmp/go/src/github.com/dgraph-io/dgraph
/tmp/go/src/github.com/dgraph-io/dgraph $ go install ./...
# github.com/dgraph-io/dgraph/contrib/embargo
loadinternal: cannot find runtime/cgo
/tmp/go/src/github.com/dgraph-io/dgraph $
But when trying to checkout a commit before installing:
~ $ mkdir /tmp/go
~ $ export GOPATH=/tmp/go
~ $ go get github.com/dgraph-io/dgraph/dgraph
~ $ cd /tmp/go/src/github.com/dgraph-io/dgraph
/tmp/go/src/github.com/dgraph-io/dgraph $ git checkout v1.0.14
Note: checking out 'v1.0.14'.
...
/tmp/go/src/github.com/dgraph-io/dgraph $ go install ./...
vendor/github.com/dgraph-io/badger/pb/pb.pb.go:6:8: cannot find package "github.com/golang/protobuf/proto" in any of:
/tmp/go/src/github.com/dgraph-io/dgraph/vendor/github.com/golang/protobuf/proto (vendor tree)
/usr/lib/go/src/github.com/golang/protobuf/proto (from $GOROOT)
/tmp/go/src/github.com/golang/protobuf/proto (from $GOPATH)
x/metrics.go:24:2: cannot find package "github.com/prometheus/client_golang/prometheus" in any of:
/tmp/go/src/github.com/dgraph-io/dgraph/vendor/github.com/prometheus/client_golang/prometheus (vendor tree)
/usr/lib/go/src/github.com/prometheus/client_golang/prometheus (from $GOROOT)
/tmp/go/src/github.com/prometheus/client_golang/prometheus (from $GOPATH)
x/x.go:35:2: cannot find package "go.opencensus.io/trace" in any of:
/tmp/go/src/github.com/dgraph-io/dgraph/vendor/go.opencensus.io/trace (vendor tree)
/usr/lib/go/src/go.opencensus.io/trace (from $GOROOT)
/tmp/go/src/go.opencensus.io/trace (from $GOPATH)
...
It appears that some dependencies have changed between v1.0.14
and master
, and go get
wasn’t aware of those dependencies since it saw the repo at master
.
Edit: wow haha @selmeci good timing