(sigil build git-source)
Pinned Git origins with deterministic, archive-byte-compatible sources.
Exports
call-with-git-source-test-repositoryprocedureRun THUNK with one HTTPS origin mapped to a local Git test repository.
This scoped fixture capability never changes location validation. Package, channel, and recipe data must still name an HTTPS origin. Only materialization of that origin enables the file transport, and the mapping is restored even when THUNK raises an exception.
git-source-locationprocedureName a Git repository pinned by full commit and tree object IDs.
HTTPS origins use git+https://HOST/REPO.git#COMMIT:TREE. Neither mutable refs, local file locations, nor credentials embedded in URLs are accepted. The external source's SHA-256 separately authenticates the deterministic, uncompressed source tar bytes.
parse-git-source-locationprocedureDecode a pinned Git location into (repository commit tree).
materialize-git-sourceprocedureMaterialize a pinned Git origin as a deterministic uncompressed tar.
The archive has a source/ prefix, timestamp 2000-01-01T00:00:00Z, tar.umask=0022, and no export-ignore/export-subst transformations. Its extracted Git tree must equal EXPECTED-TREE, including executable modes and symlink targets. #f discovers the tree when authoring a pin. CACHE is private writable scratch; the builder places it in the store. Returns the full tree ID. The caller checks the archive SHA-256.