dapr / go-sdk

Dapr SDK for go
Apache License 2.0
446 stars 171 forks source link

configuration example does not work out of the box #447

Closed sicoyle closed 1 year ago

sicoyle commented 1 year ago

Describe the bug Configuration example does not work out of the box. It needs a go mod tidy.

To Reproduce Run this command:

dapr run --app-id configuration-api\
         --app-protocol grpc \
         --app-port 5005 \
         --dapr-http-port 3006 \
         --log-level debug \
         --resources-path ./config/ \
         go run ./main.go

See this error:

== APP == go: updates to go.mod needed; to update it:
== APP ==       go mod tidy
❌  The App process exited with error code: exit status 1
ℹ️  
terminated signal received: shutting down
✅  Exited Dapr successfully
❌  Error exiting App: exit status 1

Expected behavior The configuration example should work out of the box.

I'll push the PR with the fix.

sicoyle commented 1 year ago

Closing as PR was merged