From 3e4543e0cc203823310c4e0ab61091e8c8391030 Mon Sep 17 00:00:00 2001 From: Jeremy Foran Date: Tue, 25 Jun 2024 17:42:23 -0400 Subject: [PATCH] Update cdk.template.json to include *.go files. The current behavior for `cdk deploy` is to run `go run cdk.go`. This requires all of the code to be in the named file. Switching it to `go run .` will allow additional files to be included. As the cdk stack becomes more complex, breaking out different props into different files makes the code easier to maintain. --- packages/aws-cdk/lib/init-templates/app/go/cdk.template.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-cdk/lib/init-templates/app/go/cdk.template.json b/packages/aws-cdk/lib/init-templates/app/go/cdk.template.json index a25485ed0951b..a624077e77a3f 100644 --- a/packages/aws-cdk/lib/init-templates/app/go/cdk.template.json +++ b/packages/aws-cdk/lib/init-templates/app/go/cdk.template.json @@ -1,5 +1,5 @@ { - "app": "go mod download && go run %name%.go", + "app": "go mod download && go run .", "watch": { "include": ["**"], "exclude": [