pulumi/tests/testdata/codegen/components-pp/go
Zaid Ajaj 27041c93d8
[program-gen/go] Fix optional primitive values being derefrenced (#15592)
# Description

Fixes #15524 where the primitive optional types were being derefrenced.
It took me a while to figure where the problem was because I couldn't
really reproduce the original issue with a new PCL program. The
`aws-optionals-pp` test case program in PCL would repro the issue when
converted from the CLI via `convert --from pcl` but not from the unit
tests even when using the exact same schema 🤔 this was really weird.
That said, the fix turned out straightforward and it does fix the same
issue in generated component resources.

## Checklist

- [ ] I have run `make tidy` to update any new dependencies
- [x] I have run `make lint` to verify my code passes the lint check
  - [ ] I have formatted my code using `gofumpt`

<!--- Please provide details if the checkbox below is to be left
unchecked. -->
- [ ] 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 Cloud,
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
Cloud API version
<!-- @Pulumi employees: If yes, you must submit corresponding changes in
the service repo. -->
2024-03-10 04:49:06 +00:00
..
another-component.go Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
components.go Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
exampleComponent.go [program-gen/go] Fix optional primitive values being derefrenced (#15592) 2024-03-10 04:49:06 +00:00
simpleComponent.go Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00