Fix codecov following vendor

Signed-off-by: Olivier Gambier <olivier@docker.com>
This commit is contained in:
Olivier Gambier 2016-03-24 10:30:14 -07:00
parent b787035d8b
commit 37c2b9e3f1

View file

@ -3,5 +3,5 @@
# need to be passed to `go test -coverpkg`: this includes all of the # 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's dependencies within the containing package, as well as the
# subpackage itself. # 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 ' ' ',' echo "${1} ${DEPENDENCIES}" | xargs echo -n | tr ' ' ','