mirror of https://github.com/google/oss-fuzz.git
[tidb] Fix failing build (#5112)
This commit is contained in:
parent
43c9e9138c
commit
79ce55b888
|
@ -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/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue