Closed rnikrozoft closed 3 months ago
Since you are using Nakama v3.22.0 I think you should be using nakama-common v1.32.0
You should pin the version as there's a newer Nakama version in the wild and go get
wild detect that one.
Add this to the end of your go.mod
:
replace github.com/heroiclabs/nakama-common => github.com/heroiclabs/nakama-common v1.32.0
EDIT: This is mentioned in the docs.
@rnikrozoft I believe @toqueteos is correct, the error is accurate and indicates you have a version mismatch. You may also find our documentation on Go runtime dependencies and pinning useful.
@zyro Shouldn't 3.23.0 be in that table anyways? Can that be contributed or are the docs staff only now?
I tried running nakama version 3.22 using docker following this example go-runtime but it gave me a problem
plugin was built with a different version of package github.com/heroiclabs/nakama-common/api
Here is my code go.mod:
go.sum:
Dockerfile:
docker-compose.yml:
main.go:
log in container: