pulumi/pkg/codegen/go
Zaid Ajaj 3d8158b744
[PCL] Support generating invokes options from PCL for invokes (#17696)
### Description

This PR adds support for specifying invokes options in PCL and extends
program-gen in C#, TypeScript, Python and Go to support generating the
options correctly from PCL.

Previously the options parameter from the invoke was expected to be a
string which is incorrect, it must be an object with fields `provider`,
`parent`, `version` and `pluginDownloadUrl`.

Soon we will add `dependsOn` to these options so it will be nice to have
the foundation for it.

For Go, TypeScript and Python added a conformance test
`l2-invoke-options` which exercise the usage of these options although
runtime-wise the results of the invoke are the same.

Since we don't have conformance tests for .NET yet, I've added a simple
program-gen test for C# that has invoke options to make sure the
generated program compiles.
2024-11-11 13:01:24 +00:00
..
gen_program_test Don't publish test code in `pkg/codegen` (#17517) 2024-10-09 11:09:54 +00:00
doc.go Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
doc_test.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
embeddedUtilities.go Support returning plain values from methods (#13592) 2023-11-18 06:02:06 +00:00
gen.go Enable some more linting rules (#17456) 2024-10-03 17:37:13 +00:00
gen_program.go Enable some more linting rules (#17456) 2024-10-03 17:37:13 +00:00
gen_program_expression_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
gen_program_expressions.go [PCL] Support generating invokes options from PCL for invokes (#17696) 2024-11-11 13:01:24 +00:00
gen_program_inline_invoke.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
gen_program_json.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
gen_program_optionals.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
gen_program_read_dir.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
gen_program_splat.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
gen_program_ternaries.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
gen_program_test.go Don't publish test code in `pkg/codegen` (#17517) 2024-10-09 11:09:54 +00:00
gen_program_utils.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
gen_spill.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
gen_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
importer.go [go/program-gen] Implement importPathPattern in Go language options to override emitted paths in generated Go programs (#16267) 2024-05-30 19:51:12 +00:00
utilities.go Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
utilities_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00