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

Commit

Permalink
Rename vcsRoots
Browse files Browse the repository at this point in the history
  • Loading branch information
ascandella committed May 15, 2017
1 parent fb6bacb commit 36b6d46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/gps/pkgtree/pkgtree.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ type Package struct {
TestImports []string // Imports from all go test files (in go/build parlance: both TestImports and XTestImports)
}

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

Expand Down

0 comments on commit 36b6d46

Please sign in to comment.