Skip to content

build: static binaries only (CGO_ENABLED=0)#10

Merged
bodaay merged 1 commit into
mainfrom
fix/static-build
Jun 6, 2026
Merged

build: static binaries only (CGO_ENABLED=0)#10
bodaay merged 1 commit into
mainfrom
fix/static-build

Conversation

@bodaay

@bodaay bodaay commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

build: static binaries only (CGO_ENABLED=0)

🤖 Generated with Claude Code

scripts/build.sh now builds a fully static, single binary with no dynamic
linking — CGO_ENABLED=0 forces Gos pure-Go net resolver (netgo) and os/user
(osusergo) too, so there is no libc dependency. Verified on the amd64 builder:
`file` reports "statically linked", `ldd` reports "not a dynamic executable".
All server components are pure-Go (modernc.org/sqlite), so no cgo is needed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bodaay bodaay merged commit 8d68e98 into main Jun 6, 2026
1 of 2 checks passed
@bodaay bodaay deleted the fix/static-build branch June 6, 2026 14:44
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