From 08596c9648af38bb87c5822538a30519e63fb2b5 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 18 Apr 2026 20:29:05 -0400 Subject: [PATCH] fix: skip app.json buildpacks for image-based deploys When deploying via git:from-image, the source image may contain an app.json with buildpacks entries that are not relevant. Check for the source-image property and skip app.json buildpacks when set. --- plugins/buildpacks/functions.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/buildpacks/functions.go b/plugins/buildpacks/functions.go index 7037cf516..89beebc3a 100644 --- a/plugins/buildpacks/functions.go +++ b/plugins/buildpacks/functions.go @@ -28,6 +28,14 @@ func getBuildpacks(appName string) ([]string, error) { return buildpacks, nil } + results, _ := common.CallPlugnTrigger(common.PlugnTriggerInput{ + Trigger: "git-get-property", + Args: []string{appName, "source-image"}, + }) + if results.StdoutContents() != "" { + return buildpacks, nil + } + appJSON, err := appjson.GetAppJSON(appName) if err != nil { return buildpacks, err