mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-02-12 06:41:37 +00:00
Switch to dep. Update the following: - azure-sdk-for-go to 10.2.1-beta - go-autorest to 8.1.1 - client-go to 4.0.0 Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
8 lines
452 B
Bash
Executable File
8 lines
452 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Given a subpackage and the containing package, figures out which packages
|
|
# need to be passed to `go test -coverpkg`: this includes all of the
|
|
# subpackage's dependencies within the containing package, as well as the
|
|
# subpackage itself.
|
|
DEPENDENCIES="$(go list -f $'{{range $f := .Deps}}{{$f}}\n{{end}}' ${1} | grep ${2} | grep -v github.com/docker/distribution/vendor)"
|
|
echo "${1} ${DEPENDENCIES}" | xargs echo -n | tr ' ' ','
|