Skip to content

Commit

Permalink
Exclude Godeps directories (resolves #32)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleBanks committed Mar 24, 2017
1 parent db9e0cd commit e22f938
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

var (
ignorePaths = []string{".git", "/vendor/", "/testdata/"}
ignorePaths = []string{".git", ".build", "/Godep/", "/vendor/", "/testdata/"}
)

// cleanPath sanitizes a package path by removing the $GOPATH/src portion
Expand Down
8 changes: 4 additions & 4 deletions util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ func Test_ignorePkg(t *testing.T) {
in string
out bool
}{
{"/foo/bar/vendor/baz", true},
{"/foo/bar/.git/baz", true},
{"/foo/bar/testdata/baz", true},
{"/foo/bar/baz", false},
{"github.com/foo/bar/vendor/baz", true},
{"github.com/foo/bar/.git/baz", true},
{"github.com/foo/bar/testdata/baz", true},
{"github.com/foo/bar/baz", false},
}

for idx, tt := range tests {
Expand Down

0 comments on commit e22f938

Please sign in to comment.