Skip to content
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

Support pointers in pulumi.All #9197

Merged
merged 2 commits into from Mar 16, 2022
Merged

Support pointers in pulumi.All #9197

merged 2 commits into from Mar 16, 2022

Conversation

Frassle
Copy link
Member

@Frassle Frassle commented Mar 14, 2022

Description

In awaitInputs we didn't correctly handle the case of the input value being a pointer and the resolved destination being interface{}. We now handle this by allocating a new pointer of the same type of the input, and assiging that to the resolved location if resolved.Type is any.

Else we expect resolved.Type() to be some pointer type that the exisiting logic can handle.

Fixes #9192

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • Yes, there are changes in this PR that warrants bumping the Pulumi Service API version

In awaitInputs we didn't correctly handle the case of the input value being a pointer and the resoled destination being `interface{}`. We now handle this by allocating a new pointer of the same type of the input, and assiging that to the resolved location if resolved.Type is `any`.

Else we expect resolved.Type() to be some pointer type that the exisiting logic can handle.
Copy link
Member

@justinvp justinvp left a comment

Choose a reason for hiding this comment

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

LGTM

@Frassle Frassle merged commit ac0b4eb into master Mar 16, 2022
@pulumi-bot pulumi-bot deleted the fraser/pulumiAll branch March 16, 2022 18:56
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.

[sdk/go] Panic using StringPtr as input to pulumi.All
2 participants