Nakama-3.25.0, go lang server setup error

I’m setting up a new server using Nakama version 3.25.0 and common version 1.35.0, but it appears there’s a toolchain version conflict within the Docker image that’s causing the following error.

Following is docker file code

# build go runtime modules

FROM heroiclabs/nakama-pluginbuilder:3.25.0 AS builder

ENV GO111MODULE on

ENV CGO_ENABLED 1

WORKDIR /backend

COPY ./src/runtime-modules/go/ .

RUN go mod vendor

RUN go build --trimpath --mod=vendor --buildmode=plugin -o ./backend.so

# final image

FROM heroiclabs/nakama:3.25.0

# copy go build from go builder to this image

COPY --from=builder /backend/backend.so /nakama/data/modules/

# copy config.yml

COPY config.yml /nakama/data/

In the Go directory, the go mod vendor command runs successfully, but when executing docker compose build, it throws the attached error. I have also updated my system’s Go version to 1.24.0, but the issue persists.

Hello @surajTLabs,

I think you’re mixing the go version used between Nakama 3.25.0 and 3.26.0, if your plugin states in the go.mod that it should use go 1.23.5 then you should use the latter Nakama version, otherwise you need to downgrade your go version to 1.23.3.

Hope this helps