2017-02-13 14:01:54 -05:00
|
|
|
#!/usr/bin/env bash
|
2013-08-26 18:51:22 -04:00
|
|
|
|
2021-12-15 14:35:04 -05: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 09:35:06 -04:00
|
|
|
|
2016-10-31 14:22:28 -04:00
|
|
|
set -e
|
2021-12-15 14:35:04 -05:00
|
|
|
set -x
|
2013-12-19 12:01:55 -05:00
|
|
|
|
2021-12-15 14:35:04 -05:00
|
|
|
SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
2022-02-05 05:25:23 -05:00
|
|
|
"${SCRIPTDIR}"/go-mod-prepare.sh
|
2021-12-15 14:35:04 -05:00
|
|
|
|
2022-09-15 12:19:19 -04:00
|
|
|
GO111MODULE=auto go mod tidy -modfile 'vendor.mod' -compat 1.18
|
2022-01-24 15:33:54 -05:00
|
|
|
GO111MODULE=auto go mod vendor -modfile vendor.mod
|