libghosttyarchive

package
v0.70.5 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package libghosttyarchive creates and inspects the Linux libghostty artifact archive contract used by the native build workflow.

Example (JsonList)
fmt.Println(jsonList([]string{"braw", "canny"}))
Output:
["braw", "canny"]

Index

Examples

Constants

This section is empty.

Variables

View Source
var AllowedMembers = []string{
	"libghostty-vt.a",
	"pkgconfig/libghostty-vt-static.pc",
	"include/module.modulemap",
	"include/ghostty/vt.h",
	"include/ghostty/vt/allocator.h",
	"include/ghostty/vt/build_info.h",
	"include/ghostty/vt/color.h",
	"include/ghostty/vt/color_scheme.h",
	"include/ghostty/vt/device.h",
	"include/ghostty/vt/focus.h",
	"include/ghostty/vt/formatter.h",
	"include/ghostty/vt/grid_ref.h",
	"include/ghostty/vt/grid_ref_tracked.h",
	"include/ghostty/vt/key.h",
	"include/ghostty/vt/key/encoder.h",
	"include/ghostty/vt/key/event.h",
	"include/ghostty/vt/kitty_graphics.h",
	"include/ghostty/vt/modes.h",
	"include/ghostty/vt/mouse.h",
	"include/ghostty/vt/mouse/encoder.h",
	"include/ghostty/vt/mouse/event.h",
	"include/ghostty/vt/osc.h",
	"include/ghostty/vt/paste.h",
	"include/ghostty/vt/point.h",
	"include/ghostty/vt/render.h",
	"include/ghostty/vt/screen.h",
	"include/ghostty/vt/selection.h",
	"include/ghostty/vt/sgr.h",
	"include/ghostty/vt/size_report.h",
	"include/ghostty/vt/style.h",
	"include/ghostty/vt/sys.h",
	"include/ghostty/vt/terminal.h",
	"include/ghostty/vt/types.h",
	"include/ghostty/vt/unicode.h",
	"include/ghostty/vt/wasm.h",
	"manifest.json",
	"libghostty-native.spdx.json",
	"THIRD_PARTY_NOTICES.libghostty.md",
}

AllowedMembers is the exact Linux libghostty artifact member order.

Functions

func Inspect

func Inspect(archive string) error

Inspect validates that archive matches the Linux artifact member contract.

func Pack

func Pack(source, archive string) error

Pack writes archive from source using the exact allowed member order and deterministic tar metadata.

func Regression

func Regression() error

Regression runs the helper's self-test contract.

Types

type Member

type Member struct {
	Name       string
	Size       int64
	Mode       int64
	Typeflag   byte
	ModTime    time.Time
	UID        int
	GID        int
	Uname      string
	Gname      string
	PAXRecords map[string]string
	Data       []byte
}

Member describes the archive table fields that are part of the artifact contract.

func Members

func Members(archive string) ([]Member, error)

Members reads archive members after gzip and tar header processing.

Jump to

Keyboard shortcuts

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