Skip to content

Commit 40d1a04

Browse files
committed
Fix parse git commit for go build
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
1 parent bd31ec2 commit 40d1a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ endif
4949
VERBOSE_GO := -v
5050

5151
# Parse git current branch commit-hash
52-
GO_LDFLAGS := ${GO_LDFLAGS} -X `go list .`.GitCommit=`git rev-parse --short HEAD 2>/dev/null`
52+
GO_LDFLAGS := ${GO_LDFLAGS} -X `go list ./xhyve`.GitCommit=`git rev-parse --short HEAD 2>/dev/null`
5353

5454

5555
# Environment variables

0 commit comments

Comments
 (0)