Update traefik dependencies (docker/docker and related) (#1823)
Update traefik dependencies (docker/docker and related) - Update dependencies - Fix compilation problems - Remove vdemeester/docker-events (in docker api now) - Remove `integration/vendor` - Use `testImport` - update some deps. - regenerate the lock from scratch (after a `glide cc`)
This commit is contained in:
parent
7d178f49b4
commit
b7daa2f3a4
1301 changed files with 21476 additions and 150099 deletions
|
@ -6,13 +6,7 @@ set -o nounset
|
|||
####
|
||||
### Helper script for glide[-vc] to handle specifics for the Traefik repo.
|
||||
##
|
||||
# In particular, the 'integration/' directory contains its own set of
|
||||
# glide-managed dependencies which must not have its nested vendor folder
|
||||
# stripped. Depending on where the script is called from, it will do the Right
|
||||
# Thing.
|
||||
#
|
||||
|
||||
CWD="$(pwd)"; readonly CWD
|
||||
GLIDE_ARGS=()
|
||||
GLIDE_VC_ARGS=(
|
||||
'--use-lock-file' # `glide list` seems to miss test dependencies, e.g., github.com/mattn/go-shellwords
|
||||
|
@ -20,6 +14,10 @@ GLIDE_VC_ARGS=(
|
|||
'--no-tests'
|
||||
)
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
readonly SCRIPT_DIR
|
||||
readonly GLIDE_DIR="${SCRIPT_DIR}/.."
|
||||
|
||||
usage() {
|
||||
echo "usage: $(basename "$0") install | update | get <package> | trim
|
||||
install: Install all dependencies and trim the vendor folder afterwards (alternative command: i).
|
||||
|
@ -30,14 +28,7 @@ trim: Trim the vendor folder only, do not install or update dependencies.
|
|||
The current working directory must contain a glide.yaml file." >&2
|
||||
}
|
||||
|
||||
is_integration_dir() {
|
||||
[[ "$(basename ${CWD})" = 'integration' ]]
|
||||
}
|
||||
|
||||
GLIDE_ARGS+=('--strip-vendor')
|
||||
if ! is_integration_dir; then
|
||||
GLIDE_ARGS+=('--skip-test')
|
||||
fi
|
||||
|
||||
if ! type glide > /dev/null 2>&1; then
|
||||
echo "glide not found in PATH." >&2
|
||||
|
@ -49,7 +40,7 @@ if ! type glide-vc > /dev/null 2>&1; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ! -e "${CWD}/glide.yaml" ]]; then
|
||||
if [[ ! -e "${GLIDE_DIR}/glide.yaml" ]]; then
|
||||
echo "no glide.yaml file found in the current working directory" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue