From d912b191f66135c2a672aa15f438b5fbe2142785 Mon Sep 17 00:00:00 2001 From: Benjamin Wang Date: Mon, 7 Aug 2023 11:03:37 +0100 Subject: [PATCH] replace github.com/gyuho/gocovmerge with github.com/wadey/gocovmerge github.com/gyuho/gocovmerge has already been removed or turned into a private repo. I believe it's also forked from github.com/wadey/gocovmerge. So replace it with the original repo github.com/wadey/gocovmerge. Signed-off-by: Benjamin Wang --- scripts/test.sh | 2 +- tools/mod/go.mod | 2 +- tools/mod/go.sum | 4 ++-- tools/mod/tools.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index 264f32721291..7cca46be1008 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -234,7 +234,7 @@ function merge_cov_files { if ! (( "${i}" % 20 )); then log_callout "${i} of ${count}: Merging file: ${f}" fi - run_go_tool "github.com/gyuho/gocovmerge" "${f}" "${cover_out_file}" > "${coverdir}/cover.tmp" 2>/dev/null + run_go_tool "github.com/wadey/gocovmerge" "${f}" "${cover_out_file}" > "${coverdir}/cover.tmp" 2>/dev/null if [ -s "${coverdir}"/cover.tmp ]; then mv "${coverdir}/cover.tmp" "${cover_out_file}" fi diff --git a/tools/mod/go.mod b/tools/mod/go.mod index 8f61bdf18e2a..594e61e50403 100644 --- a/tools/mod/go.mod +++ b/tools/mod/go.mod @@ -12,10 +12,10 @@ require ( github.com/google/yamlfmt v0.9.0 github.com/gordonklaus/ineffassign v0.0.0-20210914165742-4cc7213b9bc8 github.com/grpc-ecosystem/grpc-gateway v1.16.0 - github.com/gyuho/gocovmerge v0.0.0-20171205171859-50c7e6afd535 github.com/mdempsky/unconvert v0.0.0-20200228143138-95ecdbfc0b5f github.com/mgechev/revive v1.3.2 github.com/mikefarah/yq/v4 v4.34.2 + github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad go.etcd.io/gofail v0.1.0 go.etcd.io/protodoc v0.0.0-20180829002748-484ab544e116 go.etcd.io/raft/v3 v3.0.0-20221201111702-eaa6808e1f7a diff --git a/tools/mod/go.sum b/tools/mod/go.sum index c1a1b86aa1d7..23f1b5127749 100644 --- a/tools/mod/go.sum +++ b/tools/mod/go.sum @@ -120,8 +120,6 @@ github.com/gordonklaus/ineffassign v0.0.0-20210914165742-4cc7213b9bc8 h1:PVRE9d4 github.com/gordonklaus/ineffassign v0.0.0-20210914165742-4cc7213b9bc8/go.mod h1:Qcp2HIAYhR7mNUVSIxZww3Guk4it82ghYcEXIAk+QT0= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/gyuho/gocovmerge v0.0.0-20171205171859-50c7e6afd535 h1:BGeD3v3lyKZy+ocGtprXiDXjIiXvZDfuyII7Lym7GbQ= -github.com/gyuho/gocovmerge v0.0.0-20171205171859-50c7e6afd535/go.mod h1:xV7b0Cn2irnP1jU+mMYvqPAPuFPNjtgB+rvKu/dLIz4= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= @@ -213,6 +211,8 @@ github.com/stretchr/testify v1.8.3 h1:RP3t2pwF7cMEbC1dqtB6poj3niw/9gnV4Cjg5oW5gt github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/trustmaster/go-aspell v0.0.0-20200701131845-c2b1f55bec8f h1:92ZQJRegaqnKjz9HY9an696Sw5EmAqRv0eie/U2IE6k= github.com/trustmaster/go-aspell v0.0.0-20200701131845-c2b1f55bec8f/go.mod h1:wxUiQ1klFJmwnM41kQI7IT2g8jjOKbtuL54LdjkxAI0= +github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad h1:W0LEBv82YCGEtcmPA3uNZBI33/qF//HAAs3MawDjRa0= +github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad/go.mod h1:Hy8o65+MXnS6EwGElrSRjUzQDLXreJlzYLlWiHtt8hM= github.com/weppos/publicsuffix-go v0.15.1-0.20220329081811-9a40b608a236 h1:vMJBP3PQViZsF6cOINtvyMC8ptpLsyJ4EwyFnzuWNxc= github.com/weppos/publicsuffix-go v0.15.1-0.20220329081811-9a40b608a236/go.mod h1:HYux0V0Zi04bHNwOHy4cXJVz/TQjYonnF6aoYhj+3QE= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= diff --git a/tools/mod/tools.go b/tools/mod/tools.go index 249514210d29..645b602200e1 100644 --- a/tools/mod/tools.go +++ b/tools/mod/tools.go @@ -31,10 +31,10 @@ import ( _ "github.com/gordonklaus/ineffassign" _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway" _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger" - _ "github.com/gyuho/gocovmerge" _ "github.com/mdempsky/unconvert" _ "github.com/mgechev/revive" _ "github.com/mikefarah/yq/v4" + _ "github.com/wadey/gocovmerge" _ "go.etcd.io/gofail" _ "go.etcd.io/protodoc" _ "go.etcd.io/raft/v3"