Extract sigil-crypto: rewire monorepo consumers from-git
- packages/sigil-tls/package.sgl: (from-workspace "sigil-crypto") → (from-git url: "codeberg:sigil/sigil-crypto" version: "^0.13.1"). Dropped the hardcoded ../sigil-crypto/vendor/mbedtls/include + ../sigil-crypto/vendor/mbedtls from both the libraries: block and the tls.c compile-c-sources step — sigil-crypto's libraries: c-include-dirs (vendor/mbedtls/include + vendor/mbedtls) are auto-injected into downstream consumers by the build system (dep-include-flags in sigil/build.sgl). Kept the -DMBEDTLSCONFIGFILE flag (flag propagation is not automatic). - packages/sigil-store/package.sgl: same from-workspace → from-git swap. Scheme-only consumer — no include paths to adjust. - Dropped packages/sigil-crypto/ entry from root workspace list. - Removed packages/sigil-crypto/ directory (history preserved in the extracted standalone repo at codeberg:sigil/sigil-crypto v0.13.1). - Added sigil-crypto to dev-redirects.sgl, pointing at the task-extract-sigil-crypto/sigil-crypto worktree so the leader can iterate before pushing the remote. - sigil.lock: added sigil-crypto entry pinned to e5a2cede (v0.13.1 tag target in the extracted repo). Leader will regenerate the lockfile once codeberg.org/sigil/sigil-crypto is created and pushed.
Verified: sigil build sigil-cli / sigil-tls / sigil-store clean in the rewire worktree with dev-redirects pointing at the local extracted repo. Full monorepo test suite: 1831 passed / 29 failed — the 29 failures all match master's baseline (test-syntax-primitives, test-quasisyntax-reader, test-stack-trace, and three macros: collect/let-like/pick — unrelated to sigil-crypto). Test-file count is lower than master because the worktree's dev-redirects couldn't resolve ../sigil-log / ../sigil-json / ../sigil-http (relative paths assume the main monorepo cwd); the leader's merge + run-from-monorepo will exercise the full 2200+ test set.
package.sgl | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)package.sglmodified
dependencies: (list (from-workspace name: "sigil-stdlib") (from-workspace name: "sigil-crypto")) (from-git url: "codeberg:sigil/sigil-crypto" version: "^0.13.1")) ;; Native library definition ;; Note: mbedTLS headers/libs come from sigil-crypto dependency ;; Note: mbedTLS headers/libs come from sigil-crypto dependency — the ;; build system auto-injects sigil-crypto's c-include-dirs ;; (vendor/mbedtls/include + vendor/mbedtls) via dep-include-flags. libraries: (list (library name: 'sigil-tls c-sources: '("native/tls.c") ;; Need mbedTLS headers from sigil-crypto, plus vendor dir for config c-include-dirs: '("../sigil-crypto/vendor/mbedtls/include" "../sigil-crypto/vendor/mbedtls") c-flags: '("-DMBEDTLS_CONFIG_FILE=\"sigil_mbedtls_config.h\"") native-init: "sigil__init_sigil_tls_module")) description: "Build the sigil-tls native library" steps: (list ;; Compile tls.c ;; Depends on sigil-lib headers and sigil-crypto (mbedTLS headers) ;; Uses same mbedTLS config as sigil-crypto for consistent builds ;; Depends on sigil-lib headers and sigil-crypto (mbedTLS headers). ;; Uses the same mbedTLS config as sigil-crypto for consistent ;; builds. mbedTLS include paths are auto-injected by the build ;; system from sigil-crypto's exposed c-include-dirs. (compile-c-sources sources: '("native/tls.c") include-dirs: '("../sigil-lib/include" "../sigil-lib/src" "../sigil-crypto/vendor/mbedtls/include" "../sigil-crypto/vendor/mbedtls") "../sigil-lib/src") flags: '("-std=c99" "-Wall" "-Wextra" "-Wno-unused-parameter"