Skip to content

Commit 0dfbc0c

Browse files
author
Feroze Mohideen
authored
inject env var for deprecated builder (#4420)
1 parent 55192a0 commit 0dfbc0c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cli/cmd/v2/build.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ func build(ctx context.Context, client api.Client, inp buildInput) buildOutput {
153153
Buildpacks: inp.BuildPacks,
154154
}
155155

156+
if buildConfig.Builder == "heroku/buildpacks:20" {
157+
if opts.Env == nil {
158+
opts.Env = map[string]string{}
159+
}
160+
opts.Env["ALLOW_EOL_SHIMMED_BUILDER"] = "1"
161+
}
162+
156163
err := packAgent.Build(ctx, opts, buildConfig, "")
157164
if err != nil {
158165
output.Error = fmt.Errorf("error building image with pack: %w", err)

0 commit comments

Comments
 (0)