fetch-lance-c-release

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command fetch-lance-c-release acquires the pinned lance-c shared library and header from the official GitHub release for one target.

It downloads the archive for the target triple named after the pinned release, verifies it against the checksum published with the release, extracts only the header and shared library, and verifies that the header bytes match the pin in internal/ffi/upstream.go and that the library's object format and machine match the requested target. It never builds lance-c from source, and it never substitutes a different release or target.

Usage:

go run ./internal/tools/fetch-lance-c-release \
  -target linux/amd64 \
  -out /tmp/lance-c-release

Extraction uses in-process xz and tar readers, so acquisition does not depend on the platform tar implementation.

The output directory must not exist. The command writes:

acquisition.txt                 verified provenance for the rest of the lane
lance-c-<tag>-<triple>.tar.xz   the verified published archive
...tar.xz.sha256                the published per-asset checksum
include/lance/lance.h           canonical header (LF line endings)
lib/<library>                   the published shared library, byte for byte

Linux and macOS archives ship an LF header; the Windows archive ships the same header with CRLF line endings. The command writes the canonical LF form recorded by upstreamHeaderSHA256 and records both hashes.

When the checked-in companion metadata at artifacts/<target>/artifact.go records the same upstream repository, commit, and header as the pin, the acquired library must also equal that module's UncompressedSHA256. That check keeps CI on the bytes a published companion ships even if a release archive and its published checksum were replaced together. A pin bump whose companions have not been republished yet records the independent check as inactive; candidate packaging still uses the acquired bytes.

lance-c exposes no runtime version symbol, so the library bytes cannot prove the commit that built them. The published per-asset checksum, the pinned companion identity, the pinned header hash, and the target machine check are the available identity chain.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL