Enhanced package and build to by default not include any source code

This commit is contained in:
NotZippy
2018-09-14 15:56:26 -07:00
parent d0baaeb9e9
commit 3ad381d45b
9 changed files with 88 additions and 24 deletions

View File

@@ -45,10 +45,9 @@ func versionApp(c *model.CommandConfig) {
utils.Logger.Errorf("Failed to find Revel with error:", "error", err)
}
utils.Logger.Info("Fullpath to revel", revelPkg.Dir)
fset := token.NewFileSet() // positions are relative to fset
version, err := ioutil.ReadFile(filepath.Join(revelPkg.Dir,"version.go"))
if err != nil {
utils.Logger.Errorf("Failed to find Revel version:", "error", err)