Presence of pulumi.DependsOn results in a runtime error #10951
Labels
area/component-packages
aka multi-language components
kind/bug
Some behavior is incorrect or out of spec
language/go
resolution/fixed
This issue was fixed
Milestone
What happened?
Presence of pulumi.DependsOn results in an error: resources.MyComponent.MyEnumProp is typed as *string but must be a type that implements pulumi.Input or pulumi.Output for input with dependencies
Steps to reproduce
Using a go generated MLC, create a simple example that creates a resource and uses
pulumi.DependsOn
targeting a dependent resource.Expected Behavior
pulumi up
succeedsActual Behavior
Program fails with
resources.MyComponent.MyEnumProp is typed as *string but must be a type that implements pulumi.Input or pulumi.Output for input with dependencies
Additional context
Internal Slack Thread: https://pulumi.slack.com/archives/C01028X5X3K/p1665508743426729
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: