build: Fix CI workflow failure by disabling CGO - #75
Conversation
- Set `CGO_ENABLED: "0"` in `.github/workflows/ci.yml` top-level env to resolve missing C-compiler/library dependencies in the GitHub runner. - Explicitly prepend `CGO_ENABLED=0` to all `go build` commands in `build.sh` to ensure consistency between local builds and CI for our CGO-free architecture (e.g., using `modernc.org/sqlite`).
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This pull request fixes a build failure in the GitHub Actions CI pipeline caused by missing C compiler utilities (
libc6-dev, etc.) inside the Debian container.The project relies on a CGO-free SQLite package (
modernc.org/sqlite), thus it does not require C bindings. By explicitly settingCGO_ENABLED=0in the CI configuration and thebuild.shscript, we bypass the need for a C compiler on the host (and during cross-compilation), ensuring reliable, consistent, and purely static builds across both architectures (AMD64/ARM64).PR created automatically by Jules for task 793035508531757461 started by @viruslox