From 7c7f90fd93c7f2b9d5b134700caf786c090f4037 Mon Sep 17 00:00:00 2001 From: Yann Pretot Date: Sat, 21 Dec 2024 01:08:04 +0100 Subject: [PATCH] fix: Use correct cache while parsing partial config --- config/config_partial.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config_partial.go b/config/config_partial.go index dc834611d..34e604317 100644 --- a/config/config_partial.go +++ b/config/config_partial.go @@ -271,7 +271,7 @@ func PartialParseConfigFile(ctx *ParsingContext, configPath string, include *Inc func TerragruntConfigFromPartialConfig(ctx *ParsingContext, file *hclparse.File, includeFromChild *IncludeConfig) (*TerragruntConfig, error) { var cacheKey = fmt.Sprintf("%#v-%#v-%#v-%#v", file.ConfigPath, file.Content(), includeFromChild, ctx.PartialParseDecodeList) - terragruntConfigCache := cache.ContextCache[*TerragruntConfig](ctx, RunCmdCacheContextKey) + terragruntConfigCache := cache.ContextCache[*TerragruntConfig](ctx, TerragruntConfigCacheContextKey) if ctx.TerragruntOptions.UsePartialParseConfigCache { if config, found := terragruntConfigCache.Get(ctx, cacheKey); found { ctx.TerragruntOptions.Logger.Debugf("Cache hit for '%s' (partial parsing), decodeList: '%v'.", ctx.TerragruntOptions.TerragruntConfigPath, ctx.PartialParseDecodeList)