From f58adaab2594298838ae4184de594e89ca7471b6 Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> Date: Tue, 3 May 2022 23:20:09 +0500 Subject: [PATCH] build tag ydb since the growth of the binary is 5 mb --- .github/workflows/go.yml | 4 ++-- Makefile | 2 +- weed/filer/ydb/ydb_store.go | 3 +++ weed/filer/ydb/ydb_store_kv.go | 3 +++ weed/filer/ydb/ydb_types.go | 3 +++ 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 96632fc86..f40e759d3 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -34,7 +34,7 @@ jobs: cd weed; go get -v -t -d ./... - name: Build - run: cd weed; go build -tags "elastic gocdk sqlite hdfs" -v . + run: cd weed; go build -tags "elastic gocdk sqlite hdfs ydb" -v . - name: Test - run: cd weed; go test -tags "elastic gocdk sqlite hdfs" -v ./... + run: cd weed; go test -tags "elastic gocdk sqlite hdfs ydb" -v ./... diff --git a/Makefile b/Makefile index 36da78434..1287d9f8d 100644 --- a/Makefile +++ b/Makefile @@ -8,4 +8,4 @@ install: cd weed; go install full_install: - cd weed; go install -tags "elastic gocdk sqlite hdfs" + cd weed; go install -tags "elastic gocdk sqlite hdfs ydb" diff --git a/weed/filer/ydb/ydb_store.go b/weed/filer/ydb/ydb_store.go index 026b34b4b..5b0e4e764 100644 --- a/weed/filer/ydb/ydb_store.go +++ b/weed/filer/ydb/ydb_store.go @@ -1,3 +1,6 @@ +//go:build ydb +// +build ydb + package ydb import ( diff --git a/weed/filer/ydb/ydb_store_kv.go b/weed/filer/ydb/ydb_store_kv.go index c90821ddd..d64597764 100644 --- a/weed/filer/ydb/ydb_store_kv.go +++ b/weed/filer/ydb/ydb_store_kv.go @@ -1,3 +1,6 @@ +//go:build ydb +// +build ydb + package ydb import ( diff --git a/weed/filer/ydb/ydb_types.go b/weed/filer/ydb/ydb_types.go index 34044b6a7..d256eaf50 100644 --- a/weed/filer/ydb/ydb_types.go +++ b/weed/filer/ydb/ydb_types.go @@ -1,3 +1,6 @@ +//go:build ydb +// +build ydb + package ydb import (