File tree 3 files changed +17
-8
lines changed
3 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 1
1
all :install
2
2
3
- GOPATH: =$(CURDIR ) /../../../../
4
- export GOPATH
5
3
export PYTHONPATH =.
6
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
+
7
16
test :
8
17
./misc/gobeansdb_server.sh start
9
18
go version
@@ -19,4 +28,4 @@ pytest:install
19
28
./tests/run_test.sh
20
29
21
30
install :
22
- vgo install github.com/douban/gobeansproxy
31
+ CC= $( COMPILER ) vgo install ./
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ A proxy for [Gobeansdb](https://github.com/douban/gobeansdb).
4
4
5
5
## Prepare
6
6
7
- GoBeansDB use ` vgo ` manage dependencies, please install [ vgo] ( https://godoc.org/golang.org/x/vgo ) first.
7
+ GoBeansProxy use ` vgo ` manage dependencies, please install [ vgo] ( https://godoc.org/golang.org/x/vgo ) first.
8
+ Supported Go version: 1.10.1+
8
9
9
10
## Install
10
11
11
12
```
12
- $ cd ${GOPATH}
13
- $ git clone http://github.com/douban/gobeansproxy.git src/github.com/douban/gobeansproxy
14
- $ cd src/github.com/douban/gobeansproxy
13
+ $ git clone http://github.com/douban/gobeansproxy.git
14
+ $ cd gobeansproxy
15
15
$ make
16
16
```
17
17
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ 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 v0 .0.0-20180809060252-7f57d32485c3
5
+ github.com/douban/gobeansdb v1 .0.1
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
You can’t perform that action at this time.
0 commit comments