Commit5c99fcceRecorded30 Apr 2026Repositorysigil-crypto
v0.15.2: add sigil-test dev-deps so standalone tests pick up local natives
Message
Add sigil-test + sigil-test-runner as dev-dependencies so sigil test in this worktree builds a test-harness binary that statically links the local native code. Without them the host sigil binary's bundled (sigil crypto).sgb is loaded instead of the source — that bundle is frozen at host-build time, so v0.15.0+ bindings (pbkdf2-sha256, hmac-sha256-bytes, base64url-*, ECDSA, ECDH, AES-GCM, HKDF) surface as unbound variable in tests.
Pinned ^0.14.0 to pull sigil-test-runner v0.14.2 (which declares its own sigil-package + sigil-build deps required by the harness binary).
Changed
package.sgl | 13 ++++++++++++-
sigil.lock | 30 ++++++++++++++++++++++++++----
2 files changed, 38 insertions(+), 5 deletions(-)Diff
package.sglmodified
@@ -15,7 +15,7 @@
15
16
(package 17
name: "sigil-crypto"−18
version: "0.15.1"+18
version: "0.15.2" 19
sigil: "^0.14" 20
description: "Cryptographic functions for Sigil (SHA, HMAC, ECDSA, ECDH, AES-GCM, HKDF, base64, random)" 21
url: "https://codeberg.org/sigil/sigil-crypto"@@ -25,6 +25,17 @@
25
dependencies: (list 26
) 27
+28
;; sigil-test + sigil-test-runner are required as dev-deps so+29
;; `sigil test` can build a test-harness binary that statically+30
;; links sigil-crypto's native init function. The harness imports+31
;; (sigil test cli) from sigil-test-runner. Without these the host+32
;; sigil binary's bundled (and potentially stale) `(sigil crypto).sgb`+33
;; would be used instead of the local source, causing newer bindings+34
;; to surface as `unbound variable`.+35
dev-dependencies: (list+36
(from-git url: "codeberg:sigil/sigil-test" package: "sigil-test" version: "^0.14.0")+37
(from-git url: "codeberg:sigil/sigil-test" package: "sigil-test-runner" version: "^0.14.0"))+38
39
;; Native library definition 40
libraries: (list 41
(librarysigil.lockmodified
@@ -3,13 +3,35 @@
3
(package name: "sigil-lib" 4
url: "codeberg:sigil/sigil-lang" 5
ref: "^0.14"−6
sha: "dba24e3fe531bc150bcf93444e764f87fb321850"+6
sha: "152ea26c05b73c5d003b246a008d0a79ed0c42d0" 7
package-selector: "sigil-lib"−8
version: "0.14.1")+8
version: "0.14.17") 9
(package name: "sigil-stdlib" 10
url: "codeberg:sigil/sigil-lang" 11
ref: "^0.14"−12
sha: "dba24e3fe531bc150bcf93444e764f87fb321850"+12
sha: "152ea26c05b73c5d003b246a008d0a79ed0c42d0" 13
package-selector: "sigil-stdlib"−14
version: "0.14.1")+14
version: "0.14.17")+15
(package name: "sigil-test"+16
url: "codeberg:sigil/sigil-test"+17
ref: "^0.13.1"+18
sha: "cc8ccbc04b28d5de8c1253513e246547a34e7a73"+19
package-selector: "sigil-test"+20
version: "0.13.1")+21
(package name: "sigil-test-runner"+22
url: "codeberg:sigil/sigil-test"+23
ref: "^0.13.1"+24
sha: "cc8ccbc04b28d5de8c1253513e246547a34e7a73"+25
package-selector: "sigil-test-runner"+26
version: "0.13.1")+27
(package name: "sigil-ansi"+28
url: "codeberg:sigil/sigil"+29
ref: "^0.13.1"+30
sha: "1aea1cecd3487bf07d071da2c1e7eb3cf4bbdb21"+31
package-selector: "sigil-ansi")+32
(package name: "sigil-json"+33
url: "codeberg:sigil/sigil-json"+34
ref: "^0.13.1"+35
sha: "811b63925399a663e4b7dd25fb0813d59d33f557"+36
version: "0.13.1") 37
)