Skip to content

Commit 4a57dc3

Browse files
committed
fix: return better error when using pack+python
picking knative#2904 Signed-off-by: Matej Vašek <[email protected]>
1 parent b709f7f commit 4a57dc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/builders/buildpacks/builder.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ var DefaultLifecycleImage = "docker.io/buildpacksio/lifecycle:553c041"
119119

120120
// Build the Function at path.
121121
func (b *Builder) Build(ctx context.Context, f fn.Function, platforms []fn.Platform) (err error) {
122+
if f.Runtime == "python" {
123+
return fmt.Errorf("python is not currently supported with pack builder (use host or s2i builder instead")
124+
}
125+
122126
if len(platforms) != 0 {
123127
return errors.New("the pack builder does not support specifying target platforms directly.")
124128
}

0 commit comments

Comments
 (0)