Skip to content

build: Fix CI workflow failure by disabling CGO - #75

Merged
viruslox merged 1 commit into
mainfrom
fix-ci-cgo-build-793035508531757461
Sep 6, 2026
Merged

viruslox merged 1 commit into
mainfrom
fix-ci-cgo-build-793035508531757461

Conversation

@viruslox

@viruslox viruslox commented Sep 6, 2026

Copy link
Copy Markdown
Owner

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 setting CGO_ENABLED=0 in the CI configuration and the build.sh script, 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

- 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`).
@google-labs-jules

Copy link
Copy Markdown

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@viruslox
viruslox merged commit 3685fc7 into main Sep 6, 2026
1 check passed
@viruslox
viruslox deleted the fix-ci-cgo-build-793035508531757461 branch September 6, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant