mirror of https://github.com/pulumi/pulumi.git
b278d4baa9
* [utils] Handle nils in mapper encoding The mapper was not handling nil values correctly during encoding. When attempting to encode a nil `reflect.Value`, the mapper was converting it to a nil `interface{}`, then taking the `reflect.ValueOf` that interface value, leading to an invalid `reflect.Value` that tripped an assertion. These changes avoid the intermediate `interface{}` and consequent invalid `reflect.Value`. Contributes to https://github.com/pulumi/pulumi-command/issues/41 and https://github.com/pulumi/pulumi-command/issues/68. * Add test * CL Co-authored-by: Ian Wahbe <ian@wahbe.com> |
||
---|---|---|
.. | ||
apitype | ||
constant | ||
diag | ||
encoding | ||
resource | ||
testing | ||
tokens | ||
tools | ||
util | ||
version | ||
workspace |