{d}
- Versions: Nakama {3.13.1}, {Windows with Docker}, {client library (SDK) and version}
- Server Framework Runtime language {Go}
So I am trying to follow the getting started with GO. And I keep knocking my head against the issue with Plugin was built with different version.
I have tried to follow the guides closely and consoluted the table of Nakama versions. I have also looked through the similar posts relating to this issue. But I still cannot resolve this plugin.
backend | {"level":"info","ts":"2022-08-24T12:55:34.880Z","caller":"server/runtime.go:596","msg":"Runtime event queue processor started","size":65536,"workers":8}
backend | {"level":"info","ts":"2022-08-24T12:55:34.880Z","caller":"server/runtime_go.go:2516","msg":"Initialising Go runtime provider","path":"/nakama/data/modules"}
backend | {"level":"error","ts":"2022-08-24T12:55:34.888Z","caller":"server/runtime_go.go:2612","msg":"Could not open Go module","path":"/nakama/data/modules/backend.so","error":"plugin.Open(\"/nakama/data/modules/backend\"): plugin was built with a different version of package github.com/heroiclabs/nakama-common/api"}
backend | {"level":"error","ts":"2022-08-24T12:55:34.889Z","caller":"server/runtime.go:602","msg":"Error initialising Go runtime provider","error":"plugin.Open(\"/nakama/data/modules/backend\"): plugin was built with a different version of package github.com/heroiclabs/nakama-common/api"}
backend | {"level":"fatal","ts":"2022-08-24T12:55:34.889Z","caller":"main.go:158","msg":"Failed initializing runtime modules","error":"plugin.Open(\"/nakama/data/modules/backend\"): plugin was built with a different version of package github.com/heroiclabs/nakama-common/api"}
My Dockerfile is as follows
FROM heroiclabs/nakama-pluginbuilder:3.13.0 AS builder
ENV GO111MODULE on
ENV CGO_ENABLED 1
WORKDIR /backend
WORKDIR /backend
COPY go.mod .
COPY main.go .
COPY vendor/ vendor/
RUN go build --trimpath --mod=vendor --buildmode=plugin -o ./backend.so
FROM heroiclabs/nakama:3.13.0
COPY --from=builder /backend/backend.so /nakama/data/modules/
COPY local.yml /nakama/data/
And my go.mod is as follows
module example.com/go-project
go 1.17
require github.com/heroiclabs/nakama-common v1.24.0
require google.golang.org/protobuf v1.27.1 // indirect
What is it that I am missing here with the version numbers?