mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 18:35:19 +00:00
8045d82f0d
Per our support policy, drop support of go 1.16 and add support of go 1.18. Also enable go vet in make check, and fix issues reported by go vet.
12 lines
331 B
Bash
12 lines
331 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
export GOPATH=$(mktemp -d -t gopath-XXXXXXXXXX)
|
|
|
|
go install -mod=mod github.com/golang/mock/mockgen
|
|
|
|
`go env GOPATH`/bin/mockgen -build_flags "-mod=mod" -destination=src/common/mock_handler.go -package=common github.com/apache/thrift/test/go/src/gen/thrifttest ThriftTest
|
|
|
|
chmod a+w -R $GOPATH && rm -Rf $GOPATH
|