pulumi/changelog/pending
bors[bot] bba7a231fd
Merge #12303
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>
2023-03-02 15:35:37 +00:00
..
20230211--cli-plugin--plugin-download-urls-now-support-gitlab-as-a-first-class-url-schema-for-example-gitlab-gitlab-com-43429536.yaml Add gitlab source 2023-02-15 10:18:44 +00:00
20230211--cli-plugin--remove-temporary-files-from-plugin-downloads.yaml Try to delete temporary files from plugin downloads 2023-02-14 10:23:25 +00:00
20230215--cli-import--fixes-panic-on-incomplete-resources-in-json-file.yaml cli/pulumi import: Don't panic on invalid file 2023-02-14 19:01:56 -08:00
20230216--cli-display--display-now-shows-default-colorized-stacktraces-in-nodejs.yaml This commit colorizes nodejs stack traces to respect the default 2023-02-16 14:20:42 -08:00
20230216--sdk-go--common-resource-testing-returns-strongly-typed-generators-instead-of-interface-generators.yaml deps: Upgrade to pgregory.net/rapid v0.5 2023-02-16 12:04:07 -08:00
20230227--sdk-nodejs--cleanup-temporary-pulumi-node-pipes-folders-after-running.yaml Cleanup node-pipes folder after Run 2023-02-27 20:30:39 +00:00
20230228--sdk-go--fix-panic-from-attempting-to-create-a-resource-with-an-uninitialized-parent-resource.yaml sdk/go: Fix panic from uninitialized parent resources 2023-02-28 11:36:50 -08:00
20230228--sdk-nodejs--fix-stack-outputs-picking-up-co-located-json-files.yaml Fix require reading JSON files 2023-02-28 21:24:04 +00:00
20230301--backend-service--reduce-retrieval-validation-latency-for-update-tokens.yaml CL 2023-03-01 14:48:56 -08:00
20230301--sdk-python--grpc-1-51.3-python-sdk-contains-native-arm64-binaries.yaml Python grpc 1.51.3 contains universal2 binaries (x86_64 & arm64) 2023-03-01 15:30:45 +01:00