2017-02-13 19:01:54 +00:00
|
|
|
#!/usr/bin/env bash
|
2013-08-26 22:51:22 +00:00
|
|
|
|
2021-12-15 19:35:04 +00:00
|
|
|
# This file is just wrapper around 'go mod vendor' tool.
|
|
|
|
# For updating dependencies you should change `vendor.mod` file in root of the
|
|
|
|
# project.
|
2016-04-19 13:35:06 +00:00
|
|
|
|
2016-10-31 18:22:28 +00:00
|
|
|
set -e
|
2021-12-15 19:35:04 +00:00
|
|
|
set -x
|
2013-12-19 17:01:55 +00:00
|
|
|
|
2021-12-15 19:35:04 +00:00
|
|
|
SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
2022-02-05 10:25:23 +00:00
|
|
|
"${SCRIPTDIR}"/go-mod-prepare.sh
|
2021-12-15 19:35:04 +00:00
|
|
|
|
2022-09-15 16:19:19 +00:00
|
|
|
GO111MODULE=auto go mod tidy -modfile 'vendor.mod' -compat 1.18
|
2022-01-24 20:33:54 +00:00
|
|
|
GO111MODULE=auto go mod vendor -modfile vendor.mod
|