From d5a60eaece8f59808a5160eaac8b117555bdc60a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Va=C5=A1ek?= Date: Tue, 1 Jul 2025 10:48:54 +0200 Subject: [PATCH] fix: return better error when using pack+python MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matej VaĊĦek --- pkg/builders/buildpacks/builder.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/builders/buildpacks/builder.go b/pkg/builders/buildpacks/builder.go index 4736f695c3..8fa59e627c 100644 --- a/pkg/builders/buildpacks/builder.go +++ b/pkg/builders/buildpacks/builder.go @@ -120,6 +120,10 @@ var DefaultLifecycleImage = "docker.io/buildpacksio/lifecycle:553c041" // Build the Function at path. func (b *Builder) Build(ctx context.Context, f fn.Function, platforms []fn.Platform) (err error) { + if f.Runtime == "python" { + return fmt.Errorf("python is not currently supported with pack builder (use host or s2i builder instead") + } + if len(platforms) != 0 { return errors.New("the pack builder does not support specifying target platforms directly") }