فهرست منبع

check for heroku and paketo builders for extra check

Mohammed Nafees 3 سال پیش
والد
کامیت
6c59caad2d
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      cli/cmd/run.go

+ 2 - 0
cli/cmd/run.go

@@ -129,6 +129,8 @@ func run(_ *types.GetAuthenticatedUserResponse, client *api.Client, args []strin
 		}
 		}
 
 
 		if release.BuildConfig != nil &&
 		if release.BuildConfig != nil &&
+			(strings.Contains(release.BuildConfig.Builder, "heroku") ||
+				strings.Contains(release.BuildConfig.Builder, "paketo")) &&
 			execArgs[0] != "/cnb/lifecycle/launcher" &&
 			execArgs[0] != "/cnb/lifecycle/launcher" &&
 			execArgs[0] != "launcher" {
 			execArgs[0] != "launcher" {
 			// this is a buildpacks release using a heroku builder, prepend the launcher
 			// this is a buildpacks release using a heroku builder, prepend the launcher