Skip to content

Commit 1d56b0c

Browse files
author
Matthew Fisher
committed
fix(builder): supply empty default process type
Heroku buildpacks are not required to send one. If none is provided, it should be an empty list.
1 parent 9249b78 commit 1d56b0c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

builder/image/extract-types.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,12 @@ func main() {
3131

3232
defaultType, err := cfg.Get("default_process_types")
3333

34+
// some buildpacks don't supply a default process type
35+
// as Heroku does not make them mandatory
36+
if err != nil {
37+
fmt.Println("{}")
38+
os.Exit(0)
39+
}
40+
3441
fmt.Println(defaultType)
3542
}

0 commit comments

Comments
 (0)