vendor.sh 391 B

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