From f689fb9e6500c16d153749f52ef4e32782fd8332 Mon Sep 17 00:00:00 2001 From: Adam Wolfe Gordon Date: Fri, 9 Oct 2026 14:25:57 -0600 Subject: [PATCH] render: Don't try to start non-functions as functions Previously, render tried to start all runtime xpkg dependencies as functions, including providers. This didn't cause any problems (the providers sat running, doing nothing), but was wasteful and increased the chance of render timing out while pulling packages. Explicitly check the kind of each dependency and skip any that are not functions. Signed-off-by: Adam Wolfe Gordon (cherry picked from commit 7e7d2fafb612839e8a2f9aef2ef11691f9f232c9) --- internal/project/render.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/project/render.go b/internal/project/render.go index 6f2c21e5..9c2c6035 100644 --- a/internal/project/render.go +++ b/internal/project/render.go @@ -53,6 +53,9 @@ func LoadFunctionDependencies(resolver Resolver, proj *devv1alpha1.Project) ([]p if dep.Xpkg == nil || dep.Xpkg.APIOnly { continue } + if dep.Xpkg.Kind != pkgv1.FunctionKind { + continue + } var ref string if _, err := v1.NewHash(dep.Xpkg.Version); err == nil {