pulumi/pkg/codegen/go
Justin Van Patten d11302bcfe
[codegen/go] Add support for specifying internal dependencies (#9183)
There are situations where an MLC provider may use other resource providers inside its implementation. Such dependencies are not exposed through public APIs and aren't used at all from the generated Go SDK. Since these dependencies aren't used in the Go SDK, there's no way to specify them in the SDK's `go.mod`, as they'd be removed by `go mod tidy`. This is problematic for plugin discovery. Since the dependencies aren't able to be listed in the SDK's `go.mod`, the associated plugins will not be installed automatically for users of the SDK.

This change introduces a new Go schema option (`InternalDependencies`) that can be used to specify a set of packages that will be emitted as blank imports in the generated SDK so that the associated dependencies in `go.mod` will not be removed by `go mod tidy`.
2022-03-18 17:02:33 -07:00
..
doc.go Fix default package name (#8187) 2021-10-11 15:28:11 -07:00
doc_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
gen.go [codegen/go] Add support for specifying internal dependencies (#9183) 2022-03-18 17:02:33 -07:00
gen_crd2pulumi.go [codegen/go] Call site defaults for Pulumi Object types (#8411) 2021-11-23 15:10:15 -08:00
gen_program.go [codegen/go] Add GenerateProgramWithOpts function (#8997) 2022-02-16 11:11:33 -07:00
gen_program_expression_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
gen_program_expressions.go Expand pcl intrinsic functions (#9208) 2022-03-15 17:05:36 -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 [codegen/go] Improve optional params in invoke 2022-02-01 11:44:40 -08: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 Expose the check function (#9176) 2022-03-16 11:42:30 -07:00
gen_program_utils.go Implemented filebase64sha256 & fileArchive support for codegen (#7997) 2022-01-21 16:03:25 +02: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 ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
importer.go [codegen/go] Add support for specifying internal dependencies (#9183) 2022-03-18 17:02:33 -07:00
test.go Expose the check function (#9176) 2022-03-16 11:42:30 -07:00
utilities.go Update error handling (#8406) 2021-11-12 18:37:17 -08:00
utilities_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00