@irajsb The Nakama v2.11.1 release requires the protobuf v1.3.5 release. You can setup your dependencies to match like so:
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:
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.