2017-06-13 08:40:22 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -eu -o pipefail -x
|
|
|
|
|
|
|
|
# update this to iidfile after 17.06
|
2017-07-10 20:22:51 +00:00
|
|
|
docker build --build-arg VNDR_VERSION=48ac2669d9d1bcacd3163650ef911edca2ec3b42 -t buildkit:vendor -f ./hack/dockerfiles/vendor.Dockerfile --force-rm .
|
2017-06-22 20:15:46 +00:00
|
|
|
diffs="$(docker run buildkit:vendor git status --porcelain -- vendor 2>/dev/null)"
|
2017-06-13 08:40:22 +00:00
|
|
|
if [ "$diffs" ]; then
|
|
|
|
{
|
|
|
|
set +x
|
|
|
|
echo 'The result of vndr differs'
|
|
|
|
echo
|
|
|
|
echo "$diffs"
|
|
|
|
echo
|
|
|
|
echo 'Please vendor your package with github.com/LK4D4/vndr.'
|
|
|
|
echo
|
|
|
|
} >&2
|
|
|
|
false
|
|
|
|
fi
|
|
|
|
echo 'Congratulations! All vendoring changes are done the right way.'
|