Install package dependencies when building

This speeds up recurring compiles a lot.
This commit is contained in:
Otto Bretz
2016-04-29 09:23:21 +02:00
parent 8a7b1a81ac
commit eaf28d397f

View File

@@ -80,6 +80,7 @@ func Build(buildFlags ...string) (app *App, compileError *revel.Error) {
versionLinkerFlags := fmt.Sprintf("-X %s/app.APP_VERSION \"%s\"", revel.ImportPath, appVersion)
flags := []string{
"build",
"-i",
"-ldflags", versionLinkerFlags,
"-tags", buildTags,
"-o", binName}