From 37c2b9e3f1a1be54beab5c5f7955cb52a9589ec2 Mon Sep 17 00:00:00 2001 From: Olivier Gambier Date: Thu, 24 Mar 2016 10:30:14 -0700 Subject: [PATCH] Fix codecov following vendor Signed-off-by: Olivier Gambier --- coverpkg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coverpkg.sh b/coverpkg.sh index 7ee751ab6..25d419ae8 100755 --- a/coverpkg.sh +++ b/coverpkg.sh @@ -3,5 +3,5 @@ # 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})" +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 ' ' ','