Merge pull request #237 from Masterminds/feat/docs
Initial read the docs docs
diff --git a/repo/vcs.go b/repo/vcs.go
index d463b22..091b91c 100644
--- a/repo/vcs.go
+++ b/repo/vcs.go
@@ -268,6 +268,7 @@
}
// Having found a repo we copy it to vendor and update it.
+ msg.Info("Copying package %s from the GOPATH.", dep.Name)
msg.Debug("Found %s in GOPATH at %s. Copying to %s", dep.Name, d, dest)
err = gpath.CopyDir(d, dest)
if err != nil {
diff --git a/util/util.go b/util/util.go
index bf949c1..502be52 100644
--- a/util/util.go
+++ b/util/util.go
@@ -283,11 +283,11 @@
if err == nil {
p := filepath.Join(b.GOROOT, "src", name)
if _, err := os.Stat(p); err == nil {
- return name, ""
+ return filepath.ToSlash(name), ""
}
}
- root := GetRootFromPackage(name)
+ root := GetRootFromPackage(filepath.ToSlash(name))
extra := strings.TrimPrefix(name, root)
if len(extra) > 0 && extra != "/" {
extra = strings.TrimPrefix(extra, "/")