[tidb] Fix failing build (#5112)

This commit is contained in:
AdamKorcz 2021-02-04 13:41:50 +00:00 committed by GitHub
parent 43c9e9138c
commit 79ce55b888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -15,6 +15,6 @@
################################################################################
FROM gcr.io/oss-fuzz-base/base-builder
RUN go get github.com/pingcap/tidb/store
RUN git clone --depth 1 https://github.com/pingcap/tidb
COPY build.sh $SRC/
WORKDIR $SRC/

View File

@ -15,6 +15,13 @@
#
################################################################################
# Insert empty main function
sed -i '23 i\func main(){}'\\n $SRC/tidb/plugin/conn_ip_example/conn_ip_example.go
mkdir $GOPATH/src/github.com/pingcap
mv $SRC/tidb $GOPATH/src/github.com/pingcap/
cd $GOPATH/src/github.com/pingcap/tidb && go get ./...
compile_go_fuzzer github.com/pingcap/tidb/types FuzzMarshalJSON fuzzMarshalJSON
compile_go_fuzzer github.com/pingcap/tidb/types FuzzNewBitLiteral fuzzNewBitLiteral
compile_go_fuzzer github.com/pingcap/tidb/types FuzzNewHexLiteral fuzzNewHexLiteral