When executing the build_opa.sh build script for OPA version 0.65.0 it fails when it seems to execute the git apply --ignore-whitespace ../opa.diff command with the following:
error: patch failed: Makefile:67
error: Makefile: patch does not apply
error: patch failed: build/run-wasm-rego-tests.sh:15
error: build/run-wasm-rego-tests.sh: patch does not apply
error: wasm/Dockerfile.s390x: already exists in working directory
error: patch failed: wasm/Makefile:8
error: wasm/Makefile: patch does not apply
I have been able to re-produce this when manually running the git apply command against the same cloned opa git repo and with the opa.diff file. Please can you help to fix the failing patch elements.