49a09ab7dd
- Add helper script to simplify glide usage. - Add validation script for unwanted changes to vendoring. - Relax/tighten up .{git,docker}ignore to cover vendored files properly. - .validate: Protect from unbound variable in case of nounset setting. - Install more recent hg version in the build container. - Remove glide installation steps from Dockerfile. - Update documentation.
13 lines
286 B
Bash
Executable file
13 lines
286 B
Bash
Executable file
#!/bin/bash
|
|
|
|
source "$(dirname "$BASH_SOURCE")/.validate"
|
|
|
|
if grep -q "$(glide-hash)" glide.lock; then
|
|
echo 'Congratulations! glide.lock is unchanged.'
|
|
else
|
|
{
|
|
echo "Error: glide.lock has been manually changed. Don't do this. Use script/glide.sh up instead."
|
|
echo
|
|
} >&2
|
|
false
|
|
fi
|