Skip to content

Conversation

@JoshVanL
Copy link
Contributor

@JoshVanL JoshVanL commented Nov 6, 2025

In standalone mode, if the resource path is not explicitly defined in the daprd process arguments, the workflow engine fails to locate the resource files, used to fetch the actor state store component manifest. This change updates the resource path lookup logic to use the default component path when the resource path is not defined.

@JoshVanL JoshVanL marked this pull request as ready for review November 6, 2025 18:09
@JoshVanL JoshVanL requested review from a team as code owners November 6, 2025 18:09
In standalone mode, if the resource path is not explicitly defined in
the daprd process arguments, the workflow engine fails to locate the
resource files, used to fetch the actor state store component manifest.
This change updates the resource path lookup logic to use the default
component path when the resource path is not defined.

Signed-off-by: joshvanl <me@joshvanl.dev>
@JoshVanL JoshVanL force-pushed the fix-resource-path-lookup branch from 6165396 to f26a4c0 Compare November 6, 2025 18:11
Copy link
Member

@acroca acroca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we add tests for this?

import "github.com/spf13/cobra"

var (
daprRuntimePath string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand correctly, you moved this to its own package so it's reusable from both pkg/workflow and cmd packages without introducing a circular dependency, right?
Why not keep it as it was (in the dapr.go) and pass it as an argument when calling functions in the pkg/workflow like it's done for the other options like the kubernetes mode?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pkg/workflow is called from the cmd/workflow sub command sub package commands. cmd imports cmd/workflow to register the workflow sub commands.

We either need to have the flag registered and available from a third shared package, or register it multiple times for everywhere it is needed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦 right, I missed that sorry

@cicoyle cicoyle merged commit be712b2 into dapr:master Nov 10, 2025
46 of 53 checks passed
@nelson-parente nelson-parente added this to the v1.17 milestone Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants