Dependency Pinning

Hey!

Whenever I try to upgrade packages/nakama version and so on.

I keep getting errors regarding pragma package.

plugin.Open(\"/nakama/data/modules/backend\"): plugin was built with a different version of package google.golang.org/protobuf/internal/pragma

What is the fix?

I updated the nakama commons versions, which updates the protobuf version.
After downgrading the protobuf it worked, just doesnt seem intuitive.

Unfortunately this is a limitation in how Go plugins work and the tooling around it, there’s not much we can do to prevent this, the dependencies (direct and indirect) in the plugin have to match the server’s.