Hi,
lately i’m trying to use nakama to upload images to my game app (to allow users to update their profile picture)
and for that i tried to follow the nakama instruction on asset management with golang framework,
i have created protobuf and added the credentials to ~/.aws/credential,
installed the libraries needed ( protobuf, nakama-common, aws-sdk-go)
and imported it to my go.main code like this:
import (
“strings”
“bytes”
“context”
“database/sql”
“time”
“fmt”
“errors”
“/example.com/go-project/heroiclabs.com/nakama-amazon-s3/api”
“/github.com/aws/aws-sdk-go/aws”
“/github.com/aws/aws-sdk-go/aws/credentials”
“/github.com/aws/aws-sdk-go/aws/session”
“/github.com/aws/aws-sdk-go/service/s3”
“/github.com/aws/aws-sdk-go/service/s3/s3manager”
“/github.com/golang/protobuf/jsonpb”
“/github.com/heroiclabs/nakama-common/runtime”
)
i run go mod vendor and go build --trimpath --mod=vendor --buildmode=plugin -o ./backend.so,
but when i try to run nakama i face this error
here is my go.mod:
module /example.com/go-project
go 1.20
require (
/github.com/aws/aws-sdk-go v1.51.5
/github.com/golang/protobuf v1.5.0
/github.com/heroiclabs/nakama-common v1.28.1
/google.golang.org/protobuf v1.31.0
)
require /github.com/jmespath/go-jmespath v0.4.0 // indirect
i use nakama 3.17.1+258a7f35
golang go version go1.20.8 linux/amd64