Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

Commit

Permalink
ignore directories starting with _ as per the go spec
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Jul 29, 2018
1 parent 147bee9 commit 9e76dbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ func (b *Builder) Run() error {
}

base := strings.ToLower(filepath.Base(path))
if strings.HasPrefix(base, "_") {
return filepath.SkipDir
}
for _, f := range b.IgnoredFolders {
if strings.ToLower(f) == base {
return filepath.SkipDir
Expand Down

0 comments on commit 9e76dbe

Please sign in to comment.