Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

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.go
index 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.go
index 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 -v
diff --git a/cmd/bisync/listing.go b/cmd/bisync/listing.go
index 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 listing
diff --git a/go.mod b/go.mod
index 1e55be925..954905cd1 100644
--- a/go.mod
+++ b/go.mod
@@ -79,7 +79,6 @@ require (
go.etcd.io/bbolt v1.3.10
goftp.io/server/v2 v2.0.1
golang.org/x/crypto v0.25.0
- golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56
golang.org/x/net v0.27.0
golang.org/x/oauth2 v0.21.0
golang.org/x/sync v0.8.0
@@ -205,6 +204,7 @@ require (
go.opentelemetry.io/otel v1.24.0 // indirect
go.opentelemetry.io/otel/metric v1.24.0 // indirect
go.opentelemetry.io/otel/trace v1.24.0 // indirect
+ golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
golang.org/x/mod v0.19.0 // indirect
golang.org/x/tools v0.23.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240701130421-f6361c86f094 // indirect