59a320f050
This commit modifies Go program generation to prevent producing array and slice object elements as pointers in args structures, which fails at runtime and does not make sense in any case. For example, in the case of a type defined like this in schema: ```json "statements": { "type": "array", "items": { "$ref": "/aws/v4.8.0/schema.json#/types/aws:iam/getPolicyDocumentStatement:getPolicyDocumentStatement" } }, ``` The following (which fails at runtime) was produced before this change: ```go Statements []*iam.GetPolicyDocumentStatement `pulumi:"statements"` ``` And the following is produced after after this change: ```go Statements []iam.GetPolicyDocumentStatement `pulumi:"statements"` ``` Test expectations are updated accordingly. |
||
---|---|---|
.. | ||
doc.go | ||
doc_test.go | ||
gen.go | ||
gen_crd2pulumi.go | ||
gen_program.go | ||
gen_program_expression_test.go | ||
gen_program_expressions.go | ||
gen_program_json.go | ||
gen_program_optionals.go | ||
gen_program_read_dir.go | ||
gen_program_splat.go | ||
gen_program_ternaries.go | ||
gen_program_test.go | ||
gen_program_utils.go | ||
gen_spill.go | ||
gen_test.go | ||
importer.go | ||
utilities.go | ||
utilities_test.go |