"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
build: replace "golang.org/x/exp/slices" with "slices" now go1.21 is required
Nick Craig-Woodcb9f4f8461e4
diff --git a/backend/onedrive/metadata.go b/backend/onedrive/metadata.goindex ab6569a9a..12ba522f6 100644--- a/backend/onedrive/metadata.go+++ b/backend/onedrive/metadata.go@@ -6,6 +6,7 @@ import ("errors""fmt""net/http"+ "slices""strings""time"@@ -14,7 +15,6 @@ import ("github.com/rclone/rclone/fs/fserrors""github.com/rclone/rclone/lib/dircache""github.com/rclone/rclone/lib/errcount"- "golang.org/x/exp/slices" // replace with slices after go1.21 is the minimum version)const (diff --git a/backend/onedrive/onedrive_internal_test.go b/backend/onedrive/onedrive_internal_test.goindex 0ef1b708f..5ac2141d0 100644--- a/backend/onedrive/onedrive_internal_test.go+++ b/backend/onedrive/onedrive_internal_test.go@@ -4,6 +4,7 @@ import ("context""encoding/json""fmt"+ "slices""testing""time"@@ -16,7 +17,6 @@ import ("github.com/rclone/rclone/lib/random""github.com/stretchr/testify/assert""github.com/stretchr/testify/require"- "golang.org/x/exp/slices" // replace with slices after go1.21 is the minimum version)// go test -timeout 30m -run ^TestIntegration/FsMkdir/FsPutFiles/Internal$ github.com/rclone/rclone/backend/onedrive -remote TestOneDrive:meta -vdiff --git a/cmd/bisync/listing.go b/cmd/bisync/listing.goindex a95029abe..13179b26f 100644--- a/cmd/bisync/listing.go+++ b/cmd/bisync/listing.go@@ -10,6 +10,7 @@ import ("io""os""regexp"+ "slices""sort""strconv""strings"@@ -21,7 +22,6 @@ import ("github.com/rclone/rclone/fs/filter""github.com/rclone/rclone/fs/hash""github.com/rclone/rclone/fs/operations"- "golang.org/x/exp/slices")// ListingHeader defines first line of a listingdiff --git a/go.mod b/go.modindex 1e55be925..954905cd1 100644--- a/go.mod+++ b/go.mod@@ -79,7 +79,6 @@ require (go.etcd.io/bbolt v1.3.10goftp.io/server/v2 v2.0.1golang.org/x/crypto v0.25.0- golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56golang.org/x/net v0.27.0golang.org/x/oauth2 v0.21.0golang.org/x/sync v0.8.0@@ -205,6 +204,7 @@ require (go.opentelemetry.io/otel v1.24.0 // indirectgo.opentelemetry.io/otel/metric v1.24.0 // indirectgo.opentelemetry.io/otel/trace v1.24.0 // indirect+ golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirectgolang.org/x/mod v0.19.0 // indirectgolang.org/x/tools v0.23.0 // indirectgoogle.golang.org/genproto/googleapis/api v0.0.0-20240701130421-f6361c86f094 // indirect