fix: reformat existing buildpacks files

Previously, the shorthand was not properly supported. While this _should_ be the domain of the gliderlabs/herokuish repository, we do it here as a courtesy to Dokku users.

Additionally, support the heroku-community => heroku mapping.

Closes #4452
This commit is contained in:
Jose Diaz-Gonzalez committed 2021-03-22 16:46:18 -04:00
1 parent 3a048d515a
commit 6787b82ec0
3 files changed
+60 -2

No files matched your search

+1 -1
View File
@@ -78,7 +78,7 @@ func TriggerPostExtract(appName string, sourceWorkDir string) error {
}
if len(buildpacks) == 0 {
return nil
return rewriteBuildpacksFile(sourceWorkDir)
}
buildpacksPath := filepath.Join(sourceWorkDir, ".buildpacks")