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

Allow decoding *asset and *archive values #11053

Merged
merged 1 commit into from Oct 18, 2022

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Oct 17, 2022

Description

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 pulumi/pulumi-command#143 when it is picked up.

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Service API version

@iwahbe iwahbe added this to the 0.79 milestone Oct 17, 2022
@iwahbe iwahbe requested review from Frassle and dixler October 17, 2022 19:16
@iwahbe iwahbe self-assigned this Oct 17, 2022
@pulumi-bot
Copy link
Contributor

Changelog

[uncommitted] (2022-10-17)

Bug Fixes

  • [sdk/go] Allow decoding *asset and *archive values
    #11053

@iwahbe iwahbe force-pushed the iwahbe/decode-assets-and-archives branch from c172ecb to 967e240 Compare October 17, 2022 20:28
Copy link
Contributor

@dixler dixler left a comment

Choose a reason for hiding this comment

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

LGTM

@iwahbe
Copy link
Member Author

iwahbe commented Oct 17, 2022

bors r+

bors bot added a commit that referenced this pull request Oct 17, 2022
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 pulumi/pulumi-command#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>
@bors
Copy link
Contributor

bors bot commented Oct 17, 2022

Build failed:

@iwahbe
Copy link
Member Author

iwahbe commented Oct 18, 2022

bors retry

@bors
Copy link
Contributor

bors bot commented Oct 18, 2022

Build succeeded:

@bors bors bot merged commit ed46a19 into master Oct 18, 2022
@bors bors bot deleted the iwahbe/decode-assets-and-archives branch October 18, 2022 18:35
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.

Unable to destroy (panic) stack when using ArchivePaths in Go
3 participants