fix: respect the build-dir in app-json extraction

Because the app-json extraction happens before the build-dir is set, it doesn't end up respecting the value, and thus the user might get the wrong app.json file.

This takes advantage of path.Join()'s default of ignoring empty paths.
This commit is contained in:
Jose Diaz-Gonzalez
2023-02-14 03:56:09 -05:00
parent 0eccfe8ba4
commit 87828515a1
5 changed files with 37 additions and 3 deletions

View File

@@ -21,6 +21,10 @@ func main() {
case "builder-detect":
appName := flag.Arg(0)
err = builder.TriggerBuilderDetect(appName)
case "builder-get-property":
appName := flag.Arg(0)
property := flag.Arg(1)
err = builder.TriggerBuilderGetProperty(appName, property)
case "builder-image-is-cnb":
appName := flag.Arg(0)
image := flag.Arg(1)