revel/revel#1057 addressing golint ALL_CAPS

This commit is contained in:
Jeevanandam M
2016-06-08 12:09:48 -07:00
parent e485de7e9c
commit 514b078c3d
6 changed files with 13 additions and 10 deletions

View File

@@ -70,7 +70,7 @@ func buildApp(args []string) {
// Revel and the app are in a directory structure mirroring import path
srcPath := filepath.Join(destPath, "src")
destBinaryPath := filepath.Join(destPath, filepath.Base(app.BinaryPath))
tmpRevelPath := filepath.Join(srcPath, filepath.FromSlash(revel.REVEL_IMPORT_PATH))
tmpRevelPath := filepath.Join(srcPath, filepath.FromSlash(revel.RevelImportPath))
mustCopyFile(destBinaryPath, app.BinaryPath)
mustChmod(destBinaryPath, 0755)
mustCopyDir(filepath.Join(tmpRevelPath, "conf"), filepath.Join(revel.RevelPath, "conf"), nil)

View File

@@ -148,7 +148,7 @@ func setApplicationPath(args []string) {
errorf("Abort: Import path %s already exists.\n", importPath)
}
revelPkg, err = build.Import(revel.REVEL_IMPORT_PATH, "", build.FindOnly)
revelPkg, err = build.Import(revel.RevelImportPath, "", build.FindOnly)
if err != nil {
errorf("Abort: Could not find Revel source code: %s\n", err)
}

View File

@@ -1,9 +1,10 @@
package main
import (
"strconv"
"github.com/revel/cmd/harness"
"github.com/revel/revel"
"strconv"
)
var cmdRun = &Command{