Browse Source

reduce binary size by skipping rclone

pull/5048/head
chrislu 1 year ago
parent
commit
7a50762b9e
  1. 4
      .github/workflows/go.yml
  2. 4
      Makefile
  3. 1
      weed/storage/backend/rclone_backend/dummy.go
  4. 3
      weed/storage/backend/rclone_backend/rclone_backend.go
  5. 3
      weed/storage/backend/rclone_backend/rclone_progress.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 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 ./...

4
Makefile

@ -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 ./...

1
weed/storage/backend/rclone_backend/dummy.go

@ -0,0 +1 @@
package rclone_backend

3
weed/storage/backend/rclone_backend/rclone_backend.go

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

3
weed/storage/backend/rclone_backend/rclone_progress.go

@ -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"

Loading…
Cancel
Save