Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print go version along with Dgraph version. #2768

Merged
merged 1 commit into from
Nov 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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