Deploying go modules on Heroic Labs Development Server

Hi there!
I’m trying to deploy a go module in the Heroic Labs development server for my project but I’m getting the following error:

Error loading shared library /nakama-data/modules/lua/go_modules_loader.so: Exec format error"

The very same module works in my local machine. And I’ve never got this error before, so any guidance or help is apreciated

Thanks in advance.
Kind regards

You’ll need to use the Plugin Builder to build your shared object - like this:

cd $GOPATH/src/plugin_project # Your project folder.

docker run --rm -v "$PWD:/go/src/tempbuild" heroiclabs/nakama-pluginbuilder:2.6.0 build --buildmode=plugin -o ./modules/plugin_project.so

Then commit plugin_project.so to your Git repository.

We are working on improving this workflow and will announce something soon to the Managed Cloud customers.