From abe0d5f390aec21087adf654ec070d46801b415c Mon Sep 17 00:00:00 2001 From: Easton Crupper <65553218+ecrupper@users.noreply.github.com> Date: Thu, 30 Jan 2025 09:00:00 -0600 Subject: [PATCH] fix(compiler): bust template cache on Duplicate (#1249) --- compiler/native/native.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/native/native.go b/compiler/native/native.go index 4a10aae2f..5f12d3954 100644 --- a/compiler/native/native.go +++ b/compiler/native/native.go @@ -140,7 +140,7 @@ func (c *client) Duplicate() compiler.Engine { cc.CloneImage = c.CloneImage cc.TemplateDepth = c.TemplateDepth cc.StarlarkExecLimit = c.StarlarkExecLimit - cc.TemplateCache = c.TemplateCache + cc.TemplateCache = make(map[string][]byte) return cc }