scripts

command
v0.1.0-preview.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 14 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 check-abi-symbols verifies the purego bindings in internal/ffi against the lance-c C header from the commit pinned in that package.

The header is not vendored. Export it from the pinned upstream checkout:

git -C /path/to/lance-c show e2564b89be36bb18f5beff6d673daf9dfff8c986:include/lance/lance.h > lance.h
LANCE_C_HEADER=./lance.h go run ./scripts/check-abi-symbols.go

It checks that every bound symbol exists, that Go and C agree on arity and on value/pointer classification, that every function field in the bindings struct has a symbol entry, and that the header bytes match the pinned SHA-256. It cannot detect a same-size integer type confusion beyond the signed and unsigned integer classes it models.

Directories

Path Synopsis
internal
artifactgen
Package artifactgen builds a data-only Go module and a platform selector from an already-built lance-c shared library and its matching header.
Package artifactgen builds a data-only Go module and a platform selector from an already-built lance-c shared library and its matching header.
public-consumer
namespace-consumer command
Command namespace-consumer opens a native directory namespace without importing the root lance-go package.
Command namespace-consumer opens a native directory namespace without importing the root lance-go package.
windows-consumer command
Command windows-consumer loads the public namespace API and reports the native module that the process actually mapped.
Command windows-consumer loads the public namespace API and reports the native module that the process actually mapped.
Command verify-lance-c-artifact verifies one generated lance-c artifact module against the native library it was packaged from and the pin in internal/ffi/upstream.go.
Command verify-lance-c-artifact verifies one generated lance-c artifact module against the native library it was packaged from and the pin in internal/ffi/upstream.go.

Jump to

Keyboard shortcuts

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