Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion go/adbc/pkg/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ else
SUFFIX=dylib
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this omit macOS? Maybe there should be a separate ifeq windows [powershell] else [git]?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch. fixed.

endif

GIT_VERSION=$(shell git tag -l --points-at $(shell git rev-list --tags --max-count=1) --sort=-v:refname | head -n 1)
ifeq ($(shell go env GOOS),windows)
GIT_VERSION := $(shell powershell -Command "git tag --sort=-v:refname --points-at $$(git rev-list --tags --max-count=1) | Select-Object -First 1")
else
GIT_VERSION=$(shell git tag -l --points-at $(shell git rev-list --tags --max-count=1) --sort=-v:refname | head -n 1)
endif

GIT_VERSION ?= unknown
VERSION=$(subst go/adbc/,,$(GIT_VERSION))

# Expand dynamically libadbc_driver_.SUFFIX
Expand Down
Loading