Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 36b6d46

Browse files
committed
Rename vcsRoots
1 parent fb6bacb commit 36b6d46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/gps/pkgtree/pkgtree.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ type Package struct {
2828
TestImports []string // Imports from all go test files (in go/build parlance: both TestImports and XTestImports)
2929
}
3030

31-
// svnRoots is a set of directories we should not descend into in ListPackages when
31+
// vcsRoots is a set of directories we should not descend into in ListPackages when
3232
// searching for Go packages
33-
var svnRoots = map[string]struct{}{
33+
var vcsRoots = map[string]struct{}{
3434
".git": struct{}{},
3535
".bzr": struct{}{},
3636
".svn": struct{}{},
@@ -93,7 +93,7 @@ func ListPackages(fileRoot, importRoot string) (PackageTree, error) {
9393
// Note that there are some pathological edge cases this doesn't cover,
9494
// such as a user using Git for version control, but having a package
9595
// named "svn" in a directory named ".svn".
96-
if _, ok := svnRoots[fi.Name()]; ok {
96+
if _, ok := vcsRoots[fi.Name()]; ok {
9797
return filepath.SkipDir
9898
}
9999

0 commit comments

Comments
 (0)