Fix bug that could cause Go SDK to drop dependencies (#5930)

* fix bug that could cause Go SDK to drop dependencies

* changelog
This commit is contained in:
Evan Boyle 2020-12-11 16:27:11 -08:00 committed by GitHub
parent fed47e7334
commit 069f9f28cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -2,7 +2,9 @@ CHANGELOG
=========
## HEAD (Unreleased)
_(none)_
- Fix a bug in the Go SDK that could result in dropped resource dependencies.
[#5930](https://github.com/pulumi/pulumi/pull/5930)
## 2.15.5 (2020-12-11)

View file

@ -184,11 +184,11 @@ func marshalInputAndDetermineSecret(v interface{},
destType reflect.Type,
await bool) (resource.PropertyValue, []Resource, bool, error) {
secret := false
var deps []Resource
for {
valueType := reflect.TypeOf(v)
// If this is an Input, make sure it is of the proper type and await it if it is an output/
var deps []Resource
if input, ok := v.(Input); ok {
valueType = input.ElementType()