From ae04af46728183165432e9b2d443009cb4c12ea3 Mon Sep 17 00:00:00 2001 From: Tim <32556895+Avarei@users.noreply.github.com> Date: Fri, 5 Jul 2024 10:20:00 +0200 Subject: [PATCH] use cache dir Signed-off-by: Tim <32556895+Avarei@users.noreply.github.com> --- internal/function/fn.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/function/fn.go b/internal/function/fn.go index 3ad1be0..cbbaa64 100644 --- a/internal/function/fn.go +++ b/internal/function/fn.go @@ -65,6 +65,7 @@ func (f *Function) RunFunction(ctx context.Context, req *fnv1beta1.RunFunctionRe case "local": evaluator, err = f.EvaluatorManager.NewProjectEvaluator(ctx, in.Spec.Local.ProjectDir, pkl.PreconfiguredOptions, + pkl.WithDefaultCacheDir, reader.WithCrossplane(&reader.CrossplaneReader{ ReaderScheme: "crossplane", Request: &helper.CompositionRequest{ @@ -77,6 +78,7 @@ func (f *Function) RunFunction(ctx context.Context, req *fnv1beta1.RunFunctionRe default: evaluator, err = f.EvaluatorManager.NewEvaluator(ctx, pkl.PreconfiguredOptions, + pkl.WithDefaultCacheDir, reader.WithCrossplane(&reader.CrossplaneReader{ ReaderScheme: "crossplane", Request: &helper.CompositionRequest{