I am aware of building with mismatched go versions described in:
Problem with go runtime module
I am vendoring nakama-common locally
My go.mod looks like this:
go 1.15
require github.com/heroiclabs/nakama-common v1.10.0
I run go mod vendor
My go version matches: (1.15.5)
$> go version
go version go1.15.5 darwin/amd64
I am building on a remote linux machine using a Dockerfile:
FROM heroiclabs/nakama-pluginbuilder:2.15.0
…
RUN GO111MODULE=on CGO_ENABLED=1 GOOS=linux go build -v -buildmode=plugin -mod=vendor
When running nakama server 2.15.0, I indeed see "runtime":"go1.15.5"
But also
plugin was built with a different version of package internal/unsafeheader
As far as I know, this error only occurs when the go versions don’t match up somewhere. But it seems this isn’t the case