Fixed #175: glide get when the GOPATH isn't setup properly could end up in an infinate loop.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 28e31f4..9b4f546 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,8 @@
- Fixed #180: the hash in the glide.lock file was not being properly calculated.
- Fixed #174: glide get was causing an error when the flad --updated-vendored
was being used.
+- Fixed #175: glide get when the GOPATH isn't setup properly could end up in
+ an infinate loop.
# Release 0.8.1 (2015-12-15)
diff --git a/cmd/util.go b/cmd/util.go
index 43bcda9..0ae85dc 100644
--- a/cmd/util.go
+++ b/cmd/util.go
@@ -81,7 +81,7 @@
_, err := os.Stat(path.Join(gopath, "src"))
if err != nil {
- Error("Could not find %s/src.\n", gopath)
+ Error("Could not find %s/src. The GOPATH does not appear to be properly setup.\n", gopath)
Info("As of Glide 0.5/Go 1.5, this is required.\n")
return false, err
}
diff --git a/glide.go b/glide.go
index 9830c6d..223b13a 100644
--- a/glide.go
+++ b/glide.go
@@ -536,6 +536,7 @@
reg.Route("get", "Install a pkg in vendor, and store the results in the glide.yaml").
Includes("@startup").
Includes("@ready").
+ Does(cmd.CowardMode, "_").
Does(cmd.GetAll, "goget").
Using("packages").From("cxt:packages").
Using("conf").From("cxt:cfg").