Skip to content

Commit 719b286

Browse files
authored
Fix backward compat Python pack build (knative#2962)
Signed-off-by: Matej Vašek <[email protected]>
1 parent 5f76662 commit 719b286

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/builders/buildpacks/builder.go

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

218218
if f.Runtime == "python" {
219-
cli = pyScaffoldInjector{cli}
219+
if fi, _ := os.Lstat(filepath.Join(f.Root, "Procfile")); fi == nil {
220+
cli = pyScaffoldInjector{cli}
221+
}
220222
}
221223

222224
// Client with a logger which is enabled if in Verbose mode and a dockerClient that supports SSH docker daemon connection.

0 commit comments

Comments
 (0)