github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/hack/vendor.sh (about) 1 #!/usr/bin/env bash 2 3 # This file is just wrapper around 'go mod vendor' tool. 4 # For updating dependencies you should change `vendor.mod` file in root of the 5 # project. 6 7 set -e 8 set -x 9 10 SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" 11 "${SCRIPTDIR}"/go-mod-prepare.sh 12 13 GO111MODULE=auto go mod tidy -modfile 'vendor.mod' -compat 1.18 14 GO111MODULE=auto go mod vendor -modfile vendor.mod