sotashimozono_obsidian-remo.../server
Souta 046292a8f0 fix(server): build the daemon fully static (CGO_ENABLED=0) so it runs on any glibc
Dogfooding root cause: the released linux/amd64 daemon crashed on the remote
with `libc.so.6: version GLIBC_2.34 not found` (arch was correct — x86-64 on
x86_64). `make -C server cross` runs on ubuntu-latest (glibc 2.35+); Go builds
the host-native linux/amd64 target with CGO auto-ENABLED, so it links
dynamically against the runner's newer glibc and dies on older hosts. The
daemon never wrote its token, RPC timed out, and connect fell back to SFTP.

- server/Makefile: `export CGO_ENABLED := 0` -> fully static binaries, no libc
  dependency, run on any Linux glibc. (arm64/darwin were already CGO-off as
  cross targets; this makes amd64 consistent. Mirrors build-server.mjs.)
- release.yml: assert the linux/amd64 binary is not dynamically linked after
  build, so a CGO regression fails the release loudly instead of shipping a
  daemon that only starts on new distros.

Ships as beta.13; the daemon (RPC + fast walk / live watch / thumbnails) will
come up on older-glibc hosts like the reporter's.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-02 16:44:48 +09:00
..
cmd/obsidian-remote-server feat(rpc): fs.readBinaryRange + ResourceBridge fast path (#134, 0.4.83) 2026-04-30 10:10:15 +09:00
internal feat(walk): profile "Ignore directories" — prune big subtrees server-side 2026-05-17 23:43:40 +09:00
.gitignore chore: monorepo restructure (plugin/ + server/ + proto/) 2026-04-25 10:52:52 +09:00
go.mod chore(deps): bump golang.org/x/image from 0.42.0 to 0.43.0 in /server 2026-06-22 00:09:45 +00:00
go.sum chore(deps): bump golang.org/x/image from 0.42.0 to 0.43.0 in /server 2026-06-22 00:09:45 +00:00
Makefile fix(server): build the daemon fully static (CGO_ENABLED=0) so it runs on any glibc 2026-07-02 16:44:48 +09:00