-
Notifications
You must be signed in to change notification settings - Fork 26
Description
我在CentOS 7上make的时候,出错了,这个我系统的版本信息:
➜ influxdb-gateway git:(master) lsb_release
LSB Version: :core-4.1-amd64:core-4.1-noarch
➜ influxdb-gateway git:(master) go version
go version go1.9.2 linux/amd64
下面是执行make时的日志
➜ influxdb-gateway git:(master) ls
gateway Godeps main.go Makefile readme.md
➜ influxdb-gateway git:(master) make b
CGO_ENABLED=0 go build -o bin/influxdb-gateway main.go
github.com/pingliu/influxdb-gateway/gateway
../../gopath/src/github.com/pingliu/influxdb-gateway/gateway/gateway.go:56:19: cannot use g.PointsWriter (type interface { WritePoints(string, string, models.ConsistencyLevel, []models.Point) error }) as type interface { WritePointsPrivileged(string, string, models.ConsistencyLevel, []models.Point) error } in assignment:
interface { WritePoints(string, string, models.ConsistencyLevel, []models.Point) error } does not implement interface { WritePointsPrivileged(string, string, models.ConsistencyLevel, []models.Point) error } (missing WritePointsPrivileged method)
../../gopath/src/github.com/pingliu/influxdb-gateway/gateway/gateway.go:58:13: cannot use g.Logger (type zap.Logger) as type *zap.Logger in assignment
make: *** [b] Error 2