Explorar o código

only append heroku procfile buildpack when buildpacks are not empty

Alexander Belanger %!s(int64=4) %!d(string=hai) anos
pai
achega
552f6c7a5f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cli/cmd/pack/pack.go

+ 1 - 1
cli/cmd/pack/pack.go

@@ -127,7 +127,7 @@ func (a *Agent) Build(opts *docker.BuildOpts, buildConfig *types.BuildConfig) er
 		// FIXME: use all the config vars
 	}
 
-	if strings.HasPrefix(buildOpts.Builder, "heroku") {
+	if len(buildOpts.Buildpacks) > 0 && strings.HasPrefix(buildOpts.Builder, "heroku") {
 		buildOpts.Buildpacks = append(buildOpts.Buildpacks, "heroku/procfile")
 	}