pulumi/pkg/codegen/pcl
Daniel Bradley f935dfba2e
Fix invoke functions without args (#8805)
* Fix invoke functions without args

Example: `invoke("aws-native::getPartition")` has no additional args object passed therefore the args length is 1.
Graciously fallback to disable rendering of the output form for this case.

* Fix binder tests

- No sub-tests were run since the folder structure changed in 06a19b53ed
- Also fix capture of loop variable in closure.

* Add binder test for aws-native

This fails if 735ab2ba05e33caab75219cbcc3c5156b8a0e843 is reverted.

* Add to pending changelog

* Fix lint warning

* Emit diagnostics for missing arg

- Allow example generation to run without panic while we investigate deeper issues.
- Remove example which appears to have errors (leave aws-native host there for now).
2022-01-24 20:59:06 +00: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 [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
binder_schema.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
binder_schema_test.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
binder_test.go Fix invoke functions without args (#8805) 2022-01-24 20:59:06 +00: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 Implemented filebase64sha256 & fileArchive support for codegen (#7997) 2022-01-21 16:03:25 +02:00
intrinsics.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
invoke.go Fix invoke functions without args (#8805) 2022-01-24 20:59:06 +00: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 [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
rewrite_convert.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07:00
rewrite_convert_test.go [codegen] Rename the PCL package. (#8103) 2021-09-29 20:11:56 -07: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