File tree 8 files changed +39
-24
lines changed
8 files changed +39
-24
lines changed Original file line number Diff line number Diff line change 4
4
* .log
5
5
unittest.xml
6
6
venv /
7
+ vendor /
7
8
.idea /
8
9
main
9
- go.sum
10
+ vendor /
Original file line number Diff line number Diff line change 5
5
- osx
6
6
7
7
go :
8
- - " 1.10"
9
- - master
8
+ - " 1.11.x"
9
+ - " 1.12.x"
10
+ - " 1.13.x"
11
+
12
+ env :
13
+ - GO111MODULE=on
10
14
11
15
before_install :
12
16
- pip install --user -r tests/pip-req.txt
13
17
14
18
install :
15
- - go get -u golang.org/x/vgo
16
19
- go get -u golang.org/x/tools/cmd/goimports
17
- - go get -u github.com/douban/gobeansdb
18
20
19
21
script :
20
22
- diff <(goimports -d .) <(printf "")
23
+ - make install
24
+ - go get -u github.com/douban/gobeansdb
21
25
- make test
Original file line number Diff line number Diff line change @@ -2,22 +2,11 @@ all:install
2
2
3
3
export PYTHONPATH =.
4
4
5
- # FIXME: When this issue is done(https://github.com/golang/go/issues/23965#issuecomment-409232583)
6
- # Determine the compiler and version
7
- COMPILER_HELP := $(shell $(CC ) --help | head -n 1)
8
- ifneq (,$(findstring clang,$(COMPILER_HELP ) ) )
9
- COMPILER = clang
10
- else ifneq (,$(findstring gcc,$(COMPILER_HELP)))
11
- COMPILER = gcc
12
- else
13
- COMPILER = unknown
14
- endif
15
-
16
5
test :
17
6
./misc/gobeansdb_server.sh start
18
7
go version
19
- vgo test github.com/douban/gobeansproxy/config
20
- vgo test github.com/douban/gobeansproxy/dstore
8
+ go test github.com/douban/gobeansproxy/config
9
+ go test github.com/douban/gobeansproxy/dstore
21
10
./misc/gobeansdb_server.sh stop
22
11
23
12
template :
@@ -28,4 +17,5 @@ pytest:install
28
17
./tests/run_test.sh
29
18
30
19
install :
31
- CC=$(COMPILER ) vgo install ./
20
+ GO111MODULE=on go mod vendor
21
+ go install ./
Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ A proxy for [Gobeansdb](https://github.com/douban/gobeansdb).
4
4
5
5
## Prepare
6
6
7
- GoBeansProxy use ` vgo ` manage dependencies, please install [ vgo] ( https://godoc.org/golang.org/x/vgo ) first.
8
- Supported Go version: 1.10.1+
7
+ Supported Go version: > 1.11.0
9
8
10
9
## Install
11
10
@@ -24,5 +23,9 @@ $ make test # unit test
24
23
## run
25
24
26
25
```
26
+ # Run with conf
27
+ $ ${GOPATH}/bin/proxy -confdir pathToConfDir
28
+
29
+ # Others
27
30
$ ${GOPATH}/bin/proxy -h
28
31
```
Original file line number Diff line number Diff line change 9
9
)
10
10
11
11
const (
12
- Version = "1 .0.0.8 "
12
+ Version = "v1 .0.2 "
13
13
)
14
14
15
15
var (
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ func (sch *ManualScheduler) checkFailsForBucket(bucket *Bucket) {
255
255
} else {
256
256
logger .Infof (
257
257
"beansdb server %s in Bucket %X's Down while check fails , err is %s" ,
258
- hostBucket .host .Addr , bucket , err )
258
+ hostBucket .host .Addr , bucket . ID , err )
259
259
}
260
260
}
261
261
}
Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ module github.com/douban/gobeansproxy
2
2
3
3
require (
4
4
github.com/davecgh/go-spew v1.1.0 // indirect
5
- github.com/douban/gobeansdb v1.0.1
5
+ github.com/douban/gobeansdb v1.1.0
6
6
github.com/pmezard/go-difflib v1.0.0 // indirect
7
7
github.com/stretchr/testify v1.2.2
8
8
gopkg.in/yaml.v2 v2.2.1
9
9
)
10
+
11
+ go 1.13
Original file line number Diff line number Diff line change
1
+ github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8 =
2
+ github.com/davecgh/go-spew v1.1.0 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
3
+ github.com/douban/gobeansdb v1.1.0 h1:Ia659+3inop0LFeS8/aLFM7mEcJ0hdX0fcIGrZC1aDw =
4
+ github.com/douban/gobeansdb v1.1.0 /go.mod h1:1Irour4eUljC+P/4aD6qI1z9zWao4IzQYJmfuRqcH7o =
5
+ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
6
+ github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
7
+ github.com/samuel/go-zookeeper v0.0.0-20180130194729-c4fab1ac1bec h1:6ncX5ko6B9LntYM0YBRXkiSaZMmLYeZ/NWcmeB43mMY =
8
+ github.com/samuel/go-zookeeper v0.0.0-20180130194729-c4fab1ac1bec /go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E =
9
+ github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72 /go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA =
10
+ github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w =
11
+ github.com/stretchr/testify v1.2.2 /go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs =
12
+ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM =
13
+ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 /go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
14
+ gopkg.in/yaml.v2 v2.2.1 h1:mUhvW9EsL+naU5Q3cakzfE91YhliOondGd6ZrsDBHQE =
15
+ gopkg.in/yaml.v2 v2.2.1 /go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI =
You can’t perform that action at this time.
0 commit comments