Add opt-in SQLite path for static Linux CLI builds#1609
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 18, 2026, 8:24 AM ET / 12:24 UTC. Summary Reproducibility: not applicable. as a bug reproduction; this PR adds an opt-in build-system capability. The linked issue and PR proof establish the need because current main lacks the static SQLite link-path hook after the musl source-compatibility prerequisite. Review metrics: 3 noteworthy metrics.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land this only if maintainers accept Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction; this PR adds an opt-in build-system capability. The linked issue and PR proof establish the need because current main lacks the static SQLite link-path hook after the musl source-compatibility prerequisite. Is this the best way to solve the issue? Mostly yes, if maintainers accept the contract: the diff is a narrow CodexBar-side bridge that avoids vendoring SQLite. The alternative is to solve static SQLite in SweetCookieKit or release CI without a package-level environment variable. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d8ce86980772. Label changesLabel justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
f89a6c7 to
064fec4
Compare
💡 Codex ReviewOn musl this fallback enumerates ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Co-authored-by: Yuxin Qiao <[email protected]>
064fec4 to
5560ab5
Compare
Refs #1524
Second step of the musl CLI stack, now rebased as one commit on the landed #1620 source-compatibility base.
Summary
CODEXBAR_SQLITE3_LIB_DIRPackage.swift build contractCodexBarCoreandCodexBarCLIThe Swift Static Linux SDK does not ship
libsqlite3.a, while SweetCookieKit links SQLite. Release callers can now provide a target-architecture static library without changing normal macOS or glibc builds.No release workflow or artifact-matrix changes are included here; #1610 consumes this hook.
Verification
swift package dump-packageassertions for unset, blank, and a configured path containing spacesswift test --filter CLIEntryTests(22 tests)make check--helpandconfig validate --format jsonboth executed successfully