From 84b07e6376c94aa1c93d5797bb51851bd666e3c7 Mon Sep 17 00:00:00 2001 From: Harshil Goel <54325286+harshil-goel@users.noreply.github.com> Date: Tue, 8 Oct 2024 09:42:18 +0530 Subject: [PATCH] fix(core): Build to show correct version (#9192) Following v24 import changes, git version stopped working. --- dgraph/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dgraph/Makefile b/dgraph/Makefile index aed940881a5..9c18af6ca91 100644 --- a/dgraph/Makefile +++ b/dgraph/Makefile @@ -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}'