Skip to content

Commit 208801a

Browse files
authored
fix-of-a-fix (knative#2994)
1 parent f6e6021 commit 208801a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pkg/builders/buildpacks/builder.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,14 @@ func (b *Builder) Build(ctx context.Context, f fn.Function, platforms []fn.Platf
217217

218218
if f.Runtime == "python" {
219219
if fi, _ := os.Lstat(filepath.Join(f.Root, "Procfile")); fi == nil {
220-
cli = pyScaffoldInjector{cli, f.Invoke}
220+
// HACK (of a hack): need to get the right invocation signature
221+
// the standard scaffolding does this in toSignature() func.
222+
// we know we have python here.
223+
invoke := f.Invoke
224+
if invoke == "" {
225+
invoke = "http"
226+
}
227+
cli = pyScaffoldInjector{cli, invoke}
221228
}
222229
}
223230

0 commit comments

Comments
 (0)