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

Commit

Permalink
sp and lowercase import
Browse files Browse the repository at this point in the history
  • Loading branch information
jmank88 committed Jul 19, 2017
1 parent 51fbd64 commit 21d9f73
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/dep/gopath_scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions internal/gps/vcs_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions internal/gps/vcs_version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand All @@ -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 {
Expand Down

0 comments on commit 21d9f73

Please sign in to comment.