align fuzzing deps as per task 3 flux2 issue 2552

Signed-off-by: Ilan <ilan.pillemer@gmail.com>
This commit is contained in:
Ilan 2022-03-28 11:28:03 +01:00
parent f689e4ea06
commit a6f536e5e0
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ PROJECT_PATH="github.com/fluxcd/kustomize-controller"
cd "${GO_SRC}"
# Move fuzzer to their respective directories.
# Move fuzzer to their respective directories.
# This removes dependency noises from the modules' go.mod and go.sum files.
mv "${PROJECT_PATH}/tests/fuzz/age_fuzzer.go" "${PROJECT_PATH}/internal/sops/age/"
mv "${PROJECT_PATH}/tests/fuzz/pgp_fuzzer.go" "${PROJECT_PATH}/internal/sops/pgp/"
@ -38,7 +38,7 @@ sed -i 's;import (;import(\n abc "github.com/fluxcd/kustomize-controller/control
pushd "${PROJECT_PATH}"
go mod tidy
go get -d github.com/AdaLogics/go-fuzz-headers
compile_go_fuzzer "${PROJECT_PATH}/internal/sops/age/" FuzzAge fuzz_age
compile_go_fuzzer "${PROJECT_PATH}/internal/sops/pgp/" FuzzPgp fuzz_pgp