We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fd6b0b commit 8f5879aCopy full SHA for 8f5879a
go/adbc/pkg/Makefile
@@ -29,9 +29,9 @@ else
29
endif
30
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")
+ 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)
+ GIT_VERSION=$(shell git tag -l --points-at $(shell git rev-list --tags --max-count=1) --sort=-v:refname | head -n 1)
35
36
37
GIT_VERSION ?= unknown
0 commit comments