File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1+ // Used to exclude it from Go mod in repository root.
2+ // Replaced by oss_fuzz_build.sh.
13module github.com/fluxcd/image-automation-controller/tests/fuzz
24
35go 1.17
Original file line number Diff line number Diff line change @@ -54,8 +54,6 @@ export PKG_CONFIG_PATH="${TARGET_DIR}/lib/pkgconfig:${TARGET_DIR}/lib64/pkgconfi
5454export CGO_CFLAGS=" -I${TARGET_DIR} /include -I${TARGET_DIR} /include/openssl"
5555export CGO_LDFLAGS=" $( pkg-config --libs --static --cflags libssh2 openssl libgit2) "
5656
57- go get -d github.com/AdaLogics/go-fuzz-headers
58-
5957pushd " tests/fuzz"
6058
6159# Setup files to be embedded into controllers_fuzzer.go's testFiles variable.
@@ -79,6 +77,8 @@ SOURCE_VER=$(go list -m github.com/fluxcd/source-controller/api | awk '{print $2
7977REFLECTOR_VER=$( go list -m github.com/fluxcd/image-reflector-controller/api | awk ' {print $2}' )
8078
8179go mod download
80+ go get -d github.com/fluxcd/image-automation-controller
81+ go get -d github.com/AdaLogics/go-fuzz-headers
8282
8383if [ -d " ../../controllers/testdata/crds" ]; then
8484 cp ../../controllers/testdata/crds/* .yaml testdata/crds
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
9090fi
9191
92- go get -d github.com/AdaLogics/go-fuzz-headers
93- go get -d github.com/fluxcd/image-automation-controller
94-
9592# Using compile_go_fuzzer to compile fails when statically linking libgit2 dependencies
9693# via CFLAGS/CXXFLAGS.
9794function go_compile(){
You can’t perform that action at this time.
0 commit comments