From 02c118c3c5022f19b51202c63a81c6df5b9d8789 Mon Sep 17 00:00:00 2001 From: Kevin Franklin Kim Date: Tue, 11 Mar 2025 17:04:18 +0100 Subject: [PATCH 1/2] fix: empty load --- pkg/utils/contemplate.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/utils/contemplate.go b/pkg/utils/contemplate.go index 677f170..8b061d5 100644 --- a/pkg/utils/contemplate.go +++ b/pkg/utils/contemplate.go @@ -11,12 +11,16 @@ import ( ) func LoadEventParams(ctx context.Context, cfg contemplate.Config) (map[string]map[string]string, error) { + ret := map[string]map[string]string{} + if len(cfg.Packages) == 0 { + return ret, nil + } + parser, err := contemplate.Load(ctx, &cfg) if err != nil { return nil, err } - ret := map[string]map[string]string{} for _, cfgPkg := range cfg.Packages { pkg := parser.Package(cfgPkg.Path) for _, typ := range cfgPkg.Types { From c86a7f01b15dbe5c2d2a53f1f774a8aee4918f9e Mon Sep 17 00:00:00 2001 From: Kevin Franklin Kim Date: Tue, 11 Mar 2025 17:04:34 +0100 Subject: [PATCH 2/2] docs: fix link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d28087a..2e847dd 100644 --- a/README.md +++ b/README.md @@ -437,7 +437,7 @@ You might need to increase your Google Tag Manager API quotas, since they are li ## How to Contribute -Please refer to the [CONTRIBUTING](.gihub/CONTRIBUTING.md) details and follow the [CODE_OF_CONDUCT](.gihub/CODE_OF_CONDUCT.md) and [SECURITY](.github/SECURITY.md) guidelines. +Please refer to the [CONTRIBUTING](.github/CONTRIBUTING.md) details and follow the [CODE_OF_CONDUCT](.github/CODE_OF_CONDUCT.md) and [SECURITY](.github/SECURITY.md) guidelines. ## License