![]() Because of how fdb-go-install.sh functions, it's necessary to use to use the folder that the script installs to, located at $GOPATH/src/github.com/apple/foundationdb/bindings/go. Since modules will use the version from $GOPATH/pkg/mod/github.com/apple/foundationdb/bindings/go and has a checksum of it stored in go.sum, it's not possible to use this package currently with modules enabled. I believe the solution to this problem is to use replace directives: https://github.com/golang/go/wiki/Modules#when-should-i-use-the-replace-directive After using the install script, adding `replace github.com/apple/foundationdb/bindings/go => $GOPATH/src/github.com/apple/foundationdb/bindings/go` will allow Go programs to be built normally with modules. Note: $GOPATH cannot be used directly and must be expanded into an absolute or relative path. This go.mod must be added for replace directives to work correctly. |
||
---|---|---|
.. | ||
bindingtester | ||
c | ||
flow | ||
go | ||
java | ||
python | ||
ruby | ||
CMakeLists.txt | ||
__init__.py |