Open morgangallant opened 4 years ago
I'm having the same issue with FDB 6.2.22 or 6.2.27... Did you solve yours @morgangallant? Thanks.
Let's see if we can identify where things have gone wrong. I'll use the paths from Morgan's post.
/home/morgan/go/src/github.com/apple/foundationdb/bindings/go/src/fdb/cluster.go
, what version do you see in the line that looks like:// #define FDB_API_VERSION 620
/home/morgan/go/src/github.com/apple/foundationdb/bindings/c/foundationdb/fdb_c.h
, what version do you see in the line that looks like:#elif FDB_API_VERSION > 620
i've found out experimentally that golang bindings does not support versions above >6.1.13
github.com/apple/foundationdb/bindings/go v0.0.0-20190311170436-f2d582ffa197
this version works with 6.1.13
If you installed a released client library and let Go default to pulling bindings from the master branch, you'll almost definitely hit this error. The solution is to pin your bindings to the tag that's compatible with whatever you installed. For example, I just installed 6.2.28. For the Go bindings to work, I just have to explicitly pick a compatible release like so:
go get -u github.com/apple/foundationdb/bindings/go/src/fdb@release-6.2
It's not very Go-like at all, but it is a trivial fix. :-/
It would be great if the versions could be tagged appropriately. Either the go get
method above or putting release-6.2
in the go.mod
line for the binding will do the trick. However,
go mod
will soon replace clear tag of release-6.2
with a version/checksum- github.com/apple/foundationdb/bindings/go v0.0.0-20210225220716-e08ed81293f2 // this is 7.0.0
+ github.com/apple/foundationdb/bindings/go v0.0.0-20210223161539-764f76eac34b // this is 6.2.x
Linking a ticket here https://github.com/golang/go/issues/26964
Hi there - recently setup a small cluster to try out fdb, and having some trouble generating the Go bindings.
fdbcli --version
./fdb-go-install.sh install --fdbver 6.2.19
Would appreciate any help here!