pulumi/pkg/codegen
James Nugent f73ec2fc71
[codegen/go] Permit production of flat Go packages (#6862)
When working in a monorepo environment, it can be desirable to generate
Go SDKs into a structure less like the upstream SDKs, and more like
this:

github.com/x/mymonorepo/sdk/go/package-name

Where `package-name` is also the root of a Go module. Since
`package-name` is not a valid package name in Go, it's also desirable to
be able to choose a replacement name and reduce the amount of nesting.

This commit adds a new Go option to the schema, `rootPackageName`, which
can be used to modify the generated root package name (e.g. to
`mypackage` instead of `package-name`, and remove the additional layer
of nesting.

Test coverage is added to ensure that the correct file structure and
package names are generated.
2021-04-29 13:30:01 -06:00
..
docs Ensuring Yandex is part of the docs title generations 2021-04-21 00:41:37 +01:00
dotnet Enable deterministic builds 2021-04-29 14:24:43 +12:00
go [codegen/go] Permit production of flat Go packages (#6862) 2021-04-29 13:30:01 -06:00
hcl2 [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
importer [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
internal/test [codegen/go] Permit production of flat Go packages (#6862) 2021-04-29 13:30:01 -06:00
nodejs Distinguish between inputty and plain args types. (#6811) 2021-04-19 16:40:39 -07:00
python Distinguish between inputty and plain args types. (#6811) 2021-04-19 16:40:39 -07:00
schema Distinguish between inputty and plain args types. (#6811) 2021-04-19 16:40:39 -07:00
docs.go Fix inconsistent object type naming. (#6686) 2021-04-15 19:03:28 -07:00
docs_test.go [codegen/docs] Reimplement example extraction. (#4851) 2020-06-18 12:32:15 -07: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_types.go Distinguish between inputty and plain args types. (#6811) 2021-04-19 16:40:39 -07:00