[Go] Run Nakama without docker

Hi!

I am trying to run Nakama locally without Docker. But when I do it I do not see any of my custom RPCs declared on main.go. When I do use Docker, RPCs are there.

This is the command I am executing:

go build --trimpath --mod=vendor --buildmode=plugin -o .backend.so  && ./bin/nakama migrate up --database.address 'postgres:localdb@localhost:5432/nakama?sslmode=disable' && exec ./bin/nakama --config ./local.yml --database.address 'postgres:localdb@localhost:5432/nakama?sslmode=disable'

Nakama starts, but no customs RPC are not displayed on the explorer.

For reference, this is my Dockerfile:

FROM heroiclabs/nakama-pluginbuilder:3.16.0 AS builder

ENV GO111MODULE on
ENV CGO_ENABLED 1

WORKDIR /backend
COPY . .

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

FROM heroiclabs/nakama:3.16.0

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

The docker-compose.yml is the same that the guide. File /bin/nakama is 3.16.0 too (no version issues).

As I mentioned, Nakama is starting but custom RPCs are not being complied.

Thanks.

So building in the right folder fix it for me:

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