From 208801aecb8a8d3dbf56a160659f584844a211d4 Mon Sep 17 00:00:00 2001 From: David Fridrich <49119790+gauron99@users.noreply.github.com> Date: Wed, 20 Aug 2025 17:08:50 +0200 Subject: [PATCH] fix-of-a-fix (#2994) --- pkg/builders/buildpacks/builder.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkg/builders/buildpacks/builder.go b/pkg/builders/buildpacks/builder.go index ca47c4648..e703f18de 100644 --- a/pkg/builders/buildpacks/builder.go +++ b/pkg/builders/buildpacks/builder.go @@ -217,7 +217,14 @@ func (b *Builder) Build(ctx context.Context, f fn.Function, platforms []fn.Platf if f.Runtime == "python" { if fi, _ := os.Lstat(filepath.Join(f.Root, "Procfile")); fi == nil { - cli = pyScaffoldInjector{cli, f.Invoke} + // HACK (of a hack): need to get the right invocation signature + // the standard scaffolding does this in toSignature() func. + // we know we have python here. + invoke := f.Invoke + if invoke == "" { + invoke = "http" + } + cli = pyScaffoldInjector{cli, invoke} } }