Update build.go

add missing c.Build.ImportPath, which is required to generate run.sh and run.bat
This commit is contained in:
Jia Lu
2018-10-12 22:53:01 +08:00
committed by GitHub
parent 644d6e12bd
commit 2d6c2eefa4

View File

@@ -62,6 +62,7 @@ func buildApp(c *model.CommandConfig) (err error) {
// Convert target to absolute path // Convert target to absolute path
c.Build.TargetPath, _ = filepath.Abs(destPath) c.Build.TargetPath, _ = filepath.Abs(destPath)
c.Build.Mode = mode c.Build.Mode = mode
c.Build.ImportPath = appImportPath
revel_paths, err := model.NewRevelPaths(mode, appImportPath, "", model.NewWrappedRevelCallback(nil, c.PackageResolver)) revel_paths, err := model.NewRevelPaths(mode, appImportPath, "", model.NewWrappedRevelCallback(nil, c.PackageResolver))
if err != nil { if err != nil {