# Go plugin build error with protobuf

**URL:** <https://forum.heroiclabs.com/t/go-plugin-build-error-with-protobuf/629>\
**Category:** Local Setup\
**Created:** [April 12, 2020, 10:46am UTC](https://forum.heroiclabs.com/t/go-plugin-build-error-with-protobuf/629 "2020-04-12T10:46:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)\
**Post date:** [April 12, 2020, 3:02pm UTC](https://forum.heroiclabs.com/t/go-plugin-build-error-with-protobuf/629/2 "2020-04-12T15:02:45Z")

</div>

@irajsb The Nakama v2.11.1 release requires the protobuf v1.3.5 release. You can setup your dependencies to match like so:

```auto
env GO111MODULE=on go get "github.com/heroiclabs/nakama-common@v1.4.0"
env GO111MODULE=on go get "github.com/golang/protobuf@v1.3.5"
env GO111MODULE=on go mod edit -replace "github.com/golang/protobuf=github.com/golang/protobuf@v1.3.5"

```

Please try that and let me know if it resolves your issue. Your mod file should look somewhat like:

```auto
module games/project

go 1.14

require (
	github.com/golang/protobuf v1.3.5 // indirect
	github.com/heroiclabs/nakama-common v1.4.0
)

replace github.com/golang/protobuf => github.com/golang/protobuf v1.3.5

```

The `replace` is used to force the version if another dependency you use tries to specify a different transitive version.

---

_[View the full topic](https://forum.heroiclabs.com/t/go-plugin-build-error-with-protobuf/629)._
