Skip to content

Commit 3f7deb5

Browse files
committed
Fix backward compat Python pack build
Signed-off-by: Matej Vašek <mvasek@redhat.com>
1 parent f889e2c commit 3f7deb5

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)