fix coverage scripts to work with submodules
#!/usr/bin/env bash
set -o errexit
-export PKGS='./pkg/...'
-export PKGS_COMMA='./pkg/...'
+export PKGS='./...'
+export PKGS_COMMA='./...'
+cd pkg
go test -count=1 -i ${PKGS}
go list -f '{{if gt (len .TestGoFiles) 0}}"go test -count=1 -covermode count -coverprofile {{.Name}}.coverprofile -coverpkg $PKGS_COMMA {{.ImportPath}}"{{end}}' $PKGS | xargs -P100 -I {} bash -c {} 2>&1 | grep -v '^warning: no packages being tested depend on '
gocovmerge $(ls *.coverprofile) > coverage.cov
