pulumi/changelog/pending
Zaid Ajaj f8236e125e
[docs/go-program-gen] Fix generating constructor syntax examples in Go for package awsx (#16583)
Currently, when generating docs for the AWSX package, Go constructor
syntax examples were not generated due to a panic. This causes all
constructor examples to not be emitted in the docs.

The panic occurred when trying to get the version of referenced packages
in the PCL program to emit import paths. However, _transitive_ package
references were not resolved in the PCL binder when binding resource
types. This PR fixes the problem such that now we do find the transitive
package references from any input or output property of the resources
being bound.

In the case of the awsx package, the top-level package is awsx itself
and aws is the transitive dependency. Anytime in codegen we call
`program.PackageReferences()` we should get both of them. Added a unit
test for this as well.

Testing this fix locally against the awsx package showed constructor
examples being generated for every language, however there was still a
problem in the _formatting_ of Go code which is also fixed (see change
in `gen_program_expressions.go`)

Resolves part of #16463
2024-07-08 23:23:47 +00:00
..
20240520--engine--guess-references-to-deeply-nested-properties-between-dependant-resources-during-import.yaml [engine/import] Guess references to properties between dependant resources during import (#16234) 2024-07-02 10:02:31 +00:00
20240701--engine--dont-compute-refresh-diff-s-for-external-resources.yaml Don't call `Diff` when refreshing external resources (#16544) 2024-07-02 10:11:10 +00:00
20240702--programgen-python--fix-python-program-generation-for-remote-assets.yaml Fix Python program generation for remote assets (#16556) 2024-07-02 13:34:10 +00:00
20240702--sdk-nodejs--fix-creating-a-closure-with-object-getters-and-setters.yaml Fix usage of getters and setters in Lambda callback functions (#16568) 2024-07-08 09:51:12 +00:00
20240702--sdk-nodejs--update-atopentelemetry-dependencies.yaml Bump @opentelemetry packages in NodeJS SDK (#16558) 2024-07-08 09:10:53 +00:00
20240703--backend-service--retry-post-requests-that-time-out-during-handshake-timeouts.yaml retry post requests that timeout during handshake (#16576) 2024-07-03 16:22:24 +00:00
20240703--docs--fix-generating-constructor-syntax-examples-for-kubernetes.yaml [docs/go-program-gen] Fix generating constructor syntax examples for kubernetes (#16574) 2024-07-05 12:42:41 +00:00
20240703--engine--fix-program-hanging-when-the-import-resource-option-is-used-and-the-inputs-dont-match.yaml fix hang when continue-on-error is used with import resource option (#16572) 2024-07-03 10:24:26 +00:00
20240703--sdk-go--fix-slice-bounds-out-of-range-panic-in-fixuppath.yaml Fix slice bounds out of range panic in fixupPath (#16575) 2024-07-08 09:10:58 +00:00
20240703--sdk-nodejs--add-dependson-to-invokeoptions-in-the-nodejs-sdk.yaml Implement `dependsOn` for invokes in the NodeJS SDK (#16560) 2024-07-03 14:47:59 +00:00
20240704--docs--fix-generating-constructor-syntax-examples-in-go-for-package-awsx.yaml [docs/go-program-gen] Fix generating constructor syntax examples in Go for package awsx (#16583) 2024-07-08 23:23:47 +00:00
20240705--programgen-go--do-not-emit-index-module-for-resources-without-a-schema.yaml [go/program-gen] Do not emit index module for resources without a schema (#16588) 2024-07-08 14:57:23 +00:00
20240708--cli-new--use-default-values-for-language-specific-prompts-when-using-yes.yaml Use default values for language specific prompts when using --yes (#16595) 2024-07-08 11:00:33 +00:00