Always use the 64-bit version of dep. (#270)

The logic for choosing the 32-bit vs. 64-bit version of dep was
inverted.

Fix this by simply always using the 64-bit version.

Signed-off-by: Brian Smith <brian@briansmith.org>
This commit is contained in:
Brian Smith 2018-02-05 09:07:31 -10:00 committed by GitHub
parent 9887f10749
commit 4da0b57204
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

@ -9,15 +9,10 @@ if [ "$(uname -s)" = "Darwin" ]; then
else
os=linux
fi
if [ "$(uname -m)" = "x86_64" ]; then
arch=386
else
arch=amd64
fi
depbin=.dep
depversion=0.4.1 # Need to keep this in sync with Dockerfile-go-deps
depurl="https://github.com/golang/dep/releases/download/v${depversion}/dep-${os}-${arch}"
depurl="https://github.com/golang/dep/releases/download/v${depversion}/dep-${os}-amd64"
if [ ! -f "$depbin" ]; then
tmp=$(mktemp -d -t dep.XXX)