From 230d65b070b3bb65d7a867adb19486c22824c5f1 Mon Sep 17 00:00:00 2001 From: AdamKorcz <44787359+AdamKorcz@users.noreply.github.com> Date: Thu, 18 Nov 2021 22:19:44 +0000 Subject: [PATCH] [juju] Fix broken coverage build (#6856) --- projects/juju/build.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/projects/juju/build.sh b/projects/juju/build.sh index 7dc892c23..669356bb0 100644 --- a/projects/juju/build.sh +++ b/projects/juju/build.sh @@ -15,11 +15,10 @@ # ################################################################################ +go mod download +# A fuzzer in this dependency is broken: +find /root/go/pkg/mod/github.com/aws/aws-sdk-go-v2 -name "*fuzz.go" -exec rm -rf {} \; + +# Compile fuzzer: mv $SRC/storage_fuzzer.go $SRC/juju/storage/ - -if [[ $SANITIZER = *coverage* ]]; then - compile_go_fuzzer github.com/juju/juju/storage Fuzz storage_fuzzer - exit 0 -fi - -compile_go_fuzzer ./storage Fuzz storage_fuzzer +compile_go_fuzzer github.com/juju/juju/storage Fuzz storage_fuzzer