pulumi/pkg/codegen/pcl
Ian Wahbe 7da81c1d7f
PCL: Use resource aliases when resolving a type (#9238)
* PCL: Use resource aliases when resolving a type

* Add a test

* Fix lint

* Fetch schemas in the makefile

Because we have exposed the `TestProgramCodegen` function to the public,
we can no longer pin specific schema version from that function. In
general, we should avoid mutating global state in tests. This becomes
especially important when the tests are used by other packages.

Using the makefile to setup global state both simplifies how we fetch
schemas and ensures that the fetches are intentional.

* Fix path

* remove unused imports

* Add comments
2022-03-18 11:48:39 -07:00
..
binder.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
binder_nodes.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
binder_resource.go PCL: Use resource aliases when resolving a type (#9238) 2022-03-18 11:48:39 -07:00
binder_schema.go PCL: Use resource aliases when resolving a type (#9238) 2022-03-18 11:48:39 -07:00
binder_schema_test.go PCL: Use resource aliases when resolving a type (#9238) 2022-03-18 11:48:39 -07:00
binder_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
component.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
config.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
diagnostics.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
functions.go Expand pcl intrinsic functions (#9208) 2022-03-15 17:05:36 -07:00
intrinsics.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
invoke.go PCL: Use resource aliases when resolving a type (#9238) 2022-03-18 11:48:39 -07:00
local.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
output.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
program.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
resource.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
rewrite_apply.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
rewrite_apply_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
rewrite_convert.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
rewrite_convert_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
rewrite_properties.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
type.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
utilities.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00