Skip to content

Commit

Permalink
update dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Apr 20, 2021
1 parent b29127d commit ae22046
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 239 deletions.
15 changes: 9 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ all: build
GO111MODULE=on

build:
go build -o bin/go-mysqlbinlog cmd/go-mysqlbinlog/main.go
go build -o bin/go-mysqldump cmd/go-mysqldump/main.go
go build -o bin/go-canal cmd/go-canal/main.go
go build -o bin/go-binlogparser cmd/go-binlogparser/main.go
go build -o bin/go-mysqlbinlog cmd/go-mysqlbinlog/main.go
go build -o bin/go-mysqldump cmd/go-mysqldump/main.go
go build -o bin/go-canal cmd/go-canal/main.go
go build -o bin/go-binlogparser cmd/go-binlogparser/main.go

test:
go test --race -timeout 2m ./...


fmt:
golangci-lint run --fix

clean:
go clean -i ./...
@rm -rf ./bin
2 changes: 1 addition & 1 deletion canal/expr.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type valueExpr struct {
ast.TexprNode
}

func newValueExpr(_ interface{}) ast.ValueExpr { return &valueExpr{} }
func newValueExpr(_ interface{}, _ string, _ string) ast.ValueExpr { return &valueExpr{} }
func (ve *valueExpr) SetValue(val interface{}) {}
func (ve *valueExpr) GetValue() interface{} { return nil }
func (ve *valueExpr) GetDatumString() string { return "" }
Expand Down
15 changes: 7 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,17 @@ go 1.16
require (
github.com/BurntSushi/toml v0.3.1
github.com/go-sql-driver/mysql v1.5.0
github.com/golang/protobuf v1.3.1 // indirect
github.com/jmoiron/sqlx v1.3.3
github.com/pingcap/check v0.0.0-20190102082844-67f458068fc8
github.com/pingcap/errors v0.11.0
github.com/pingcap/parser v0.0.0-20190506092653-e336082eb825
github.com/pingcap/tidb v0.0.0-20190108123336-c68ee7318319 // indirect
github.com/pingcap/tipb v0.0.0-20190428032612-535e1abaa330 // indirect
github.com/pingcap/errors v0.11.5-0.20201126102027-b0a155152ca3
github.com/pingcap/log v0.0.0-20210317133921-96f4fcab92a4 // indirect
github.com/pingcap/parser v0.0.0-20210415081931-48e7f467fd74
github.com/satori/go.uuid v1.2.0
github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24
github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726
github.com/siddontang/go-log v0.0.0-20180807004314-8d05993dda07
github.com/sirupsen/logrus v1.4.1 // indirect
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a // indirect
golang.org/x/text v0.3.2 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.16.0 // indirect
golang.org/x/text v0.3.6 // indirect
golang.org/x/tools v0.0.0-20201125231158-b5590deeca9b // indirect
)
Loading

0 comments on commit ae22046

Please sign in to comment.