Issue #198: Providing a warning to failed hach checks instead of failing to install
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7eb85b7..93c1caf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,7 @@
# Release 0.8.3 (xxxx-xx-xx)
+- Issue #198: Instead of stopping `glide install` for a hash failures providing
+ a warning. Failed hash check is currently too agressive.
- Fixed #199: `glide up` on Windows unable to detect dependencies when GOPATH
and GOROOT on a different drive or when GOROOT ends in a path separator.
- Fixed #194: `glide up` stalling on Windows due to POSIX path separators and
diff --git a/cmd/install.go b/cmd/install.go
index 3f58edd..ea4b86a 100644
--- a/cmd/install.go
+++ b/cmd/install.go
@@ -1,7 +1,6 @@
package cmd
import (
- "errors"
"io/ioutil"
"os"
"sync"
@@ -43,7 +42,7 @@
}
if hash != lock.Hash {
- return nil, errors.New("Lock file does not match YAML configuration. Consider running 'update'")
+ Warn("Lock file may be out of date. Hash check of YAML failed. You may need to run 'update'")
}
return lock, nil
diff --git a/glide.lock b/glide.lock
index c69198e..cd88888 100644
--- a/glide.lock
+++ b/glide.lock
@@ -1,4 +1,4 @@
-hash: 1fdfb16656a1b4a1664afdc9e2a5fc8040165bc5b6e85812df2affceacb7fbc8
+hash: foo
updated: 2015-12-21T09:29:33.170992254-05:00
imports:
- name: github.com/codegangsta/cli