mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Can set version in Makefile
This commit is contained in:
parent
a70cda9670
commit
1553f67809
@ -6,7 +6,8 @@ BUILD_DIR=dist
|
||||
TIMESTAMP := $(shell date +%Y%m%d-%H%M)
|
||||
COMMIT := $(shell git rev-parse --short HEAD)
|
||||
MODULE := github.com/ClickHouse/ClickHouse/programs/diagnostics
|
||||
DEVLDFLAGS = -ldflags "-X ${MODULE}/cmd.Version=v.dev-${TIMESTAMP} -X ${MODULE}/cmd.Commit=${COMMIT}"
|
||||
VERSION := v.dev-${TIMESTAMP}
|
||||
DEVLDFLAGS = -ldflags "-X ${MODULE}/cmd.Version=${VERSION} -X ${MODULE}/cmd.Commit=${COMMIT}"
|
||||
|
||||
# override with env variable to test other versions e.g. 21.11.10.1
|
||||
CLICKHOUSE_VERSION ?= latest
|
||||
|
Loading…
Reference in New Issue
Block a user