diff --git a/cmd/dep/gopath_scanner.go b/cmd/dep/gopath_scanner.go index bed71271..b04e368e 100644 --- a/cmd/dep/gopath_scanner.go +++ b/cmd/dep/gopath_scanner.go @@ -224,7 +224,7 @@ func (g *gopathScanner) scanGopathForDependencies() (projectData, error) { notondisk[pr] = true continue } - v, err := gps.VSCVersion(abs) + v, err := gps.VCSVersion(abs) if err != nil { notondisk[pr] = true continue @@ -294,7 +294,7 @@ func (g *gopathScanner) scanGopathForDependencies() (projectData, error) { notondisk[pr] = true return nil } - v, err := gps.VSCVersion(abs) + v, err := gps.VCSVersion(abs) if err != nil { // Even if we know it's on disk, errors are still // possible when trying to deduce version. If we diff --git a/internal/gps/vcs_version.go b/internal/gps/vcs_version.go index dff95128..1009337d 100644 --- a/internal/gps/vcs_version.go +++ b/internal/gps/vcs_version.go @@ -11,8 +11,8 @@ import ( "github.com/pkg/errors" ) -// VSCVersion returns the current project version for an absolute path. -func VSCVersion(path string) (Version, error) { +// VCSVersion returns the current project version for an absolute path. +func VCSVersion(path string) (Version, error) { repo, err := vcs.NewRepo("", path) if err != nil { return nil, errors.Wrapf(err, "creating new repo for root: %s", path) diff --git a/internal/gps/vcs_version_test.go b/internal/gps/vcs_version_test.go index 8b0cde7e..7dc11971 100644 --- a/internal/gps/vcs_version_test.go +++ b/internal/gps/vcs_version_test.go @@ -30,7 +30,7 @@ func TestVCSVersion(t *testing.T) { rev: NewVersion("v0.8.0").Pair("645ef00459ed84a119197bfb8d8205042c6df63d"), // semver checkout: true, }, - "github.com/Sirupsen/logrus": { + "github.com/sirupsen/logrus": { rev: Revision("42b84f9ec624953ecbf81a94feccb3f5935c5edf"), // random sha checkout: true, }, @@ -47,7 +47,7 @@ func TestVCSVersion(t *testing.T) { h.RunGit(repoDir, "checkout", info.rev.String()) } abs := filepath.FromSlash(filepath.Join(gopath, "src", ip)) - got, err := VSCVersion(abs) + got, err := VCSVersion(abs) h.Must(err) if got != info.rev {