pulumi/pkg
bors[bot] 44f2064483
Merge #12661
12661: [pcl] Do not panic when attribute type or resource variable type isn't fully bound r=Zaid-Ajaj a=Zaid-Ajaj

# Description

Sometimes during program binding, when an attribute isn't fully bound, its type would be `nil`. Later on when the attribute is used and its type needs to be type-checked, it panics. Here we resort to using `model.DynamicType` when the type isn't known. The same for the `VariableType` of resources.

## Checklist

<!--- 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. -->


Co-authored-by: Zaid Ajaj <zaid.naom@gmail.com>
2023-04-13 09:55:47 +00:00
..
authhelpers make linter happy 2023-02-08 10:30:10 -08:00
backend Merge #12643 #12656 #12658 2023-04-12 14:30:07 +00:00
cmd/pulumi Fix config set-all saving secret provider configuration 2023-04-12 15:21:29 +01:00
codegen Do not panic when PCL attribute type or PCL resource variable type isn't fully bound 2023-04-12 18:19:57 +02:00
engine Pass PULUMI_CONFIG through to provider plugins 2023-04-05 10:17:18 +01:00
graph all: Assert => Assertf 2023-03-03 14:37:43 -08:00
importer all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
operations all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
resource Revert PR moving deletedWith inheritance logic to the engine as `get` resources and MLCs are incompatible. 2023-03-30 10:18:27 -07:00
secrets all: Assert => Assertf 2023-03-03 14:37:43 -08:00
testing/integration chore(all): Log to iotest.LogWriter from tests 2023-03-07 11:27:47 -08:00
util all: Assert => Assertf 2023-03-03 14:37:43 -08:00
version duplicate version to ensure linking is properly handled 2020-03-19 12:49:34 -07:00
README.md export codegen tests for internal use (#8928) 2022-02-07 12:10:04 +01:00
go.mod chore: post-release go.mod updates 2023-04-12 22:43:15 +00:00
go.sum Bump pulumi-yaml to v1.1.0 2023-04-05 17:31:20 -07:00

README.md

pulumi/pkg

While pulumi/sdk maintains strict backwards compatibility guarantees, code under pkg/ is handled more informally: while breaking changes are still discouraged they may happen when they make sense.