Added verbose logging to building / testing a no-vendor app

Removed section which raises an error when examining packages, we dont need to check for errors on foreign packages since we are importing only a slice of the data
This commit is contained in:
notzippy@gmail.com
2020-05-17 05:58:28 -07:00
parent 4bab4409b9
commit 4987ee8319
2 changed files with 3 additions and 5 deletions

View File

@@ -58,8 +58,8 @@ script:
# Check build works with no-vendor flag # Check build works with no-vendor flag
- cd $GOPATH - cd $GOPATH
- export GO111MODULE=auto - export GO111MODULE=auto
- revel new -a my/testapp2 --no-vendor - revel new -a my/testapp2 --no-vendor -v
- revel test -a my/testapp2 - revel test -a my/testapp2 -v
matrix: matrix:
allow_failures: allow_failures:

View File

@@ -119,9 +119,7 @@ func (s *SourceProcessor) addImportMap() (err error) {
if len(p.Errors) > 0 { if len(p.Errors) > 0 {
// Generate a compile error // Generate a compile error
for _, e := range p.Errors { for _, e := range p.Errors {
if !strings.Contains(e.Msg, "fsnotify") { s.log.Info("While reading packages encountered import error ignoring ", "PkgPath", p.PkgPath, "error", e)
err = utils.NewCompileError("", "", e)
}
} }
} }
for _, tree := range p.Syntax { for _, tree := range p.Syntax {