mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-13 03:42:35 -06:00
89afc26b87
The CodeQL cpp job fails with "no source code seen during build" on every run since the wazero migration (#8815). CodeQL builds a C/C++ database only from the compiler invocations it traces during the build. `make build` never compiled the C in wasm/src (that is a Docker-based wasm cross-build, invisible to `make build`); the only C it ever compiled was the CGo shim of the wasmtime-go wasm runtime, built with CGO_ENABLED=1. #8815 replaced wasmtime-go with wazero (pure Go) and switched the build to CGO_ENABLED=0, so no C is compiled during `make build` anymore and CodeQL sees nothing. The remaining C in wasm/src is only built via a Docker cross-build for the wasm32-unknown-unknown-wasm target, which CodeQL's build tracer cannot follow, so re-adding a build step for it is not practical. Drop cpp and keep the go, javascript, and python analyzers. Signed-off-by: Sebastian Spaink <sebastianspaink@gmail.com>