Closed dshyryayev closed 5 months ago
Hi! I have a feeling that this may be an issue with your dependencies. Can you please provide the go.mod
contents?
(I believe the issue is that you'd be referencing the latest commit of examples/actor/api
which has protobuf updates due to the impending release of Dapr v1.13)
@mikeee Yes, I think you are right, something wrong with dependencies> My problem that I have tried different "go get -u " commands and I have changed my go.mod time numerous time and I couldn't figure out which specific version on what package I need to get. I guess I need to learn the strcuture of the project more deeply and see how I can fix the problem. Meanwhile, here is my go.mod file
module dapr_actor_serving_opportunities
go 1.21.6
require github.com/dapr/go-sdk v1.9.1
require (
github.com/dapr/dapr v1.13.0-rc.1.0.20240214000613-518753d502cb // indirect
github.com/go-chi/chi/v5 v5.0.11 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/rogpeppe/go-internal v1.12.0 // indirect
go.opentelemetry.io/otel v1.23.1 // indirect
go.opentelemetry.io/otel/trace v1.23.1 // indirect
golang.org/x/net v0.21.0 // indirect
golang.org/x/sys v0.17.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240221002015-b0ce06bbee7c // indirect
google.golang.org/grpc v1.62.0 // indirect
google.golang.org/protobuf v1.32.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
@dshyryayev If you copy the examples/actor/api
spec and reference it locally then it should hopefully solve your issue. It will then not use a commit from the main branch as a reference for the SDK and try to vendor "unreleased" features/changes.
issue closed Thanks @mikeee
Describe the bug
Problem with building examples: from actor go-sdk examples produces few errors: error1: github.com/dapr/go-sdk/client vendor/github.com/dapr/go-sdk/client/actor.go:222:13: undefined: pb.RenameActorReminderRequest error2: vendor/github.com/dapr/go-sdk/client/actor.go:229:26: c.protoClient.RenameActorReminder undefined (type "github.com/dapr/dapr/pkg/proto/runtime/v1".DaprClient has no field or method RenameActorReminder) error3: vendor/github.com/dapr/go-sdk/client/metadata.go:57:46: cannot use &emptypb.Empty{} (value of type emptypb.Empty) as "github.com/dapr/dapr/pkg/proto/runtime/v1".GetMetadataRequest value in argument to c.protoClient.GetMetadata
To Reproduce
Trying to setup an example from dapr examples for go projects.
Expected behavior
It shouls able to build main.go with no errors