Skip to content

Commit 34bc3a1

Browse files
authoredOct 16, 2023
extension: fix enterprise git commit hash display in tidb-server -V (#47647)
close #47646
1 parent b3dcf59 commit 34bc3a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎Makefile.common

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ LDFLAGS += -X "github.com/pingcap/tidb/pkg/util/versioninfo.TiDBGitBranch=$(shel
6767
LDFLAGS += -X "github.com/pingcap/tidb/pkg/util/versioninfo.TiDBEdition=$(TIDB_EDITION)"
6868

6969
EXTENSION_FLAG =
70-
ifeq ($(shell if [ -d extension/enterprise/.git ]; then echo "true"; fi),true)
71-
EXTENSION_FLAG += -X "github.com/pingcap/tidb/pkg/util/versioninfo.TiDBEnterpriseExtensionGitHash=$(shell cd extension/enterprise && git rev-parse HEAD)"
70+
ifeq ($(shell if [ -d .git/modules/extension/enterprise ]; then echo "true"; fi),true)
71+
EXTENSION_FLAG += -X "github.com/pingcap/tidb/pkg/util/versioninfo.TiDBEnterpriseExtensionGitHash=$(shell cd pkg/extension/enterprise && git rev-parse HEAD)"
7272
endif
7373

7474
TEST_LDFLAGS = -X "github.com/pingcap/tidb/pkg/config.checkBeforeDropLDFlag=1"

0 commit comments

Comments
 (0)
Please sign in to comment.