pulumi/pkg
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
..
asset Move some asset code to pkg (#15162) 2024-01-17 11:30:37 +00:00
authhelpers Add tests for gcpauth pkg (#13926) 2023-09-13 11:27:03 +00:00
backend New deployment settings wizards and environment variables management comands (#16564) 2024-07-03 20:24:26 +00:00
cmd/pulumi Use default values for language specific prompts when using --yes (#16595) 2024-07-08 11:00:33 +00:00
codegen [docs/go-program-gen] Fix generating constructor syntax examples in Go for package awsx (#16583) 2024-07-08 23:23:47 +00:00
display Move sdk/go/common/display to /pkg/display (#13954) 2023-09-18 11:01:28 +00:00
engine Keep plugin values together in RegisterPackageRequest (#16577) 2024-07-08 10:55:08 +00:00
graph Adds a flag to graph command to insert fragment (#14858) 2024-01-08 22:03:08 +00:00
importer [engine/import] Guess references to properties between dependant resources during import (#16234) 2024-07-02 10:02:31 +00:00
operations Move resource.URN to urn.URN (#15689) 2024-03-14 15:28:32 +00:00
resource Keep plugin values together in RegisterPackageRequest (#16577) 2024-07-08 10:55:08 +00:00
secrets cloud backend test: retry creating secrets manager (#16494) 2024-06-27 04:33:56 +00:00
testing/integration Add packagemanager prompt to pulumi new for nodejs (#16417) 2024-06-21 11:35:06 +00:00
util [cli/plugin] Fix plugin install command when plugin type is tool (#16407) 2024-06-17 13:25:57 +00:00
version duplicate version to ensure linking is properly handled 2020-03-19 12:49:34 -07:00
workspace Refactor: move plugin kind to apitype (#15946) 2024-04-25 17:30:30 +00:00
README.md export codegen tests for internal use (#8928) 2022-02-07 12:10:04 +01:00
go.mod Changelog and go.mod updates for v3.122.0 (#16551) 2024-07-02 07:54:27 +00:00
go.sum update pulumi-yaml to 1.9.0 (#16530) 2024-06-28 23:14:58 +00: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.