Skip to content

Commit c8b0907

Browse files
author
Paulo Gomes
authored
Merge pull request #335 from ilanpillemer/align-deps-for-fuzzing
align fuzzing deps
2 parents bf94c6b + 257e5f4 commit c8b0907

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/fuzz/oss_fuzz_build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export PKG_CONFIG_PATH="${TARGET_DIR}/lib/pkgconfig:${TARGET_DIR}/lib64/pkgconfi
5454
export CGO_CFLAGS="-I${TARGET_DIR}/include -I${TARGET_DIR}/include/openssl"
5555
export CGO_LDFLAGS="$(pkg-config --libs --static --cflags libssh2 openssl libgit2)"
5656

57-
go mod tidy -compat=1.17
57+
go get -d github.com/AdaLogics/go-fuzz-headers
5858

5959
pushd "tests/fuzz"
6060

@@ -89,7 +89,8 @@ else
8989
curl -s --fail https://raw.githubusercontent.com/fluxcd/image-reflector-controller/${REFLECTOR_VER}/config/crd/bases/image.toolkit.fluxcd.io_imagepolicies.yaml -o testdata/crds/imagepolicies.yaml
9090
fi
9191

92-
go mod tidy -compat=1.17
92+
go get -d github.com/AdaLogics/go-fuzz-headers
93+
go get github.com/fluxcd/image-automation-controller
9394

9495
# Using compile_go_fuzzer to compile fails when statically linking libgit2 dependencies
9596
# via CFLAGS/CXXFLAGS.

0 commit comments

Comments
 (0)