Sigil 0.24.14
A package integrity and build maintenance release. Sigil verifies signed registry indexes before it installs packages, and downloads retry when a registry connection fails partway through. sigil store gc can collect large stores and now sweeps the sandbox overlay under /tmp. Builds and tests clean up their temporary directories, and sigil run passes -L library roots to the application again.
Compatibility. The native ABI remains at 10. Projects with registry dependencies need a one-time sigil deps install to populate the new cache. Live registry resolution also checks where you keep its trust state. See the upgrade notes below.
Verify registry packages before running their manifests
Sigil verifies the registry's signed metadata and package indexes, and remembers their highest accepted sequence numbers so an older signed copy can't roll back what your client has already seen. The archive hash is checked before extraction. If the signed index supplies a tree hash, Sigil also checks the unpacked tree before publishing it or evaluating its package.sgl. Concurrent installs verify in separate private directories and can reuse the same verified tree once it is published.
Signatures protect against tampering by mirrors, CDNs, and network attackers. Your project's manifest, redirects files, and manifests from trusted publishers still run with your privileges. Other processes running as you can still change your local files.
Retry interrupted registry downloads
Package, toolchain, and substitute downloads, as well as the release lock check, retry transient network failures, HTTP 429, and HTTP 5xx up to three times. Transfers have time limits even if the server keeps sending data. HTTP 404 and hash mismatches stop the download immediately. Registry URLs require HTTPS except on loopback, and an HTTPS redirect can't downgrade to HTTP. Credentials stay out of curl's command line, and retry and failure messages omit URL credentials, query strings, and fragments.
Collect large stores and their sandbox overlays
On a synthetic store of 200,000 items, sigil store gc --dry-run takes about 34 s and collection takes about 56 s. The old collector was stopped after ten minutes without removing an item. On 50,000 items, collection takes about 10 s, down from 493 s. Builds and other store users hold shared leases, so collection waits for exclusive access before removing anything. By default, it keeps items published or used in the last 60 minutes and follows their references. To see what would be removed, run sigil store gc --dry-run.
When a sandbox can read the base store but can't write to it, builds put new objects in an overlay under /tmp. Collection now sweeps that overlay too. It skips an overlay in use, and once the lease ends it can remove a verified duplicate that is already in the base store. A dry run reports the overlay's items, bytes, and duplicates separately.
Clean up temporary directories
Bundling, application worktrees, environment authoring, and tests now remove their scratch directories when they finish or fail. The test CLI also cleans up after interruption on Unix. Set SIGIL_TEST_KEEP_TEMP=1 to keep a test run's temporary directory and print its path. The release build scripts remove their default work directory on exit. Use --keep-scratch to keep the target logs, caches, and work trees.
Other fixes
sigil -L DIR runpasses the library root to the application again. Relative roots are resolved from the CLI's startup directory. When the application runs in the CLI process, its entry module can read the same arguments asmain, including a-Lpassed after--.- Native builds reuse the runtime archive across
sigil run,sigil build, and test runs when the build inputs match. Changes to included headers or the toolchain now invalidate the archive, and a later build cleans up a scratch directory left by an interrupted archive build.
Upgrading
- Run
sigil deps installonce in each project with registry dependencies. The first install of each package downloads and verifies a new copy for the shared cache at$SIGIL_HOME/deps/cas-v2. The install replaces the project's links to the old cache, which is left on disk. Locked registry installs verify the archive against the existing lockfile.SIGIL_HOMEdefaults to$HOME/.sigil. - Live registry resolution keeps its rollback state in
$SIGIL_HOME/package-registry-trust. If Sigil reports "registry rollback directory must be owned by the current user and have mode 0700", make sure the named path is a real directory you own and set its mode withchmod 700. If it reports "unsafe registry rollback ancestor", check the path it names. Each ancestor through$HOME, or through/if the state is outside$HOME, must be a real directory owned by you or root. Remove group and other write access, use the sticky bit on an intentionally shared directory, or pointSIGIL_HOMEat a path that meets those checks. sigil deps installstops if it can't verify an index, archive, or supplied tree hash. The rejected package's manifest does not run. For an eligiblefrom-gitdependency, Git fallback is allowed when a verified index has no matching version or the canonical registry returns a direct, TLS-verified 404. A mirror's 404 or a registry outage also stops the install.- Stop Sigil 0.24.13 and older processes that use the store before running
sigil store gc. They don't take the collection lock. The collector protects items with legacy reference records. If you can retire the old profiles, preview the sweep withsigil store gc --dry-run --release-legacy. call-with-temp-directoryin(sigil fs)now removes the entire temporary tree when its scope exits. Passrecursive: #fto keep the old requirement that the directory be empty.