hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 18cb21ff2e4a60e7094908e4d6113a9d5a086316
parent df298558a5a5b747288d9656402af85e0ac75a43
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Wed, 11 Mar 2020 22:21:16 +0100

resources: Add data context to the key in ExecuteAsTemplate

Fixes #7046

Diffstat:
Mresources/resource_transformers/templates/execute_as_template.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/resources/resource_transformers/templates/execute_as_template.go b/resources/resource_transformers/templates/execute_as_template.go
@@ -48,7 +48,7 @@ type executeAsTemplateTransform struct {
 }
 
 func (t *executeAsTemplateTransform) Key() internal.ResourceTransformationKey {
-	return internal.NewResourceTransformationKey("execute-as-template", t.targetPath)
+	return internal.NewResourceTransformationKey("execute-as-template", t.targetPath, t.data)
 }
 
 func (t *executeAsTemplateTransform) Transform(ctx *resources.ResourceTransformationCtx) error {