From 5e5e90a4668fbe6e58f76b0a6ef6e2041898f6c6 Mon Sep 17 00:00:00 2001 From: Vegetable540 Date: Fri, 8 Nov 2024 17:20:26 +0800 Subject: [PATCH] add dameng build tags --- weed/filer/dameng/dameng_sql_gen.go | 3 +++ weed/filer/dameng/dameng_store.go | 6 +++++- weed/filer/dameng/dameng_store_test.go | 6 +++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/weed/filer/dameng/dameng_sql_gen.go b/weed/filer/dameng/dameng_sql_gen.go index e98c594b1..3e84bab07 100644 --- a/weed/filer/dameng/dameng_sql_gen.go +++ b/weed/filer/dameng/dameng_sql_gen.go @@ -1,3 +1,6 @@ +//go:build dameng +// +build dameng + package dameng import ( diff --git a/weed/filer/dameng/dameng_store.go b/weed/filer/dameng/dameng_store.go index 66f7740de..71532cd2d 100644 --- a/weed/filer/dameng/dameng_store.go +++ b/weed/filer/dameng/dameng_store.go @@ -1,13 +1,17 @@ +//go:build dameng +// +build dameng + package dameng import ( "context" "database/sql" "fmt" - "github.com/seaweedfs/seaweedfs/weed/glog" "strings" "time" + "github.com/seaweedfs/seaweedfs/weed/glog" + _ "gitee.com/chunanyong/dm" "github.com/seaweedfs/seaweedfs/weed/filer" "github.com/seaweedfs/seaweedfs/weed/filer/abstract_sql" diff --git a/weed/filer/dameng/dameng_store_test.go b/weed/filer/dameng/dameng_store_test.go index 0b0c9ebc3..e35f39e68 100644 --- a/weed/filer/dameng/dameng_store_test.go +++ b/weed/filer/dameng/dameng_store_test.go @@ -1,8 +1,12 @@ +//go:build dameng +// +build dameng + package dameng import ( - "github.com/seaweedfs/seaweedfs/weed/filer/store_test" "testing" + + "github.com/seaweedfs/seaweedfs/weed/filer/store_test" ) func TestStore(t *testing.T) {