pulumi/sdk/go/common/util/mapper
bors[bot] ed46a19c5e
Merge #11053
11053: Allow decoding *asset and *archive values r=iwahbe a=iwahbe

<!--- 
Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation.
-->

# Description

<!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. -->

We handle ptr sources in deserialization. This is necessary since `pulumi.New*Asset` and `pulumi.New*Archive` return `*resource.Asset` and `*resource.Archive` respectively.

This will fix https://github.com/pulumi/pulumi-command/issues/143 when it is picked up.

## Checklist

<!--- Please provide details if the checkbox below is to be left unchecked. -->
- [X] I have added tests that prove my fix is effective or that my feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [X] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the Pulumi Service,
then the service should honor older versions of the CLI where this change would not exist.
You must then bump the API version in /pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Service API version
  <!-- `@Pulumi` employees: If yes, you must submit corresponding changes in the service repo. -->


Co-authored-by: Ian Wahbe <ian@wahbe.com>
2022-10-18 18:05:46 +00:00
..
errors.go move pkg/util/mapper -> sdk/go/common/util/mapper 2020-03-18 14:47:37 -07:00
mapper.go chore: Update doc comments, coding style, fix lint 2022-10-13 13:50:49 -07:00
mapper_decode.go Allow decoding *asset and *archive values 2022-10-17 13:28:13 -07:00
mapper_encode.go [utils] Handle nils in mapper encoding (#9810) 2022-06-16 15:43:23 -07:00
mapper_test.go [utils] Handle nils in mapper encoding (#9810) 2022-06-16 15:43:23 -07:00
object.go move pkg/util/mapper -> sdk/go/common/util/mapper 2020-03-18 14:47:37 -07:00