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

[sdk/go] Fix a typo in marshaling. #7768

Merged
merged 3 commits into from
Aug 17, 2021
Merged

[sdk/go] Fix a typo in marshaling. #7768

merged 3 commits into from
Aug 17, 2021

Conversation

pgavlin
Copy link
Member

@pgavlin pgavlin commented Aug 16, 2021

A few identically-typed variables got confused with the changes in #7737.
The confusion caused empty property values to be included in resources
that had any dependencies on other resources, which confused the
unmarshaling code for Go multi-language components. These changes fix
the typo and restore the original behavior, which is to omit empty
property values.

A few identically-typed variables got confused with the changes in #7737.
The confusion caused empty property values to be included in resources
that had any dependencies on other resources, which confused the
unmarshaling code for Go multi-language components. These changes fix
the typo and restore the original behavior, which is to omit empty
property values.
@pgavlin pgavlin added the p0 A bug severe enough to interrupt existing work label Aug 16, 2021
@@ -148,7 +148,7 @@ func marshalInputs(props Input) (resource.PropertyMap, map[string][]URN, []URN,
pdeps[pname] = allDeps.values()
}

if !v.IsNull() || len(deps) > 0 {
if !v.IsNull() || len(allDeps) > 0 {
Copy link
Member

Choose a reason for hiding this comment

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

Oof I could've caught that at review.

@t0yv0
Copy link
Member

t0yv0 commented Aug 16, 2021

Assuming the test is "broken -> fixed" with the change, LGTM.

@emiliza emiliza added this to the 0.61 milestone Aug 16, 2021
@pgavlin
Copy link
Member Author

pgavlin commented Aug 17, 2021

Test failure is unrelated (in .NET tests, which are not affected by this change).

@pgavlin pgavlin merged commit 8f9a13a into master Aug 17, 2021
@pulumi-bot pulumi-bot deleted the pgavlin/goDepsTypo branch August 17, 2021 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p0 A bug severe enough to interrupt existing work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants