From 824cbe32becade3d8113bdae636bae706337cd9b Mon Sep 17 00:00:00 2001 From: "yulai.li" Date: Mon, 27 Jun 2022 10:57:24 +0800 Subject: [PATCH] Make tikv filer enable/disable by build tags --- Makefile | 4 ++-- weed/filer/tikv/tikv.go | 5 +++-- weed/filer/tikv/tikv_store.go | 3 +++ weed/filer/tikv/tikv_store_kv.go | 3 +++ 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index a423a6ddd..aa736edee 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ install: cd weed; go install full_install: - cd weed; go install -tags "elastic gocdk sqlite ydb" + cd weed; go install -tags "elastic gocdk sqlite ydb tikv" test: - cd weed; go test -tags "elastic gocdk sqlite ydb" -v ./... + cd weed; go test -tags "elastic gocdk sqlite ydb tikv" -v ./... diff --git a/weed/filer/tikv/tikv.go b/weed/filer/tikv/tikv.go index 8bb5dc577..ba1da27a8 100644 --- a/weed/filer/tikv/tikv.go +++ b/weed/filer/tikv/tikv.go @@ -1,5 +1,6 @@ -package tikv - /* + * Package tikv is for TiKV filer store. * This empty file is let go build can work without tikv tag + * Using "make full_install" to enable TiKV filer store. */ +package tikv diff --git a/weed/filer/tikv/tikv_store.go b/weed/filer/tikv/tikv_store.go index f333af38e..f8932663d 100644 --- a/weed/filer/tikv/tikv_store.go +++ b/weed/filer/tikv/tikv_store.go @@ -1,3 +1,6 @@ +//go:build tikv +// +build tikv + package tikv import ( diff --git a/weed/filer/tikv/tikv_store_kv.go b/weed/filer/tikv/tikv_store_kv.go index dcc9acf8c..1d9428c69 100644 --- a/weed/filer/tikv/tikv_store_kv.go +++ b/weed/filer/tikv/tikv_store_kv.go @@ -1,3 +1,6 @@ +//go:build tikv +// +build tikv + package tikv import (