mirror of
https://github.com/rkt/rkt.git
synced 2025-08-06 13:48:46 +08:00
24 lines
464 B
Bash
Executable File
24 lines
464 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Update vendored dedendencies.
|
|
#
|
|
set -e
|
|
|
|
if ! [[ "$PWD" = "$GOPATH/src/github.com/rkt/rkt" ]]; then
|
|
echo "must be run from \$GOPATH/src/github.com/rkt/rkt"
|
|
exit 255
|
|
fi
|
|
|
|
if [ ! $(command -v glide) ]; then
|
|
echo "glide: command not found"
|
|
exit 255
|
|
fi
|
|
|
|
if [ ! $(command -v glide-vc) ]; then
|
|
echo "glide-vc: command not found"
|
|
exit 255
|
|
fi
|
|
|
|
glide update --strip-vendor
|
|
glide-vc --only-code --no-tests --keep="**/*.json.in" --use-lock-file
|