Skip to content
Snippets Groups Projects
Commit 8fab65af authored by Jano Hendriks's avatar Jano Hendriks
Browse files

Always use bootstrap as the binary name

parent faa1ca2f
No related branches found
No related tags found
No related merge requests found
...@@ -44,13 +44,7 @@ func Build(dir string, module string, isDebug bool) error { ...@@ -44,13 +44,7 @@ func Build(dir string, module string, isDebug bool) error {
handler := path.Base(fullPath) handler := path.Base(fullPath)
fmt.Println(fmt.Sprintf("Building %v", handler)) fmt.Println(fmt.Sprintf("Building %v", handler))
outputFileName := handler outputFileName := "bootstrap"
env := CurrentEnv()
fmt.Println("ENV:", env)
if env == "playground" {
fmt.Println("Using 'bootstrap' for output file name")
outputFileName = "bootstrap"
}
outputDir := fmt.Sprintf(currentDir+`/core/build/handlers/%v`, handler) outputDir := fmt.Sprintf(currentDir+`/core/build/handlers/%v`, handler)
outputFile := fmt.Sprintf(`%v/%v`, outputDir, outputFileName) outputFile := fmt.Sprintf(`%v/%v`, outputDir, outputFileName)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment