We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7e3213 commit c3c6069Copy full SHA for c3c6069
README.md
@@ -40,6 +40,22 @@ $ go test -coverprofile=coverage.out && \
40
gcov2lcov -infile=coverage.out -outfile=coverage.lcov
41
```
42
43
+### GOROOT
44
+
45
+It might be necessary to set the `GOROOT` environment variable properly before calling `gcov2lcov`.
46
+If you see `cannot find GOROOT directory` warnings like e.g.
47
48
+```
49
+022/05/23 16:00:58 warn: go/build: importGo github.com/pashagolub/pgxmock/: exit status 2
50
+go: cannot find GOROOT directory: /opt/hostedtoolcache/go/1.13.15/x64
51
52
53
+Then call `gcov2lcov` with
54
55
56
+$ GOROOT=$(go env GOROOT) gcov2lcov -infile=coverage.out -outfile=coverage.lcov
57
58
59
## Build and Test
60
61
* `make test` to run tests
0 commit comments