HyperDex icon indicating copy to clipboard operation
HyperDex copied to clipboard

Go admin bindings fail to build

Open cactorium opened this issue 9 years ago • 0 comments

Testing by checking out releases/1.5, releases/1.6, releases/1.7 and running go build from rescrv/HyperDex/bindings/go, I always get some error. For 1.5:

# github.com/rescrv/HyperDex/bindings/go/client
could not determine kind of name for C.hyperdex_client_document_atomic_add
# github.com/rescrv/HyperDex/bindings/go
./hypergo.go:95: undefined: req in req.status
./hypergo.go:97: undefined: req in req.success
./hypergo.go:98: undefined: req in req.success
./hypergo.go:101: undefined: req in req.failure
./hypergo.go:102: undefined: req in req.failure
./hypergo.go:102: undefined: req in req.status
./hypergo.go:106: undefined: req in req.failure
./hypergo.go:107: undefined: req in req.failure
./hypergo.go:110: undefined: i
./hypergo.go:110: too many errors

Is there some flaw in how I'm building it? Didn't inspect 1.5 too well, but for 1.6 and 1.7 it looks like there's some form of for or while loop missing. I'll try to write a pull request to fix this

cactorium avatar Aug 30 '15 18:08 cactorium