From 97593d279969a372a63beda9a3beb827346e4b13 Mon Sep 17 00:00:00 2001 From: Hongxin Liang Date: Wed, 18 Dec 2019 00:12:52 +0100 Subject: [PATCH] add comments --- generate_mocks.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/generate_mocks.sh b/generate_mocks.sh index fa4510d35..5e59b320f 100755 --- a/generate_mocks.sh +++ b/generate_mocks.sh @@ -2,6 +2,8 @@ set -e set -x +# install outside of current module, workaround https://github.com/golang/go/issues/30515 +# we need to copy go.mod and go.sum because we have a mockery fork go_get_mockery () { tmp_dir=$(mktemp -d -t mockery-XXXXXXXXXX) cp go.mod go.sum "$tmp_dir"