-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deserialization errors on component resources accepting resources as inputs when not correctly imported #157
Comments
The odd thing is that |
Small correction: Adding |
Interesting. Running locally, adding I can cleanly enable or disable the behavior after running |
Alright yeah you are correct on the simple example. On my real provider adding it to the index.ts of the main stack worked. Super weird. |
I haven't dug into this yet, but I suspect this is pulumi/pulumi#13223, in particular: pulumi/pulumi#13223 (comment) |
This should be resolved with the 3.128 release of the CLI. Please open another issue if you observer a similar problem |
Cannot close issue:
Please fix these problems and try again. |
What happened?
@MMartyn was trying to create a component provider and hit this bug. When reproing (from MMartyn/pulumi-foo@2601a09), we see a deserialization failure in the generated Pulumi SDK.
Example
Given the provider described above and the example program in
examples/simple/index.ts
, we see this error:The error is ultimately coming from the generated SDK (`baz.ts):
(src)
@MMartyn Figured out that this error would go away if the line
import "@pulumi/aws";
was inserted at the top ofbaz.ts
.Output of
pulumi about
Additional context
No response
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).
Tasks
The text was updated successfully, but these errors were encountered: