From 40050f558d47fb76aad910f5a8ec52bedde9b44e Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Sat, 11 Aug 2018 11:25:42 +0700 Subject: [PATCH] fix mockgen script We don't need to copy the vendor directory. --- mockgen_private.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mockgen_private.sh b/mockgen_private.sh index 7fbe68d58..b694464a6 100755 --- a/mockgen_private.sh +++ b/mockgen_private.sh @@ -8,8 +8,7 @@ TEMP_DIR=$(mktemp -d) mkdir -p $TEMP_DIR/src/github.com/lucas-clemente/quic-go/ # copy all .go files to a temporary directory -# golang.org/x/crypto/curve25519/ uses Go compiler directives, which is confusing to mockgen -rsync -r --exclude 'vendor/golang.org/x/crypto/curve25519/' --include='*.go' --include '*/' --exclude '*' $GOPATH/src/github.com/lucas-clemente/quic-go/ $TEMP_DIR/src/github.com/lucas-clemente/quic-go/ +rsync -r --exclude 'vendor' --include='*.go' --include '*/' --exclude '*' $GOPATH/src/github.com/lucas-clemente/quic-go/ $TEMP_DIR/src/github.com/lucas-clemente/quic-go/ echo "type $5 = $4" >> $TEMP_DIR/src/github.com/lucas-clemente/quic-go/interface.go export GOPATH="$TEMP_DIR:$GOPATH"