pulumi/pkg/codegen/go
James Nugent 59a320f050
Stop producing pointers for map and slice elements (#7472)
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.
2021-07-14 15:12:25 -07:00
..
doc.go [codegen/go] - Inputty Go enums (#7383) 2021-07-07 16:25:26 -07:00
doc_test.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
gen.go Stop producing pointers for map and slice elements (#7472) 2021-07-14 15:12:25 -07:00
gen_crd2pulumi.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
gen_program.go Reify Input and Optional types in the schema type system. (#7059) 2021-06-24 09:17:55 -07:00
gen_program_expression_test.go Reify Input and Optional types in the schema type system. (#7059) 2021-06-24 09:17:55 -07:00
gen_program_expressions.go Reify Input and Optional types in the schema type system. (#7059) 2021-06-24 09:17:55 -07:00
gen_program_json.go Reify Input and Optional types in the schema type system. (#7059) 2021-06-24 09:17:55 -07:00
gen_program_optionals.go Reify Input and Optional types in the schema type system. (#7059) 2021-06-24 09:17:55 -07:00
gen_program_read_dir.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
gen_program_splat.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
gen_program_ternaries.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
gen_program_test.go Reify Input and Optional types in the schema type system. (#7059) 2021-06-24 09:17:55 -07:00
gen_program_utils.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
gen_spill.go Reify Input and Optional types in the schema type system. (#7059) 2021-06-24 09:17:55 -07:00
gen_test.go Emit To[ElementType]PtrOutput methods for go enum output types (#7499) 2021-07-13 12:54:19 -07:00
importer.go [codegen/go] Permit production of flat Go packages (#6862) 2021-04-29 13:30:01 -06:00
utilities.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
utilities_test.go [codegen/*] - Fix enum names that start with an underscore. (#5950) 2020-12-16 09:22:44 -08:00