Sigil 0.24.14

release

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.

Download 0.24.14Get started

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

Upgrading