From e22f938f7d6ef631f3bb041568d646fa8da86d22 Mon Sep 17 00:00:00 2001 From: KyleBanks Date: Fri, 24 Mar 2017 08:14:58 -0400 Subject: [PATCH] Exclude Godeps directories (resolves #32) --- util.go | 2 +- util_test.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/util.go b/util.go index c52b198..06e6a07 100644 --- a/util.go +++ b/util.go @@ -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 diff --git a/util_test.go b/util_test.go index 0153508..f8948c4 100644 --- a/util_test.go +++ b/util_test.go @@ -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 {