Merge pull request #178 from helgix/package-bugfix

eliminates package bug on silent build problems
This commit is contained in:
Steve
2019-09-30 16:54:18 -07:00
committed by GitHub
2 changed files with 6 additions and 2 deletions

View File

@@ -69,7 +69,9 @@ func buildApp(c *model.CommandConfig) (err error) {
return return
} }
buildSafetyCheck(destPath) if err = buildSafetyCheck(destPath); err != nil {
return
}
// Ensure the application can be built, this generates the main file // Ensure the application can be built, this generates the main file
app, err := harness.Build(c, revel_paths) app, err := harness.Build(c, revel_paths)

View File

@@ -86,7 +86,9 @@ func packageApp(c *model.CommandConfig) (err error) {
} }
c.Build.TargetPath = tmpDir c.Build.TargetPath = tmpDir
c.Build.CopySource = c.Package.CopySource c.Build.CopySource = c.Package.CopySource
buildApp(c) if err = buildApp(c); err != nil {
return
}
// Create the zip file. // Create the zip file.