Replace sync with lib/sync for deadlock detection with deadlock build tag

This commit is contained in:
Nick Craig-Wood 2021-10-28 14:21:16 +01:00
parent 386deb3633
commit 8c8a38711b
124 changed files with 130 additions and 123 deletions

View File

@ -19,7 +19,7 @@ import (
"path" "path"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/Azure/azure-pipeline-go/pipeline" "github.com/Azure/azure-pipeline-go/pipeline"

View File

@ -17,7 +17,7 @@ import (
"path" "path"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/backend/b2/api" "github.com/rclone/rclone/backend/b2/api"

View File

@ -13,7 +13,7 @@ import (
gohash "hash" gohash "hash"
"io" "io"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/rclone/rclone/backend/b2/api" "github.com/rclone/rclone/backend/b2/api"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -23,7 +23,7 @@ import (
"path" "path"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"sync/atomic" "sync/atomic"
"time" "time"

View File

@ -13,7 +13,7 @@ import (
"io" "io"
"net/http" "net/http"
"strconv" "strconv"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/backend/box/api" "github.com/rclone/rclone/backend/box/api"

View File

@ -16,7 +16,7 @@ import (
"sort" "sort"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"syscall" "syscall"
"time" "time"

View File

@ -11,7 +11,7 @@ import (
"path" "path"
"runtime" "runtime"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -8,7 +8,7 @@ import (
"fmt" "fmt"
"io" "io"
"path" "path"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -12,7 +12,7 @@ import (
"net/http" "net/http"
"net/url" "net/url"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
cache "github.com/patrickmn/go-cache" cache "github.com/patrickmn/go-cache"

View File

@ -14,7 +14,7 @@ import (
"path" "path"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -19,7 +19,7 @@ import (
"sort" "sort"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -13,7 +13,7 @@ import (
"io" "io"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"unicode/utf8" "unicode/utf8"

View File

@ -21,7 +21,7 @@ import (
"sort" "sort"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"sync/atomic" "sync/atomic"
"text/template" "text/template"
"time" "time"

View File

@ -10,7 +10,7 @@ import (
"context" "context"
"errors" "errors"
"fmt" "fmt"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/async" "github.com/dropbox/dropbox-sdk-go-unofficial/v6/dropbox/async"

View File

@ -25,7 +25,7 @@ import (
"net/url" "net/url"
"path" "path"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"sync/atomic" "sync/atomic"
"time" "time"

View File

@ -12,7 +12,7 @@ import (
"path" "path"
"runtime" "runtime"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/jlaffaye/ftp" "github.com/jlaffaye/ftp"

View File

@ -5,7 +5,7 @@ package googlephotos
import ( import (
"path" "path"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/rclone/rclone/backend/googlephotos/api" "github.com/rclone/rclone/backend/googlephotos/api"
) )

View File

@ -15,7 +15,7 @@ import (
"regexp" "regexp"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/backend/googlephotos/api" "github.com/rclone/rclone/backend/googlephotos/api"

View File

@ -9,7 +9,7 @@ import (
"io" "io"
"path" "path"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -15,7 +15,7 @@ import (
"path" "path"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -13,7 +13,7 @@ import (
"path/filepath" "path/filepath"
"runtime" "runtime"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"unicode/utf8" "unicode/utf8"

View File

@ -3,7 +3,7 @@ package local
import ( import (
"io/ioutil" "io/ioutil"
"os" "os"
"sync" "github.com/rclone/rclone/lib/sync"
"testing" "testing"
"time" "time"

View File

@ -12,7 +12,7 @@ import (
"sort" "sort"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"encoding/hex" "encoding/hex"

View File

@ -22,7 +22,7 @@ import (
"io" "io"
"path" "path"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -11,7 +11,7 @@ import (
"io/ioutil" "io/ioutil"
"path" "path"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -16,7 +16,7 @@ import (
"regexp" "regexp"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/backend/onedrive/api" "github.com/rclone/rclone/backend/onedrive/api"

View File

@ -13,7 +13,7 @@ import (
"hash" "hash"
"io" "io"
"sort" "sort"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"
"github.com/rclone/rclone/lib/atexit" "github.com/rclone/rclone/lib/atexit"

View File

@ -19,7 +19,7 @@ import (
"sort" "sort"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws"

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"fmt" "fmt"
"net/url" "net/url"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -10,7 +10,7 @@ import (
"path" "path"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/coreos/go-semver/semver" "github.com/coreos/go-semver/semver"

View File

@ -17,7 +17,7 @@ import (
"regexp" "regexp"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"sync/atomic" "sync/atomic"
"time" "time"

View File

@ -3,7 +3,7 @@
package sftp package sftp
import "sync" import "github.com/rclone/rclone/lib/sync"
// stringLock locks for string IDs passed in // stringLock locks for string IDs passed in
type stringLock struct { type stringLock struct {

View File

@ -5,7 +5,7 @@ package sftp
import ( import (
"fmt" "fmt"
"sync" "github.com/rclone/rclone/lib/sync"
"testing" "testing"
"time" "time"

View File

@ -13,7 +13,7 @@ import (
"fmt" "fmt"
"io" "io"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/rclone/rclone/backend/sharefile/api" "github.com/rclone/rclone/backend/sharefile/api"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -23,7 +23,7 @@ import (
"regexp" "regexp"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/backend/sugarsync/api" "github.com/rclone/rclone/backend/sugarsync/api"

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"fmt" "fmt"
"io" "io"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/backend/union/upstream" "github.com/rclone/rclone/backend/union/upstream"

View File

@ -3,7 +3,7 @@ package policy
import ( import (
"context" "context"
"path" "path"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/rclone/rclone/backend/union/upstream" "github.com/rclone/rclone/backend/union/upstream"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -3,7 +3,7 @@ package policy
import ( import (
"context" "context"
"path" "path"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/backend/union/upstream" "github.com/rclone/rclone/backend/union/upstream"

View File

@ -9,7 +9,7 @@ import (
"path" "path"
"path/filepath" "path/filepath"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/backend/union/policy" "github.com/rclone/rclone/backend/union/policy"

View File

@ -9,7 +9,7 @@ import (
"path" "path"
"path/filepath" "path/filepath"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"sync/atomic" "sync/atomic"
"time" "time"

View File

@ -6,7 +6,7 @@ import (
"regexp" "regexp"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -21,7 +21,7 @@ import (
"path" "path"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/backend/webdav/api" "github.com/rclone/rclone/backend/webdav/api"

View File

@ -19,7 +19,7 @@ import (
"runtime" "runtime"
"sort" "sort"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"text/template" "text/template"
"time" "time"

View File

@ -19,7 +19,7 @@ import (
"runtime/pprof" "runtime/pprof"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -9,7 +9,7 @@ import (
"io" "io"
"os" "os"
"path" "path"
"sync" "github.com/rclone/rclone/lib/sync"
"sync/atomic" "sync/atomic"
"time" "time"

View File

@ -12,7 +12,7 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"sort" "sort"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
) )

View File

@ -7,7 +7,7 @@ import (
"os" "os"
"runtime" "runtime"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/cmd" "github.com/rclone/rclone/cmd"

View File

@ -5,7 +5,7 @@ import (
"errors" "errors"
"log" "log"
"sort" "sort"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -5,7 +5,7 @@ import (
"context" "context"
"fmt" "fmt"
"path" "path"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"
"github.com/rclone/rclone/fs/walk" "github.com/rclone/rclone/fs/walk"

View File

@ -6,7 +6,7 @@ import (
"bytes" "bytes"
"fmt" "fmt"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -3,7 +3,7 @@ package rcd
import ( import (
"context" "context"
"log" "log"
"sync" "github.com/rclone/rclone/lib/sync"
sysdnotify "github.com/iguanesolutions/go-systemd/v5/notify" sysdnotify "github.com/iguanesolutions/go-systemd/v5/notify"
"github.com/rclone/rclone/cmd" "github.com/rclone/rclone/cmd"

View File

@ -10,7 +10,7 @@ import (
"path/filepath" "path/filepath"
"reflect" "reflect"
"sort" "sort"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
sysdnotify "github.com/iguanesolutions/go-systemd/v5/notify" sysdnotify "github.com/iguanesolutions/go-systemd/v5/notify"

View File

@ -14,7 +14,7 @@ import (
"os" "os"
"os/user" "os/user"
"strconv" "strconv"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/cmd" "github.com/rclone/rclone/cmd"

View File

@ -5,7 +5,7 @@ package restic
import ( import (
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"
) )

View File

@ -16,7 +16,7 @@ import (
"sort" "sort"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/cmd" "github.com/rclone/rclone/cmd"

View File

@ -3,7 +3,7 @@ package memory
import ( import (
"context" "context"
"runtime" "runtime"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/rclone/rclone/cmd" "github.com/rclone/rclone/cmd"
"github.com/rclone/rclone/cmd/test" "github.com/rclone/rclone/cmd/test"

View File

@ -6,7 +6,7 @@ import (
"errors" "errors"
"fmt" "fmt"
"io" "io"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"unicode/utf8" "unicode/utf8"

View File

@ -2,7 +2,7 @@ package accounting
import ( import (
"context" "context"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"
) )

View File

@ -6,7 +6,7 @@ import (
"fmt" "fmt"
"sort" "sort"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -2,7 +2,7 @@ package accounting
import ( import (
"context" "context"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/rclone/rclone/fs/rc" "github.com/rclone/rclone/fs/rc"

View File

@ -4,11 +4,11 @@ import (
"context" "context"
"errors" "errors"
"fmt" "fmt"
"sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"
"github.com/rclone/rclone/fs/rc" "github.com/rclone/rclone/fs/rc"
"github.com/rclone/rclone/lib/sync"
"golang.org/x/time/rate" "golang.org/x/time/rate"
) )

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"encoding/json" "encoding/json"
"io" "io"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"sort" "sort"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"
"github.com/rclone/rclone/fs/rc" "github.com/rclone/rclone/fs/rc"

View File

@ -6,7 +6,7 @@ import (
"context" "context"
"errors" "errors"
"io" "io"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -9,7 +9,7 @@ import (
"io/ioutil" "io/ioutil"
"math/rand" "math/rand"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"testing" "testing"
"testing/iotest" "testing/iotest"
"time" "time"

2
fs/cache/cache.go vendored
View File

@ -4,7 +4,7 @@ package cache
import ( import (
"context" "context"
"runtime" "runtime"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"
"github.com/rclone/rclone/fs/filter" "github.com/rclone/rclone/fs/filter"

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"errors" "errors"
"io" "io"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"
"github.com/rclone/rclone/fs/hash" "github.com/rclone/rclone/fs/hash"

View File

@ -8,7 +8,7 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/Unknwon/goconfig" "github.com/Unknwon/goconfig"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -2,7 +2,7 @@ package config
import ( import (
"encoding/json" "encoding/json"
"sync" "github.com/rclone/rclone/lib/sync"
) )
// defaultStorage implements config.Storage, providing in-memory config. // defaultStorage implements config.Storage, providing in-memory config.

View File

@ -6,7 +6,7 @@ import (
"io/ioutil" "io/ioutil"
"os" "os"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"testing" "testing"
"time" "time"

View File

@ -7,7 +7,7 @@ import (
"fmt" "fmt"
"os" "os"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"testing" "testing"
"time" "time"

View File

@ -5,7 +5,7 @@ import (
"net" "net"
"runtime" "runtime"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -12,7 +12,7 @@ import (
"net/http" "net/http"
"net/http/cookiejar" "net/http/cookiejar"
"net/http/httputil" "net/http/httputil"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -7,7 +7,7 @@ import (
"path" "path"
"sort" "sort"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"
"github.com/rclone/rclone/fs/dirtree" "github.com/rclone/rclone/fs/dirtree"

View File

@ -7,7 +7,7 @@ import (
"errors" "errors"
"fmt" "fmt"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"testing" "testing"
_ "github.com/rclone/rclone/backend/local" _ "github.com/rclone/rclone/backend/local"

View File

@ -10,7 +10,7 @@ import (
"os" "os"
"regexp" "regexp"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"sync/atomic" "sync/atomic"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -18,7 +18,7 @@ import (
"sort" "sort"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"sync/atomic" "sync/atomic"
"time" "time"

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"errors" "errors"
"io" "io"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"
"github.com/rclone/rclone/fs/fserrors" "github.com/rclone/rclone/fs/fserrors"

View File

@ -7,7 +7,7 @@ import (
"errors" "errors"
"fmt" "fmt"
"runtime/debug" "runtime/debug"
"sync" "github.com/rclone/rclone/lib/sync"
"sync/atomic" "sync/atomic"
"time" "time"

View File

@ -15,7 +15,7 @@ import (
"regexp" "regexp"
"sort" "sort"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"

View File

@ -6,7 +6,7 @@ import (
"context" "context"
"sort" "sort"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
) )
// Func defines a type for a remote control function // Func defines a type for a remote control function

View File

@ -12,7 +12,7 @@ import (
"path/filepath" "path/filepath"
"regexp" "regexp"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"
"github.com/rclone/rclone/fs/config" "github.com/rclone/rclone/fs/config"

View File

@ -6,7 +6,7 @@ import (
"math/bits" "math/bits"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/aalpar/deheap" "github.com/aalpar/deheap"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -3,7 +3,7 @@ package sync
import ( import (
"container/heap" "container/heap"
"context" "context"
"sync" "github.com/rclone/rclone/lib/sync"
"sync/atomic" "sync/atomic"
"testing" "testing"

View File

@ -8,7 +8,7 @@ import (
"path" "path"
"sort" "sort"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -8,7 +8,7 @@ import (
"path" "path"
"sort" "sort"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -6,7 +6,7 @@ import (
"fmt" "fmt"
"io" "io"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"testing" "testing"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -17,7 +17,7 @@ import (
"sort" "sort"
"strconv" "strconv"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -11,7 +11,7 @@ import (
"path/filepath" "path/filepath"
"regexp" "regexp"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

4
go.mod
View File

@ -10,7 +10,7 @@ require (
github.com/Azure/azure-storage-blob-go v0.14.0 github.com/Azure/azure-storage-blob-go v0.14.0
github.com/Azure/go-autorest/autorest/adal v0.9.17 github.com/Azure/go-autorest/autorest/adal v0.9.17
github.com/Azure/go-ntlmssp v0.0.0-20200615164410-66371956d46c github.com/Azure/go-ntlmssp v0.0.0-20200615164410-66371956d46c
github.com/Max-Sum/base32768 v0.0.0-20191205131208-7937843c71d5 // indirect github.com/Max-Sum/base32768 v0.0.0-20191205131208-7937843c71d5
github.com/Unknwon/goconfig v0.0.0-20200908083735-df7de6a44db8 github.com/Unknwon/goconfig v0.0.0-20200908083735-df7de6a44db8
github.com/a8m/tree v0.0.0-20210414114729-ce3525c5c2ef github.com/a8m/tree v0.0.0-20210414114729-ce3525c5c2ef
github.com/aalpar/deheap v0.0.0-20210914013432-0cc84d79dec3 github.com/aalpar/deheap v0.0.0-20210914013432-0cc84d79dec3
@ -49,6 +49,7 @@ require (
github.com/prometheus/client_golang v1.11.0 github.com/prometheus/client_golang v1.11.0
github.com/putdotio/go-putio/putio v0.0.0-20200123120452-16d982cac2b8 github.com/putdotio/go-putio/putio v0.0.0-20200123120452-16d982cac2b8
github.com/rfjakob/eme v1.1.2 github.com/rfjakob/eme v1.1.2
github.com/sasha-s/go-deadlock v0.3.1
github.com/shirou/gopsutil/v3 v3.21.10 github.com/shirou/gopsutil/v3 v3.21.10
github.com/sirupsen/logrus v1.8.1 github.com/sirupsen/logrus v1.8.1
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
@ -108,6 +109,7 @@ require (
github.com/mattn/go-isatty v0.0.14 // indirect github.com/mattn/go-isatty v0.0.14 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/pengsrc/go-shared v0.2.1-0.20190131101655-1999055a4a14 // indirect github.com/pengsrc/go-shared v0.2.1-0.20190131101655-1999055a4a14 // indirect
github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect
github.com/prometheus/client_model v0.2.0 // indirect github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.32.1 // indirect github.com/prometheus/common v0.32.1 // indirect
github.com/prometheus/procfs v0.7.3 // indirect github.com/prometheus/procfs v0.7.3 // indirect

4
go.sum
View File

@ -502,6 +502,8 @@ github.com/pborman/getopt v0.0.0-20180729010549-6fdd0a2c7117/go.mod h1:85jBQOZwp
github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
github.com/pengsrc/go-shared v0.2.1-0.20190131101655-1999055a4a14 h1:XeOYlK9W1uCmhjJSsY78Mcuh7MVkNjTzmHx1yBzizSU= github.com/pengsrc/go-shared v0.2.1-0.20190131101655-1999055a4a14 h1:XeOYlK9W1uCmhjJSsY78Mcuh7MVkNjTzmHx1yBzizSU=
github.com/pengsrc/go-shared v0.2.1-0.20190131101655-1999055a4a14/go.mod h1:jVblp62SafmidSkvWrXyxAme3gaTfEtWwRPGz5cpvHg= github.com/pengsrc/go-shared v0.2.1-0.20190131101655-1999055a4a14/go.mod h1:jVblp62SafmidSkvWrXyxAme3gaTfEtWwRPGz5cpvHg=
github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 h1:q2e307iGHPdTGp0hoxKjt1H5pDo6utceo3dQVK3I5XQ=
github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o=
github.com/philhofer/fwd v1.0.0/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU= github.com/philhofer/fwd v1.0.0/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
@ -555,6 +557,8 @@ github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
github.com/ryszard/goskiplist v0.0.0-20150312221310-2dfbae5fcf46/go.mod h1:uAQ5PCi+MFsC7HjREoAz1BU+Mq60+05gifQSsHSDG/8= github.com/ryszard/goskiplist v0.0.0-20150312221310-2dfbae5fcf46/go.mod h1:uAQ5PCi+MFsC7HjREoAz1BU+Mq60+05gifQSsHSDG/8=
github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0=
github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM=
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
github.com/shirou/gopsutil/v3 v3.21.10 h1:flTg1DrnV/UVrBqjLgVgDJzx6lf+91rC64/dBHmO2IA= github.com/shirou/gopsutil/v3 v3.21.10 h1:flTg1DrnV/UVrBqjLgVgDJzx6lf+91rC64/dBHmO2IA=

View File

@ -7,7 +7,7 @@ package atexit
import ( import (
"os" "os"
"os/signal" "os/signal"
"sync" "github.com/rclone/rclone/lib/sync"
"sync/atomic" "sync/atomic"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"

View File

@ -4,7 +4,7 @@ package bucket
import ( import (
"errors" "errors"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
) )
var ( var (

2
lib/cache/cache.go vendored
View File

@ -4,7 +4,7 @@ package cache
import ( import (
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
) )

View File

@ -11,7 +11,7 @@ import (
"fmt" "fmt"
"path" "path"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/rclone/rclone/fs" "github.com/rclone/rclone/fs"
) )

View File

@ -5,7 +5,7 @@ import (
"encoding/base64" "encoding/base64"
"encoding/binary" "encoding/binary"
"errors" "errors"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/dop251/scsu" "github.com/dop251/scsu"
"github.com/klauspost/compress/huff0" "github.com/klauspost/compress/huff0"

View File

@ -2,7 +2,7 @@ package filename
import ( import (
"encoding/base64" "encoding/base64"
"sync" "github.com/rclone/rclone/lib/sync"
"github.com/klauspost/compress/huff0" "github.com/klauspost/compress/huff0"
) )

View File

@ -5,7 +5,7 @@ package file
import ( import (
"os" "os"
"sync" "github.com/rclone/rclone/lib/sync"
"sync/atomic" "sync/atomic"
"syscall" "syscall"

View File

@ -6,7 +6,7 @@ package file
import ( import (
"fmt" "fmt"
"os" "os"
"sync" "github.com/rclone/rclone/lib/sync"
"syscall" "syscall"
"unsafe" "unsafe"

View File

@ -12,7 +12,7 @@ import (
"net" "net"
"net/http" "net/http"
"strings" "strings"
"sync" "github.com/rclone/rclone/lib/sync"
"time" "time"
"github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5"

Some files were not shown because too many files have changed in this diff Show More