Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

build tag ydb since the growth of the binary is 5 mb

Konstantin Lebedevf58adaab2594
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 96632fc864..f40e759d3f 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 36da784348..1287d9f8d0 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 026b34b4b6..5b0e4e7642 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 c90821ddd0..d645977644 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 34044b6a7b..d256eaf50d 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 (