mirror of https://github.com/pulumi/pulumi.git
bba7a231fd
12303: sdk/go: Fix panic from uninitialized parent resources r=abhinav a=abhinav # Description The Go SDK panics if RegisterResource is called with a parent resource that is uninitialized (hasn't had its RegisterResource or RegisterComponentResource call yet). The panic is during alias collapsing: the system fails to read the unintialized parent resource's URN from a zero-valued URNOutput. Guard against this panic by verifying that the value passed to `Parent` has been initialized. We do this by checking the name of the resource--names are not allowed to be empty when a resource is registered. Resolves #12138 ## Checklist - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change Co-authored-by: Abhinav Gupta <abhinav@pulumi.com> |
||
---|---|---|
.. | ||
20230211--cli-plugin--plugin-download-urls-now-support-gitlab-as-a-first-class-url-schema-for-example-gitlab-gitlab-com-43429536.yaml | ||
20230211--cli-plugin--remove-temporary-files-from-plugin-downloads.yaml | ||
20230215--cli-import--fixes-panic-on-incomplete-resources-in-json-file.yaml | ||
20230216--cli-display--display-now-shows-default-colorized-stacktraces-in-nodejs.yaml | ||
20230216--sdk-go--common-resource-testing-returns-strongly-typed-generators-instead-of-interface-generators.yaml | ||
20230227--sdk-nodejs--cleanup-temporary-pulumi-node-pipes-folders-after-running.yaml | ||
20230228--sdk-go--fix-panic-from-attempting-to-create-a-resource-with-an-uninitialized-parent-resource.yaml | ||
20230228--sdk-nodejs--fix-stack-outputs-picking-up-co-located-json-files.yaml | ||
20230301--backend-service--reduce-retrieval-validation-latency-for-update-tokens.yaml | ||
20230301--sdk-python--grpc-1-51.3-python-sdk-contains-native-arm64-binaries.yaml |