Skip to content

Commit 8f5879a

Browse files
author
David Coe
committed
tweak slightly
1 parent 5fd6b0b commit 8f5879a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/adbc/pkg/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ else
2929
endif
3030

3131
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")
32+
GIT_VERSION := $(shell powershell -Command "git tag --sort=-v:refname --points-at $$(git rev-list --tags --max-count=1) | Select-Object -First 1")
3333
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)
34+
GIT_VERSION=$(shell git tag -l --points-at $(shell git rev-list --tags --max-count=1) --sort=-v:refname | head -n 1)
3535
endif
3636

3737
GIT_VERSION ?= unknown

0 commit comments

Comments
 (0)