gocover-cobertura icon indicating copy to clipboard operation
gocover-cobertura copied to clipboard

go get github.com/t-yuki/gocover-cobertura unexpectedly downgrades/removes dependencies

Open nyetwurk opened this issue 2 years ago • 1 comments

For some reason deps are downgraded or removed.

Why?

nyetwurk avatar Sep 15 '22 11:09 nyetwurk

Workaround: use go install rather than go get, which is (i hope) guaranteed to not overwrite go.mod/go.sum

The disadvantage is you have to add @latest and it doesn't look at your existing go.mod to get version hints for what version you want.

go install github.com/t-yuki/gocover-cobertura@latest
$GOPATH/bin/gocover-cobertura < coverage.txt > coverage.xml

nyetwurk avatar Sep 16 '22 21:09 nyetwurk