Skip to content

[codex] Fix installer ICU/CGO fallback handling#2965

Merged
maphew merged 3 commits into
gastownhall:mainfrom
maphew:codex/fix-installer-icu-cgo-headers
Apr 1, 2026
Merged

[codex] Fix installer ICU/CGO fallback handling#2965
maphew merged 3 commits into
gastownhall:mainfrom
maphew:codex/fix-installer-icu-cgo-headers

Conversation

@maphew

@maphew maphew commented Apr 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • fix Windows source installs to build with gms_pure_go, avoiding unnecessary ICU header requirements
  • auto-configure ICU CGO include/link flags in the Unix installer before go install or source builds
  • improve missing-ICU remediation messages so installer failures point to the right package/install path

Root Cause

The Makefile already handled platform-specific ICU/CGO behavior, but the installer fallback paths did not. Windows source installs skipped the pure-Go regex tag, and Unix fallback builds did not inherit the ICU discovery logic used elsewhere.

Impact

Users on fresh machines are less likely to hit unicode/uregex.h build failures during installer fallback paths. When ICU really is missing on macOS/Linux, the installer now reports a more precise fix.

Validation

  • bash -n scripts/install.sh
  • PowerShell parse check for install.ps1

@maphew maphew marked this pull request as ready for review April 1, 2026 23:52
@maphew maphew merged commit dbcc2db into gastownhall:main Apr 1, 2026
31 checks passed
@maphew

maphew commented Apr 1, 2026

Copy link
Copy Markdown
Collaborator Author

related followup WIP:

  1. Check out fix/[codex] Fix installer ICU/CGO fallback handling #2965-unify-shared-server-mode-wt and run go test -tags integration ./cmd/bd -run 'TestCLI_Reopen$| TestCLI_ReopenSharedServerEmbeddedMetadataMismatch$'.
  2. If that passes, review whether the warning text in build/[codex] Fix installer ICU/CGO fallback handling #2965/cmd/bd/main.go should stay as-is or become a fatal diagnostic.

maphew added a commit to maphew/beads that referenced this pull request Apr 2, 2026
* Fix shared-server init mode selection

* Warn on shared-server embedded metadata mismatch

* Fix installer ICU/CGO fallback handling
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