title: go test fails when providing -coverpkg parameter
body: <p>I'm trying to get the test coverage across all packages in my project.</p>
  <p>tests are getting executed successfully and report the coverage when I execute the following command.</p>
  <pre class="lang-sh prettyprint-override"><code>go test -cover ./...
  </code></pre>
  <p>but all the tests are failing when I execute <code>go test</code> with <code>coverpkg=./...</code> parameter</p>
  <pre class="lang-sh prettyprint-override"><code>go test -cover -coverpkg=./... ./...
  </code></pre>
  <p>This is the sample output of the command</p>
  <pre><code>srimal@srimal-pc:~/projects/myproject$ go test -v -cover -coverpkg=./... ./...
  go build a.abc.com/path/to/module/e2e: no non-test Go files in /home/srimal/projects/driver-selection-handler/e2e
  ?       a.abc.com/path/to/module      [no test files]
  ?       a.abc.com/path/to/module/app  [no test files]
  ?       a.abc.com/path/to/module/constrain    [no test files]
  FAIL    a.abc.com/path/to/module/directionalhire [build failed]
  ?       a.abc.com/path/to/module/domain       [no test files]
  FAIL    a.abc.com/path/to/module/durationmatrix [build failed]
  FAIL    a.abc.com/path/to/module/durationmatrix/etaservice [build failed]
  FAIL    a.abc.com/path/to/module/durationmatrix/roadmatrix [build failed]
  2021/04/22 17:23:07 go-util/log: Cannot open config file  open config/logger.yaml: no such file or directory
  testing: warning: no tests to run
  PASS
  coverage: 0.0% of statements in ./...
  ok      a.abc.com/path/to/module/e2e  (cached)        coverage: 0.0% of statements in ./... [no tests to run]
  ?       a.abc.com/path/to/module/events       [no test files]
  FAIL    a.abc.com/path/to/module/finance [build failed]
  ?       a.abc.com/path/to/module/internal     [no test files]
  ?       a.abc.com/path/to/module/internal/config      [no test files]
  ?       a.abc.com/path/to/module/internal/logger      [no test files]
  ?       a.abc.com/path/to/module/internal/metrics     [no test files]
  ?       a.abc.com/path/to/module/internal/profiling   [no test files]
  ?       a.abc.com/path/to/module/internal/schema      [no test files]
  ?       a.abc.com/path/to/module/internal/stream      [no test files]
  FAIL    a.abc.com/path/to/module/location [build failed]
  ?       a.abc.com/path/to/module/logger       [no test files]
  ?       a.abc.com/path/to/module/metrics      [no test files]
  FAIL    a.abc.com/path/to/module/selection [build failed]
  FAIL    a.abc.com/path/to/module/store [build failed]
  FAIL    a.abc.com/path/to/module/stream [build failed]
  ?       a.abc.com/path/to/module/stream/reg   [no test files]
  FAIL    a.abc.com/path/to/module/weighted [build failed]
  </code></pre>
  <p>I'm using go version 1.15.6</p>
  <p>Is there any way to find the reason for the build failure?</p>