Skip to content

Commit

Permalink
upgrade to 5.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dbakit committed Jan 18, 2024
1 parent e216eae commit ff39ba6
Show file tree
Hide file tree
Showing 30 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion cli/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

"go.uber.org/zap"

"github.com/dbakit/dumpling/log"
"github.com/dbakit/dumpling/v5/log"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions cmd/dumpling/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"github.com/spf13/pflag"
"go.uber.org/zap"

"github.com/dbakit/dumpling/cli"
"github.com/dbakit/dumpling/export"
"github.com/dbakit/dumpling/v5/cli"
"github.com/dbakit/dumpling/v5/export"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package context
import (
gcontext "context"

"github.com/dbakit/dumpling/log"
"github.com/dbakit/dumpling/v5/log"
)

// Context is used to in dm to record some context field like
Expand Down
2 changes: 1 addition & 1 deletion export/block_allow_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package export
import (
"go.uber.org/zap"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"
)

func filterDatabases(tctx *tcontext.Context, conf *Config, databases []string) []string {
Expand Down
2 changes: 1 addition & 1 deletion export/block_allow_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"testing"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"
"github.com/pingcap/tidb-tools/pkg/filter"
tf "github.com/pingcap/tidb-tools/pkg/table-filter"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion export/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"text/template"
"time"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"

"github.com/coreos/go-semver/semver"
"github.com/docker/go-units"
Expand Down
2 changes: 1 addition & 1 deletion export/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package export
import (
"testing"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion export/consistency.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"context"
"database/sql"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"

"github.com/pingcap/errors"
"github.com/pingcap/tidb/br/pkg/utils"
Expand Down
2 changes: 1 addition & 1 deletion export/consistency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"errors"
"testing"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"
"github.com/stretchr/testify/require"

"github.com/DATA-DOG/go-sqlmock"
Expand Down
6 changes: 3 additions & 3 deletions export/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"strings"
"time"

"github.com/dbakit/dumpling/cli"
tcontext "github.com/dbakit/dumpling/context"
"github.com/dbakit/dumpling/log"
"github.com/dbakit/dumpling/v5/cli"
tcontext "github.com/dbakit/dumpling/v5/context"
"github.com/dbakit/dumpling/v5/log"

// import mysql driver
_ "github.com/go-sql-driver/mysql"
Expand Down
2 changes: 1 addition & 1 deletion export/dump_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"
"github.com/stretchr/testify/require"

"github.com/DATA-DOG/go-sqlmock"
Expand Down
4 changes: 2 additions & 2 deletions export/http_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"strings"
"time"

"github.com/dbakit/dumpling/log"
"github.com/dbakit/dumpling/v5/log"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"

"github.com/pingcap/errors"
"github.com/prometheus/client_golang/prometheus/promhttp"
Expand Down
2 changes: 1 addition & 1 deletion export/ir.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/pingcap/errors"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"
)

// TableDataIR is table data intermediate representation.
Expand Down
2 changes: 1 addition & 1 deletion export/ir_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/pingcap/errors"
"go.uber.org/zap"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"
)

// rowIter implements the SQLRowIter interface.
Expand Down
2 changes: 1 addition & 1 deletion export/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"os"
"testing"

"github.com/dbakit/dumpling/log"
"github.com/dbakit/dumpling/v5/log"
"github.com/prometheus/client_golang/prometheus"
"github.com/stretchr/testify/require"
"go.uber.org/goleak"
Expand Down
2 changes: 1 addition & 1 deletion export/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"time"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"

"github.com/pingcap/errors"
"github.com/pingcap/tidb/br/pkg/storage"
Expand Down
2 changes: 1 addition & 1 deletion export/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os"
"testing"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"
"github.com/stretchr/testify/require"

"github.com/DATA-DOG/go-sqlmock"
Expand Down
2 changes: 1 addition & 1 deletion export/prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/pingcap/errors"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion export/prepare_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"testing"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"
"github.com/stretchr/testify/require"

"github.com/DATA-DOG/go-sqlmock"
Expand Down
2 changes: 1 addition & 1 deletion export/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"

"github.com/go-sql-driver/mysql"
"github.com/pingcap/errors"
Expand Down
4 changes: 2 additions & 2 deletions export/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (
"strconv"
"strings"

"github.com/dbakit/dumpling/log"
"github.com/dbakit/dumpling/v5/log"

"github.com/go-sql-driver/mysql"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"

"github.com/pingcap/errors"
"github.com/pingcap/tidb/parser/model"
Expand Down
2 changes: 1 addition & 1 deletion export/sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"strings"
"testing"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"
"github.com/stretchr/testify/require"

"github.com/DATA-DOG/go-sqlmock"
Expand Down
2 changes: 1 addition & 1 deletion export/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"time"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"

"github.com/docker/go-units"
"go.uber.org/zap"
Expand Down
2 changes: 1 addition & 1 deletion export/test_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"database/sql/driver"
"fmt"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"

"github.com/DATA-DOG/go-sqlmock"
)
Expand Down
2 changes: 1 addition & 1 deletion export/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"time"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"

"github.com/pingcap/errors"
"go.etcd.io/etcd/clientv3"
Expand Down
2 changes: 1 addition & 1 deletion export/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"text/template"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"

"github.com/pingcap/errors"
"github.com/pingcap/tidb/br/pkg/storage"
Expand Down
2 changes: 1 addition & 1 deletion export/writer_serial_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"testing"

tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"
"github.com/stretchr/testify/require"

"github.com/pingcap/errors"
Expand Down
2 changes: 1 addition & 1 deletion export/writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"testing"

"github.com/DATA-DOG/go-sqlmock"
tcontext "github.com/dbakit/dumpling/context"
tcontext "github.com/dbakit/dumpling/v5/context"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 2 additions & 2 deletions export/writer_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"sync"
"time"

tcontext "github.com/dbakit/dumpling/context"
"github.com/dbakit/dumpling/log"
tcontext "github.com/dbakit/dumpling/v5/context"
"github.com/dbakit/dumpling/v5/log"

"github.com/pingcap/errors"
"github.com/pingcap/failpoint"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/dbakit/dumpling
module github.com/dbakit/dumpling/v5

go 1.21.6

Expand Down

0 comments on commit ff39ba6

Please sign in to comment.