Building specific commit

In my case, I managed to build v1.0.14 in this way.

# at first build "master"
go get -v github.com/dgraph-io/dgraph/dgraph

# fetch target source of dgraph
cd $GOPATH/src/github.com/dgraph-io/dgraph/
git checkout v1.0.14

# in my case (v1.0.14), old? opencensus source is needed.
cd $GOPATH/src/go.opencensus.io/
git checkout v0.20.x

# I did go get again. go install is not sufficient???
go get -v github.com/dgraph-io/dgraph/dgraph

In this way, output of “dgraph version” command is not correct, so I want to know how to build specific source using make command.