Skip to content

Commit

Permalink
fix(core): Build to show correct version (#9192)
Browse files Browse the repository at this point in the history
Following v24 import changes, git version stopped working.
  • Loading branch information
harshil-goel authored Oct 8, 2024
1 parent bf1f1b8 commit 84b07e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dgraph/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ endif
GOPATH ?= $(shell go env GOPATH)

# Build-time Go variables
dgraphVersion = github.com/dgraph-io/dgraph/x.dgraphVersion
dgraphCodename = github.com/dgraph-io/dgraph/x.dgraphCodename
gitBranch = github.com/dgraph-io/dgraph/x.gitBranch
lastCommitSHA = github.com/dgraph-io/dgraph/x.lastCommitSHA
lastCommitTime = github.com/dgraph-io/dgraph/x.lastCommitTime
dgraphVersion = github.com/dgraph-io/dgraph/v24/x.dgraphVersion
dgraphCodename = github.com/dgraph-io/dgraph/v24/x.dgraphCodename
gitBranch = github.com/dgraph-io/dgraph/v24/x.gitBranch
lastCommitSHA = github.com/dgraph-io/dgraph/v24/x.lastCommitSHA
lastCommitTime = github.com/dgraph-io/dgraph/v24/x.lastCommitTime

BUILD_FLAGS ?= -ldflags '-X ${lastCommitSHA}=${BUILD} -X "${lastCommitTime}=${BUILD_DATE}" -X "${dgraphVersion}=${BUILD_VERSION}" -X "${dgraphCodename}=${BUILD_CODENAME}" -X ${gitBranch}=${BUILD_BRANCH}'

Expand Down

0 comments on commit 84b07e6

Please sign in to comment.