New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[codegen/typescript] Call site defaults for plain Pulumi Object types #8400
Conversation
Diff for pulumi-azuread with merge commit 1c61fa9 |
Diff for pulumi-random with merge commit 1c61fa9 |
Diff for pulumi-kubernetes with merge commit 1c61fa9 |
Diff for pulumi-gcp with merge commit 1c61fa9 |
Diff for pulumi-azure with merge commit 1c61fa9 |
Diff for pulumi-aws with merge commit 1c61fa9 |
Diff for pulumi-random with merge commit b646444 |
Diff for pulumi-azuread with merge commit b646444 |
Diff for pulumi-kubernetes with merge commit b646444 |
Diff for pulumi-azuread with merge commit b30049e |
Diff for pulumi-random with merge commit b30049e |
Diff for pulumi-gcp with merge commit b646444 |
Diff for pulumi-kubernetes with merge commit b30049e |
Diff for pulumi-gcp with merge commit b30049e |
Diff for pulumi-azure with merge commit b646444 |
Diff for pulumi-azure with merge commit b30049e |
Diff for pulumi-aws with merge commit b646444 |
Diff for pulumi-aws with merge commit b30049e |
Diff for pulumi-azuread with merge commit be80baf |
Diff for pulumi-random with merge commit f6f5c95 |
Diff for pulumi-azuread with merge commit f6f5c95 |
Diff for pulumi-kubernetes with merge commit f6f5c95 |
Diff for pulumi-gcp with merge commit f6f5c95 |
Diff for pulumi-azure with merge commit f6f5c95 |
Diff for pulumi-aws with merge commit f6f5c95 |
Credit to @praneetloke
Diff for pulumi-azure-native with merge commit f6f5c95 |
@@ -1957,8 +1957,14 @@ func (dctx *docGenContext) generatePackage(tool string, pkg *schema.Package) (ma | |||
|
|||
glog.V(3).Infoln("generating package docs now...") | |||
files := fs{} | |||
for _, mod := range dctx.modules() { | |||
if err := mod.gen(files); err != nil { | |||
modules := []string{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oof nice find. Anything else using dctx.modules() like this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Diff for pulumi-random with merge commit 5306448 |
Diff for pulumi-azuread with merge commit 5306448 |
Diff for pulumi-kubernetes with merge commit 5306448 |
Diff for pulumi-gcp with merge commit 5306448 |
Diff for pulumi-azure with merge commit 5306448 |
Diff for pulumi-aws with merge commit 5306448 |
Diff for pulumi-azuread with merge commit bf51d5d |
Diff for pulumi-random with merge commit bf51d5d |
Diff for pulumi-kubernetes with merge commit bf51d5d |
Diff for pulumi-gcp with merge commit bf51d5d |
Diff for pulumi-azure with merge commit bf51d5d |
Diff for pulumi-aws with merge commit bf51d5d |
Diff for pulumi-azure-native with merge commit bf51d5d |
Description
Apply a default function when a object type is passed as an argument to Resource.
Partial fix for: #8132
Note: the massive number of files changes is because I needed to change the name of our registration
inputs
toresourceInputs
. The old name (justinputs
) conflicted with theinputs
package. Changes were made tonodejs/gen.go
and the test added is calledenv-helper
(incodegen/internal/test/testdata
).Checklist