Build the image's static binary with netgo, osusergo and sqlite_omit_load_extension (closes #525) #526

Merged
clawbot merged 1 commits from issue-525-static-build-tags into next 2026-10-13 10:43:47 +02:00
1 Commits
Author SHA1 Message Date
clawbot a13f2d90f4 Build the image's static binary with netgo, osusergo and sqlite_omit_load_extension (closes #525)
check / check (push) Waiting to run
The image's static relink linked glibc's getaddrinfo (from Go's cgo DNS
resolver) and dlopen (from SQLite extension loading). A static binary
still needs glibc's shared libraries at run time for both, and the
Alpine runtime has none. The relink now passes the standard build tags
netgo, osusergo and sqlite_omit_load_extension through a GO_TAGS
variable, which the Makefile's build target hands to go build as -tags
next to GO_LDFLAGS, so the version stamp is composed as before.

Model: opus-5-5
2026-10-13 08:10:52 +00:00