diff options
author | Christopher Speller <crspeller@gmail.com> | 2018-04-16 05:37:14 -0700 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2018-04-16 08:37:14 -0400 |
commit | 6e2cb00008cbf09e556b00f87603797fcaa47e09 (patch) | |
tree | 3c0eb55ff4226a3f024aad373140d1fb860a6404 /vendor/github.com/hashicorp/go-multierror/scripts | |
parent | bf24f51c4e1cc6286885460672f7f449e8c6f5ef (diff) | |
download | chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.tar.gz chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.tar.bz2 chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.zip |
Depenancy upgrades and movign to dep. (#8630)
Diffstat (limited to 'vendor/github.com/hashicorp/go-multierror/scripts')
-rwxr-xr-x | vendor/github.com/hashicorp/go-multierror/scripts/deps.sh | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/vendor/github.com/hashicorp/go-multierror/scripts/deps.sh b/vendor/github.com/hashicorp/go-multierror/scripts/deps.sh deleted file mode 100755 index 1d2fcf98c..000000000 --- a/vendor/github.com/hashicorp/go-multierror/scripts/deps.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env bash -# -# This script updates dependencies using a temporary directory. This is required -# to avoid any auxillary dependencies that sneak into GOPATH. -set -e - -# Get the parent directory of where this script is. -SOURCE="${BASH_SOURCE[0]}" -while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done -DIR="$(cd -P "$(dirname "$SOURCE")/.." && pwd)" - -# Change into that directory -cd "$DIR" - -# Get the name from the directory -NAME=${NAME:-"$(basename $(pwd))"} - -# Announce -echo "==> Updating dependencies..." - -echo "--> Making tmpdir..." -tmpdir=$(mktemp -d) -function cleanup { - rm -rf "${tmpdir}" -} -trap cleanup EXIT - -export GOPATH="${tmpdir}" -export PATH="${tmpdir}/bin:$PATH" - -mkdir -p "${tmpdir}/src/github.com/hashicorp" -pushd "${tmpdir}/src/github.com/hashicorp" &>/dev/null - -echo "--> Copying ${NAME}..." -cp -R "$DIR" "${tmpdir}/src/github.com/hashicorp/${NAME}" -pushd "${tmpdir}/src/github.com/hashicorp/${NAME}" &>/dev/null -rm -rf vendor/ - -echo "--> Installing dependency manager..." -go get -u github.com/kardianos/govendor -govendor init - -echo "--> Installing all dependencies (may take some time)..." -govendor fetch -v +outside - -echo "--> Vendoring..." -govendor add +external - -echo "--> Moving into place..." -vpath="${tmpdir}/src/github.com/hashicorp/${NAME}/vendor" -popd &>/dev/null -popd &>/dev/null -rm -rf vendor/ -cp -R "${vpath}" . |