Skip to content

docs: remove stale CGO onboarding requirement - #25

Merged
shreyanshjain7174 merged 2 commits into
mainfrom
docs/remove-cgo-onboarding-requirement
Aug 29, 2026
Merged

docs: remove stale CGO onboarding requirement#25
shreyanshjain7174 merged 2 commits into
mainfrom
docs/remove-cgo-onboarding-requirement

Conversation

@shreyanshjain7174

@shreyanshjain7174 shreyanshjain7174 commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

What changed:

  • Sets the Makefile build targets to CGO_ENABLED=0, matching the pure-Go SQLite release setup.
  • Removes the obsolete C compiler prerequisite from contributor documentation.
  • Documents that the optional race-detector check still needs a C compiler.
  • Adds the dashboard URL and its admin-secret boundary to the quickstart.

Why:

CI, Docker, GoReleaser, and modernc.org/sqlite already use a pure-Go build. The previous Makefile and contributor prerequisite contradicted that setup and added needless setup friction for early contributors.

Verification:

make clean
make build build-verify test
git diff --check

All passed locally. The gateway was also started locally: GET /dashboard/ returned 200 and GET /dashboard redirected to /dashboard/.

Signed-off-by: Shreyansh Sancheti <43677304+shreyanshjain7174@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes stale CGO setup guidance. It aligns local build docs with the repo’s pure-Go SQLite setup and adds a dashboard pointer for receipt inspection.

Changes:

  • Set Makefile build targets to CGO_ENABLED=0.
  • Update contributor docs to drop the C compiler prerequisite, with a note about -race.
  • Add the dashboard URL and admin-secret boundary to the README quickstart.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
README.md Adds a quickstart step pointing to /dashboard/ for viewing the receipt ledger.
Makefile Switches build targets to CGO_ENABLED=0 to match pure-Go builds.
CONTRIBUTING.md Removes CGO compiler requirements and documents the -race exception.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread README.md Outdated
Comment on lines +55 to +59
**Inspect the receipt ledger.** Open
[`http://localhost:8080/dashboard/`](http://localhost:8080/dashboard/) and
enter the gateway URL plus `AGENTGATE_ADMIN_SECRET`. The dashboard checks the
visible receipt chain locally. Use the standalone verifier below for full
cryptographic proof.
Comment thread Makefile
Comment on lines 3 to +7
build:
CGO_ENABLED=1 go build -o bin/agentgate ./cmd/agentgw
CGO_ENABLED=0 go build -o bin/agentgate ./cmd/agentgw

build-verify:
CGO_ENABLED=1 go build -o bin/agentgate-verify ./cmd/agentgate-verify
CGO_ENABLED=0 go build -o bin/agentgate-verify ./cmd/agentgate-verify
Comment thread CONTRIBUTING.md
Comment on lines +12 to +15
No C compiler, database, API keys, or secrets are needed to build or run
`make test`. The SQLite driver is pure Go. Every test either uses an
in-memory/temp-file SQLite database or a local `httptest` server. The
optional `-race` check below does require a C compiler.
Signed-off-by: Shreyansh Sancheti <43677304+shreyanshjain7174@users.noreply.github.com>
@shreyanshjain7174
shreyanshjain7174 merged commit 9f77512 into main Aug 29, 2026
1 check passed
@shreyanshjain7174
shreyanshjain7174 deleted the docs/remove-cgo-onboarding-requirement branch August 29, 2026 09:14
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.

2 participants