Add glide hash validation

Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
Emile Vauge 2017-02-05 16:42:04 +01:00
parent dacde21c27
commit 96197af3f1
No known key found for this signature in database
GPG key ID: D808B4C167352E59
3 changed files with 17 additions and 2 deletions

14
script/validate-glide Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
source "$(dirname "$BASH_SOURCE")/.validate"
grep `glide-hash` glide.lock
if [ $? -eq 0 ]; then
echo 'Congratulations! glide.lock is unchanged.'
else
{
echo "Error: glide.lock has been manually changed. Don't do this. Use glide up instead."
echo
} >&2
false
fi