D. Can Celasun | e0e1a08 | 2019-05-10 09:18:11 +0200 | [diff] [blame] | 1 | #!/bin/sh |
Yuxuan 'fishy' Wang | b71f11e | 2021-03-22 15:01:00 -0700 | [diff] [blame] | 2 | |
D. Can Celasun | e0e1a08 | 2019-05-10 09:18:11 +0200 | [diff] [blame] | 3 | set -e |
| 4 | |
Yuxuan 'fishy' Wang | b71f11e | 2021-03-22 15:01:00 -0700 | [diff] [blame] | 5 | export GOPATH=$(mktemp -d -t gopath-XXXXXXXXXX) |
D. Can Celasun | e0e1a08 | 2019-05-10 09:18:11 +0200 | [diff] [blame] | 6 | |
Yuxuan 'fishy' Wang | e8353cb | 2022-10-28 10:29:25 -0700 | [diff] [blame] | 7 | go install github.com/golang/mock/mockgen |
Yuxuan 'fishy' Wang | b71f11e | 2021-03-22 15:01:00 -0700 | [diff] [blame] | 8 | |
Yuxuan 'fishy' Wang | e8353cb | 2022-10-28 10:29:25 -0700 | [diff] [blame] | 9 | `go env GOPATH`/bin/mockgen -destination=src/common/mock_handler.go -package=common github.com/apache/thrift/test/go/src/gen/thrifttest ThriftTest |
Yuxuan 'fishy' Wang | b71f11e | 2021-03-22 15:01:00 -0700 | [diff] [blame] | 10 | |
Yuxuan 'fishy' Wang | fb539ae | 2021-08-09 14:27:48 -0700 | [diff] [blame] | 11 | chmod a+w -R $GOPATH && rm -Rf $GOPATH |