diff --git a/precompile/contract/mocks_generate_test.go b/precompile/contract/mocks_generate_test.go index ef40b0c378..8c50872884 100644 --- a/precompile/contract/mocks_generate_test.go +++ b/precompile/contract/mocks_generate_test.go @@ -1,3 +1,3 @@ package contract -//go:generate mockgen -package=$GOPACKAGE -copyright_file=../../license_header -destination=mocks.go . BlockContext,AccessibleState,StateDB +//go:generate go run go.uber.org/mock/mockgen@v0.4.0 -package=$GOPACKAGE -copyright_file=../../license_header -destination=mocks.go . BlockContext,AccessibleState,StateDB diff --git a/precompile/precompileconfig/mocks_generate_test.go b/precompile/precompileconfig/mocks_generate_test.go index 696153d890..c0cf6d2e8b 100644 --- a/precompile/precompileconfig/mocks_generate_test.go +++ b/precompile/precompileconfig/mocks_generate_test.go @@ -1,3 +1,3 @@ package precompileconfig -//go:generate mockgen -package=$GOPACKAGE -copyright_file=../../license_header -destination=mocks.go . Predicater,Config,ChainConfig,Accepter +//go:generate go run go.uber.org/mock/mockgen@v0.4.0 -package=$GOPACKAGE -copyright_file=../../license_header -destination=mocks.go . Predicater,Config,ChainConfig,Accepter diff --git a/scripts/mock.gen.sh b/scripts/mock.gen.sh index 9410e53c24..ed17704b8b 100755 --- a/scripts/mock.gen.sh +++ b/scripts/mock.gen.sh @@ -7,7 +7,4 @@ if ! [[ "$0" =~ scripts/mock.gen.sh ]]; then exit 255 fi -# https://github.com/uber-go/mock -go install -v go.uber.org/mock/mockgen@v0.4.0 - go generate -run "mockgen.+license_header" ./...