From 4987ee8319501b705e90b3b569f90d6afade4b27 Mon Sep 17 00:00:00 2001 From: "notzippy@gmail.com" Date: Sun, 17 May 2020 05:58:28 -0700 Subject: [PATCH] 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 --- .travis.yml | 4 ++-- parser2/source_processor.go | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 530d6ee..041e135 100644 --- a/.travis.yml +++ b/.travis.yml @@ -58,8 +58,8 @@ script: # Check build works with no-vendor flag - cd $GOPATH - export GO111MODULE=auto - - revel new -a my/testapp2 --no-vendor - - revel test -a my/testapp2 + - revel new -a my/testapp2 --no-vendor -v + - revel test -a my/testapp2 -v matrix: allow_failures: diff --git a/parser2/source_processor.go b/parser2/source_processor.go index 0f4c663..89443b5 100644 --- a/parser2/source_processor.go +++ b/parser2/source_processor.go @@ -119,9 +119,7 @@ func (s *SourceProcessor) addImportMap() (err error) { if len(p.Errors) > 0 { // Generate a compile error for _, e := range p.Errors { - if !strings.Contains(e.Msg, "fsnotify") { - err = utils.NewCompileError("", "", e) - } + s.log.Info("While reading packages encountered import error ignoring ", "PkgPath", p.PkgPath, "error", e) } } for _, tree := range p.Syntax {