pulumi/pkg
Brandon Pollack 49dbdbcafa Add the ability to generate aliased import prefixes to go generator.
Previously, if there were nested arguments in schemas, generation of go
code would simply use the go module name, but when imports are generated
they are potentially aliased to avoid naming conflicts.

This is taken into account at the top level since the aliases are
checked directly, but when traversing downward the argument types are generated
after conversions from the PCL schema data.

This fix adds an optional map to pkgContext that contains the go module
info, which contains the appropriate base path to check against aliases.
We also add aliases to the map that are generated by the import system
(and not just from other go package infos).
2024-09-30 17:11:00 +09:00
..
asset Move some asset code to pkg (#15162) 2024-01-17 11:30:37 +00:00
authhelpers Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
backend Add clockwork for deterministic time testing (#17397) 2024-09-27 10:39:27 +00:00
cmd/pulumi Add explanations about features to improve UX (#17307) 2024-09-26 14:40:51 +00:00
codegen Add the ability to generate aliased import prefixes to go generator. 2024-09-30 17:11:00 +09:00
display Move sdk/go/common/display to /pkg/display (#13954) 2023-09-18 11:01:28 +00:00
engine Add a lifecycle test to show that ImportID works with parameterized providers (#17366) 2024-09-25 19:51:02 +00:00
graph Adds a flag to graph command to insert fragment (#14858) 2024-01-08 22:03:08 +00:00
importer [cli/import] Fix undefined variable errors in code generation when imported resources use a parent or provider (#16786) 2024-07-25 13:53:44 +00:00
operations Move resource.URN to urn.URN (#15689) 2024-03-14 15:28:32 +00:00
resource allow component providers to return more detailed error messages (#17306) 2024-09-25 15:38:36 +00:00
secrets Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
testing/integration Switch back to `os/user` to get the current user (#17125) 2024-08-31 18:54:35 +00:00
util Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
version duplicate version to ensure linking is properly handled 2020-03-19 12:49:34 -07:00
workspace Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
README.md export codegen tests for internal use (#8928) 2022-02-07 12:10:04 +01:00
go.mod Add clockwork for deterministic time testing (#17397) 2024-09-27 10:39:27 +00:00
go.sum Add clockwork for deterministic time testing (#17397) 2024-09-27 10:39:27 +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.