THRIFT-4855: Pin golang/mock to 1.2.0
The latest version (1.3.0) requires us to switch to Go modules for our
tests, but that's not trivial given our directory structure.
For now, just fix the CI issues by pinning the version.
diff --git a/test/go/Makefile.am b/test/go/Makefile.am
index 6da8339..3cf6a70 100644
--- a/test/go/Makefile.am
+++ b/test/go/Makefile.am
@@ -58,8 +58,7 @@
GOPATH=`pwd` $(GO) test -v common/...
genmock: gopath
- GOPATH=`pwd` $(GO) install github.com/golang/mock/mockgen
- GOPATH=`pwd` bin/mockgen -destination=src/common/mock_handler.go -package=common gen/thrifttest ThriftTest
+ sh genmock.sh
EXTRA_DIST = \
src/bin \