Skip to content

Commit

Permalink
Print go version along with Dgraph version. (#2768)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmai authored and manishrjain committed Nov 26, 2018
1 parent 129e269 commit 50eb866
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ version:
@echo Build: ${BUILD}
@echo Build date: ${BUILD_DATE}
@echo Branch: ${BUILD_BRANCH}
@echo Go version: $(shell go version)

install:
@(set -e;for i in $(SUBDIRS); do \
Expand Down
4 changes: 3 additions & 1 deletion x/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package x

import (
"fmt"
"runtime"

"github.com/golang/glog"
)
Expand Down Expand Up @@ -64,6 +65,7 @@ Dgraph version : %v
Commit SHA-1 : %v
Commit timestamp : %v
Branch : %v
Go version : %v
For Dgraph official documentation, visit https://docs.dgraph.io.
For discussions about Dgraph , visit https://discuss.dgraph.io.
Expand All @@ -72,7 +74,7 @@ To say hi to the community , visit https://dgraph.slack.com.
Licensed under Apache 2.0. Copyright 2015-2018 Dgraph Labs, Inc.
`,
dgraphVersion, lastCommitSHA, lastCommitTime, gitBranch)
dgraphVersion, lastCommitSHA, lastCommitTime, gitBranch, runtime.Version())
}

// PrintVersionOnly prints version and other helpful information if --version.
Expand Down

0 comments on commit 50eb866

Please sign in to comment.