mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-20 22:25:09 +00:00
Install package dependencies when building
This speeds up recurring compiles a lot.
This commit is contained in:
@@ -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)
|
versionLinkerFlags := fmt.Sprintf("-X %s/app.APP_VERSION \"%s\"", revel.ImportPath, appVersion)
|
||||||
flags := []string{
|
flags := []string{
|
||||||
"build",
|
"build",
|
||||||
|
"-i",
|
||||||
"-ldflags", versionLinkerFlags,
|
"-ldflags", versionLinkerFlags,
|
||||||
"-tags", buildTags,
|
"-tags", buildTags,
|
||||||
"-o", binName}
|
"-o", binName}
|
||||||
|
|||||||
Reference in New Issue
Block a user