reduce binary size by skipping rclone

This commit is contained in:
chrislu 2023-11-23 00:48:27 -08:00
parent 69013af0f3
commit 7a50762b9e
5 changed files with 11 additions and 4 deletions

View file

@ -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 ydb tikv" -v . run: cd weed; go build -tags "elastic gocdk sqlite ydb tikv rclone" -v .
- name: Test - name: Test
run: cd weed; go test -tags "elastic gocdk sqlite ydb tikv" -v ./... run: cd weed; go test -tags "elastic gocdk sqlite ydb tikv rclone" -v ./...

View file

@ -12,7 +12,7 @@ warp_install:
go install github.com/minio/warp@v0.7.6 go install github.com/minio/warp@v0.7.6
full_install: full_install:
cd weed; go install -tags "elastic gocdk sqlite ydb tikv" cd weed; go install -tags "elastic gocdk sqlite ydb tikv rclone"
server: install server: install
weed -v 4 server -s3 -filer -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1 -s3.port=8000 -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=false -s3.config=./docker/compose/s3.json weed -v 4 server -s3 -filer -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1 -s3.port=8000 -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=false -s3.config=./docker/compose/s3.json
@ -32,4 +32,4 @@ benchmark_with_pprof: debug = 1
benchmark_with_pprof: benchmark benchmark_with_pprof: benchmark
test: test:
cd weed; go test -tags "elastic gocdk sqlite ydb tikv" -v ./... cd weed; go test -tags "elastic gocdk sqlite ydb tikv rclone" -v ./...

View file

@ -0,0 +1 @@
package rclone_backend

View file

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

View file

@ -1,3 +1,6 @@
//go:build rclone
// +build rclone
package rclone_backend package rclone_backend
import "github.com/rclone/rclone/fs/accounting" import "github.com/rclone/rclone/fs/accounting"