Added code to copy non go files into vendor folder.

This commit is contained in:
notzippy@gmail.com
2022-04-21 16:13:40 -07:00
parent b7b15f820c
commit e9e804adff
2 changed files with 198 additions and 2 deletions

View File

@@ -128,7 +128,8 @@ func (s *SourceProcessor) processPath(path string, info os.FileInfo, err error)
}
// Ignore files and folders not marked tmp (since those are generated)
if !info.IsDir() || info.Name() == "tmp" {
// Also ignore files in the vendor folder.
if !info.IsDir() || info.Name() == "tmp" || strings.HasPrefix(path, filepath.Join(s.revelContainer.BasePath, "vendor")) {
return nil
}