Skip to content

Commit 5fd6b0b

Browse files
author
David Coe
committed
PR feedback
1 parent da52f26 commit 5fd6b0b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

go/adbc/pkg/Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,19 @@ RM := rm -f
2121

2222
ifeq ($(shell go env GOOS),linux)
2323
SUFFIX=so
24-
GIT_VERSION=$(shell git tag --sort=-v:refname --points-at $(shell git rev-list --tags --max-count=1 2>/dev/null) 2>/dev/null | head -n 1)
2524
else ifeq ($(shell go env GOOS),windows)
2625
SUFFIX=dll
2726
RM=del
28-
GIT_VERSION=$(shell powershell -Command "git tag --sort=-v:refname --points-at $(git rev-list --tags --max-count=1) | Select-Object -First 1")
2927
else
3028
SUFFIX=dylib
3129
endif
3230

31+
ifeq ($(shell go env GOOS),windows)
32+
GIT_VERSION=$(shell powershell -Command "git tag --sort=-v:refname --points-at $(git rev-list --tags --max-count=1) | Select-Object -First 1")
33+
else
34+
GIT_VERSION=$(shell git tag --sort=-v:refname --points-at $(shell git rev-list --tags --max-count=1 2>/dev/null) 2>/dev/null | head -n 1)
35+
endif
36+
3337
GIT_VERSION ?= unknown
3438
VERSION=$(subst go/adbc/,,$(GIT_VERSION))
3539

0 commit comments

Comments
 (0)