# What is the go binding version in go.mod for fdb 6.3.24?

**URL:** https://forums.foundationdb.org/t/what-is-the-go-binding-version-in-go-mod-for-fdb-6-3-24/3654
**Category:** Development
**Tags:** bindings, operator
**Created:** [November 10, 2022, 1:06pm UTC](https://forums.foundationdb.org/t/what-is-the-go-binding-version-in-go-mod-for-fdb-6-3-24/3654 "2022-11-10T13:06:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![liyyue](https://avatars.discourse-cdn.com/v4/letter/l/54ee81/32.png) [@liyyue](https://forums.foundationdb.org/u/liyyue)
#### Post date: [November 10, 2022, 1:06pm UTC](https://forums.foundationdb.org/t/what-is-the-go-binding-version-in-go-mod-for-fdb-6-3-24/3654/1 "2022-11-10T13:06:36Z")

</div>

Hi, Experts

Now I am drafting a golang application to access fdb, initially it access fdb 6.2, and in the go.mod is as following:

```auto
...
require (
        github.com/apple/foundationdb/bindings/go v0.0.0-20200112054404-407dc0907f4f
...

```

But when it is upgraded to fdb 6.3, in the app the line “fdb.MustAPIVersion(630)” popup “version not support” error.

So I tried to change the go binding version in go.mod, but I can only found 7.x binding version from `https://pkg.go.dev/github.com/apple/foundationdb/bindings/go/src/fdb?tab=versions`

If I use latest version “v0.0.0-20221110120141-0160570c2a46” in go.mod which is for 7.x, it popup the error message:

```auto
....
 Requested API version requires a newer version of this header
...

```

So I wonder for fdb 6.3 what is the binding version in go.mod? Thanks!

---

<div class="post-metadata">

### Author: ![harikb](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/harikb/32/1033_2.png) [@harikb](https://forums.foundationdb.org/u/harikb)
#### Post date: [November 11, 2022, 6:09am UTC](https://forums.foundationdb.org/t/what-is-the-go-binding-version-in-go-mod-for-fdb-6-3-24/3654/2 "2022-11-11T06:09:23Z")

</div>

In my projects, I always do this.

Step #1: go get [github.com/apple/foundationdb/bindings/go/src/fdb@7.1.23](http://github.com/apple/foundationdb/bindings/go/src/fdb@7.1.23)

Replace 7.1.23 with the version that matches the fdb-client you have.

Step #2: Save the “go.mod” and don’t ever upgrade the binding using any other `go mod` command other than the explicit one mentioned above.

I have filed a related ticket here [Changing the version tag format or consider an additional tag for each release · Issue #4431 · apple/foundationdb · GitHub](https://github.com/apple/foundationdb/issues/4431) - but I haven’t had time to investigate why the version numbers shows as v0.0.0 - and whether the proposed solution of adding _v_ prefix will fix the issue.

---

<div class="post-metadata">

### Author: ![liyyue](https://avatars.discourse-cdn.com/v4/letter/l/54ee81/32.png) [@liyyue](https://forums.foundationdb.org/u/liyyue)
#### Post date: [November 11, 2022, 9:18am UTC](https://forums.foundationdb.org/t/what-is-the-go-binding-version-in-go-mod-for-fdb-6-3-24/3654/3 "2022-11-11T09:18:16Z")

</div>

@harikb Thanks a lot for your help!
