Skip to content

Commit 7bd8098

Browse files
authored
update vendor (#232)
1 parent 772331f commit 7bd8098

File tree

218 files changed

+11227
-3555
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+11227
-3555
lines changed

.travis.install-mysql-5.7.sh

-8
This file was deleted.

.travis.yml

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,33 @@
11
language: go
22

33
go:
4-
- 1.7
5-
- 1.8
4+
- "1.9"
5+
- "1.10"
66

77
services:
88
- elasticsearch
9-
- mysql
9+
10+
addons:
11+
apt:
12+
sources:
13+
- mysql-5.7-trusty
14+
packages:
15+
- mysql-server
16+
- mysql-client
1017

1118
before_install:
12-
- go install -race std
19+
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
20+
- sudo mysql_upgrade
1321

1422
# stop mysql and use row-based format binlog
15-
- "bash .travis.install-mysql-5.7.sh"
16-
- "sudo /etc/init.d/mysql stop || true"
23+
- "sudo service mysql stop || true"
1724
- "echo '[mysqld]' | sudo tee /etc/mysql/conf.d/replication.cnf"
1825
- "echo 'server-id=1' | sudo tee -a /etc/mysql/conf.d/replication.cnf"
1926
- "echo 'log-bin=mysql-bin' | sudo tee -a /etc/mysql/conf.d/replication.cnf"
2027
- "echo 'binlog-format = row' | sudo tee -a /etc/mysql/conf.d/replication.cnf"
2128

2229
# Start mysql (avoid errors to have logs)
23-
- "sudo /etc/init.d/mysql start || true"
30+
- "sudo service mysql start || true"
2431
- "sudo tail -1000 /var/log/syslog"
2532

2633
- mysql -e "CREATE DATABASE IF NOT EXISTS test;" -uroot

Gopkg.lock

+84
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Gopkg.toml example
2+
#
3+
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
4+
# for detailed Gopkg.toml documentation.
5+
#
6+
# required = ["github.com/user/thing/cmd/thing"]
7+
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
8+
#
9+
# [[constraint]]
10+
# name = "github.com/user/project"
11+
# version = "1.0.0"
12+
#
13+
# [[constraint]]
14+
# name = "github.com/user/project2"
15+
# branch = "dev"
16+
# source = "github.com/myfork/project2"
17+
#
18+
# [[override]]
19+
# name = "github.com/x/y"
20+
# version = "2.4.0"
21+
#
22+
# [prune]
23+
# non-go = false
24+
# go-tests = true
25+
# unused-packages = true
26+
27+
28+
[[constraint]]
29+
name = "github.com/BurntSushi/toml"
30+
version = "0.3.0"
31+
32+
[[constraint]]
33+
branch = "master"
34+
name = "github.com/juju/errors"
35+
36+
[[constraint]]
37+
branch = "master"
38+
name = "github.com/pingcap/check"
39+
40+
[[constraint]]
41+
branch = "master"
42+
name = "github.com/siddontang/go"
43+
44+
[[constraint]]
45+
branch = "master"
46+
name = "github.com/siddontang/go-mysql"
47+
48+
[[constraint]]
49+
name = "github.com/sirupsen/logrus"
50+
version = "1.0.3"
51+
52+
[prune]
53+
go-tests = true
54+
unused-packages = true

Makefile

+1-9
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,4 @@ test:
1010

1111
clean:
1212
go clean -i ./...
13-
@rm -rf bin
14-
15-
16-
update_vendor:
17-
which glide >/dev/null || curl https://glide.sh/get | sh
18-
which glide-vc || go get -v -u github.com/sgotti/glide-vc
19-
glide update --strip-vendor
20-
@echo "removing test files"
21-
glide-vc --only-code --no-tests --use-lock-file
13+
@rm -rf bin

clear_vendor.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
find vendor \( -type f -or -type l \) -not -name "*.go" -not -name "LICENSE" -not -name "*.s" -not -name "PATENTS" -not -name "*.h" -not -name "*.c" | xargs -I {} rm {}
2+
# delete all test files
3+
find vendor -type f -name "*_generated.go" | xargs -I {} rm {}
4+
find vendor -type f -name "*_test.go" | xargs -I {} rm {}
5+
find vendor -type d -name "_vendor" | xargs -I {} rm -rf {}
6+
find vendor -type d -empty | xargs -I {} rm -rf {}

glide.lock

-39
This file was deleted.

glide.yaml

-19
This file was deleted.

river/river_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ type = "river"
204204
}
205205

206206
func (s *riverTestSuite) testExecute(c *C, query string, args ...interface{}) {
207+
c.Logf("query %s, args: %v", query, args)
207208
_, err := s.c.Execute(query, args...)
208209
c.Assert(err, IsNil)
209210
}

river/sync.go

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ func (h *eventHandler) OnRotate(e *replication.RotateEvent) error {
5050
return h.r.ctx.Err()
5151
}
5252

53+
func (h *eventHandler) OnTableChanged(schema, table string) error {
54+
return nil
55+
}
56+
5357
func (h *eventHandler) OnDDL(nextPos mysql.Position, _ *replication.QueryEvent) error {
5458
h.r.syncCh <- posSaver{nextPos, true}
5559
return h.r.ctx.Err()

vendor/github.com/BurntSushi/toml/COPYING

-14
This file was deleted.

vendor/github.com/pingcap/check/check.go

+15-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/pingcap/check/run.go

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/satori/go.uuid/LICENSE

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)