Browse Source

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

pull/2996/head
Konstantin Lebedev 3 years ago
parent
commit
f58adaab25
  1. 4
      .github/workflows/go.yml
  2. 2
      Makefile
  3. 3
      weed/filer/ydb/ydb_store.go
  4. 3
      weed/filer/ydb/ydb_store_kv.go
  5. 3
      weed/filer/ydb/ydb_types.go

4
.github/workflows/go.yml

@ -34,7 +34,7 @@ jobs:
cd weed; go get -v -t -d ./... cd weed; go get -v -t -d ./...
- name: Build - 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 - 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 ./...

2
Makefile

@ -8,4 +8,4 @@ install:
cd weed; go install cd weed; go install
full_install: full_install:
cd weed; go install -tags "elastic gocdk sqlite hdfs"
cd weed; go install -tags "elastic gocdk sqlite hdfs ydb"

3
weed/filer/ydb/ydb_store.go

@ -1,3 +1,6 @@
//go:build ydb
// +build ydb
package ydb package ydb
import ( import (

3
weed/filer/ydb/ydb_store_kv.go

@ -1,3 +1,6 @@
//go:build ydb
// +build ydb
package ydb package ydb
import ( import (

3
weed/filer/ydb/ydb_types.go

@ -1,3 +1,6 @@
//go:build ydb
// +build ydb
package ydb package ydb
import ( import (

Loading…
Cancel
Save