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) {