baseline

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: AGPL-3.0 Imports: 42 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

Package baseline resolves one base revision and admits lazy input views. Metadata and missing changed bodies use the shared cache owner, while unchanged baseline bodies reuse admitted current bytes. The checkout and its Git object store are read-only throughout selection and rendering.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdmitDirectory

func AdmitDirectory(
	ctx context.Context,
	path, root string,
	scope manifest.WorkScope,
) (
	_ *store.SourceArtifact,
	_ string,
	resultErr error,
)

AdmitDirectory resolves disk coordinates before constructing a direct reader. Synthetic labels belong to already admitted inputs and MUST bypass this path.

Types

type Config

type Config struct {
	Path          string
	Base          string
	Cache         *sourcecache.Cache
	Network       *source.Network
	GitTransports sourcegit.Transports
}

Config requires Cache and Network to outlive all returned lazy readers.

type Result

type Result struct {
	Source       *store.SourceArtifact
	BaseInput    *store.SourceArtifact
	ScanPath     string
	BaseScanPath string
	Changes      *change.Set
	SelfURLs     []string
}

Result retains admitted inputs and one selection for both render sides.

func AutoResolve

func AutoResolve(ctx context.Context, cfg Config) (*Result, error)

AutoResolve requires that the checkout remain stable until all readers have joined. An error may return diagnostic-only inputs with no usable content.

func ResolvePaths

func ResolvePaths(ctx context.Context, current, original string) (*Result, error)

ResolvePaths admits both inputs and retains their canonical scan paths. Only an absent original repository selects the current repository's identity. The original path must be non-empty.

Jump to

Keyboard shortcuts

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