fix-of-a-fix (#2994)

This commit is contained in:
David Fridrich 2025-08-20 17:08:50 +02:00 committed by GitHub
parent f6e6021693
commit 208801aecb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 1 deletions

View File

@ -217,7 +217,14 @@ func (b *Builder) Build(ctx context.Context, f fn.Function, platforms []fn.Platf
if f.Runtime == "python" { if f.Runtime == "python" {
if fi, _ := os.Lstat(filepath.Join(f.Root, "Procfile")); fi == nil { 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}
} }
} }