From ad2d18aeffa0ac6bec9eb69381c7e2e8180038a3 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Fri, 21 Sep 2018 01:47:24 -0700 Subject: [PATCH] scripts/updatedep: use Go 1.11 module for dependency management Signed-off-by: Gyuho Lee --- scripts/updatedep.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/scripts/updatedep.sh b/scripts/updatedep.sh index 0510606a75a..c5c9b936d23 100755 --- a/scripts/updatedep.sh +++ b/scripts/updatedep.sh @@ -6,13 +6,14 @@ if ! [[ "$0" =~ scripts/updatedep.sh ]]; then exit 255 fi -go get -v -u github.com/golang/dep/cmd/dep - -if [[ -z "$1" ]]; then - echo "dep ensure on all packages" - dep ensure -v -else - echo "dep update on" "$1" - # shellcheck disable=SC2086 - dep ensure -v -update $1 +if [[ $(go version) != "go version go1.11"* ]]; then + echo "expect Go 1.11+, got:" $(go version) + exit 255 fi + +<