Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion pkg/builders/buildpacks/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}
}

Expand Down
Loading